Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-27-2004, 09:19 AM   #1
LQ Newbie
Registered: Nov 2003
Posts: 18

Rep: Reputation: 0
Compiling java files from root

I'm in the process of installing jedit in slackware, if i run the command line from my account :

java - java jedit-blah-blah-ect

it works fine, but if i attempt to change to su and install i just get

bash: java: command not found

I'm pretty sure i installed java(as part of netbeans) from the su and not from my account.
Old 06-27-2004, 09:44 AM   #2
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 418Reputation: 418Reputation: 418Reputation: 418Reputation: 418
All that means is that the java bin direcotry isn't in root's PATH. It would work if you type out the full java path:

/path/to/java/bin/java -commands to run jedit.

By the way, if you installed jedit, you shouldn't have to run it with a java command. I think jedit adds a script to one of the normal bin directories (like /usr/local/bin) that will handle all the java nonsense. All you should need to do is type jedit at the command line.
Old 06-27-2004, 04:21 PM   #3
Senior Member
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
if you use bash as your shell add the line:
export PATH=$PATH:/path/to/java/bin
to roots .bashrc file.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with compiling java files.... amer_58 Linux - Newbie 1 10-25-2005 05:17 PM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 05:14 PM
Compiling Java embalmedlenin Programming 3 08-28-2003 07:57 PM
compiling JAVA JIV Programming 8 03-29-2003 12:05 AM
vfat mount - all files are 'root' owned, but even root can't -WX d33pdream Linux - General 5 02-28-2003 03:38 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:04 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration