LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Compiling java files from root (https://www.linuxquestions.org/questions/linux-newbie-8/compiling-java-files-from-root-198249/)

crash75uk 06-27-2004 08:19 AM

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.

Hangdog42 06-27-2004 08:44 AM

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.

Komakino 06-27-2004 03:21 PM

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


All times are GMT -5. The time now is 06:01 AM.