LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-27-2004, 09:19 AM   #1
crash75uk
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
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
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
Komakino
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.
 
  


Reply


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


All times are GMT -5. The time now is 07:23 AM.

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