LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 08: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, 08:44 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
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, 03: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



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 04:17 PM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 04:14 PM
Compiling Java embalmedlenin Programming 3 08-28-2003 06:57 PM
compiling JAVA JIV Programming 8 03-28-2003 11:05 PM
vfat mount - all files are 'root' owned, but even root can't -WX d33pdream Linux - General 5 02-28-2003 02:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:19 PM.

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
Open Source Consulting | Domain Registration