LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-01-2003, 06:35 PM   #1
spchehe
LQ Newbie
 
Registered: Jul 2003
Posts: 26

Rep: Reputation: 15
javac doesn't work


Hi

I just downloaded j2sdk-1.4.2-nb-3.5-bin-linux.bin from java.sun.com, and I installed it correctly into /opt/j2sdk_nb. But when I tried to compile a program(HelloWorldApp.java) at /home/guest, I typed /opt/j2sdk_nb/j2sdk1.4.2/bin/javac HelloWorldApp.java, and the terminal returned:"bash: javac: command not found"? Can anyone tell me how to solve this problem?

Thanks
 
Old 08-01-2003, 06:38 PM   #2
elam
LQ Newbie
 
Registered: Aug 2003
Posts: 21

Rep: Reputation: 15
The only thing I can think of is that your java bin directory is not in your path.

i would try


export PATH=$PATH:/path/to/java/bin/directory


or put that in your /etc/profile
 
Old 08-01-2003, 06:42 PM   #3
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Maybe a permissions setting. Try as root.
 
Old 08-01-2003, 06:52 PM   #4
spchehe
LQ Newbie
 
Registered: Jul 2003
Posts: 26

Original Poster
Rep: Reputation: 15
Thanks

Thanks problem solved
 
  


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
javac doesn't work wakemeup Linux - Laptop and Netbook 4 12-08-2004 09:23 PM
javac zaicheke Programming 2 10-05-2004 10:46 PM
classpath of javac raj_verma Programming 1 07-27-2004 04:16 AM
javac linuxRules Linux - General 3 05-23-2002 07:45 AM
javac linuxRules Linux - General 0 05-21-2002 09:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:29 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
Open Source Consulting | Domain Registration