Java Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJava Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old May 27th, 2005, 07:01 PM
Andrea28 Andrea28 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 1 Andrea28 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 41 m 36 sec
Reputation Power: 0
Unhappy Please Help! Javac: command not found

Hi all,

I have installed the linux mandrake 10.2 in my laptop.

I am trying to execute some program in java. however i get the next error: javac: command not found.

I have tried to set the PATH in the .bash_profile file and in the profile file in /etc to PATH="$PATH:/usr/lib/jdk-1.4.2_07/jre/bin"

However i get the same error

And when I run "which java " command, I get a directory : usr/bin/java

and I think, this is not the directory that contain the jdk.

I have tried to look for this problem in internet, however i dont understand what is the problem

Can somebody help me, please?

Andrea

Reply With Quote
  #2  
Old May 30th, 2005, 08:04 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8
often you'll find a "fake" directory [i think they're called alias directories, or linking directories"] in unix/linux.
chances are, when you go to /usr/bin/java, it's the exact same as going to /usr/lib/jdk-whatever

What happens if you try using the full path to execute Javac?
/usr/lib/jdk-1.4.2_07/jre/bin/javac myfile.java

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJava Development > Please Help! Javac: command not found


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway