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 November 24th, 2004, 01:45 AM
New2Java New2Java is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 2 New2Java User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Path not set right ???

Hey there, im having a wee bit o' trouble with setting the path to javac.

Not sure what im doing wrong, or if its just a window$ problem,

(Using windows xp sp2)
Ive added the line to my bin under system variables so my path variable is:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\Sy stem32\Wbem;"C:\Program Files\Java\jdk1.5.0\bin\javac"

For some reason i can compile if I type out the whole path in the command prompt window as:
C:\MyJava> "C:\Program Files\Java\jdk1.5.0\bin\javac" MyClass.java

But when i try:
C:\MyJava> javac MyClass.java ... i get the following error:

'javac' is not recognized as an internal or external command, operable program, or batch file.

Any ideas what im doing wrong would save a lot of typing in the near future. Thanx.

PS Ive tried setting the path with just \bin, instead of \bin\javac
with and without the quotes, under both user and system variables.
ive typed C:\> path to make sure that it was set and it is, and I can use the command
C:\MyJava> java MyClass without any problems after i managed to compile it using the entire
command line arg.

Reply With Quote
  #2  
Old November 24th, 2004, 07:23 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
set path so it points to the bin folder, not javac directly.

example: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\Sy stem32\Wbem;"C:\Program Files\Java\jdk1.5.0\bin\"

I'm pretty sure you need the quotes since "Program Files" has a space... on that note, it might be best to install Java in a folder that *doesn't* have a space... like C:\java

for the sake of testing, you could always cal javac as an absolute path...
"C:\Program Files\Java\jdk1.5.0\bin\javac.exe MyClass.java"

Let us know if anything I've offered works... there might be a bigger problem..

Reply With Quote
  #3  
Old November 29th, 2004, 05:29 PM
RodimusT RodimusT is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 5 RodimusT User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Red face Solution

U still having trouble with that cause i have a solution for you. I had the same problem and this fixed it.
go to your environment variables and find the one called path. Click edit and add the following to the
end of it. I did this and it fixed it and now I have it up and running.

;"C:\Program Files\Java\jdk1.5.0\bin";

Reply With Quote
  #4  
Old January 22nd, 2005, 05:10 AM
New2Java New2Java is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 2 New2Java User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanx =)

Sorry about the lateness of the thank you here, but

Thank You =)

Im sure i may have more questions in the near future as this semester I will
be doing a lot of programming in Java building an OS using the MOSS simulator http://www.ontko.com/moss/

Reply With Quote
  #5  
Old March 1st, 2005, 07:38 PM
amrshehata amrshehata is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 1 amrshehata User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 m 29 sec
Reputation Power: 0
Thumbs up I want to add my thanks for your help

Quote:
Originally Posted by RodimusT
U still having trouble with that cause i have a solution for you. I had the same problem and this fixed it.
go to your environment variables and find the one called path. Click edit and add the following to the
end of it. I did this and it fixed it and now I have it up and running.

;"C:\Program Files\Java\jdk1.5.0\bin";


I would like to add my thanks to you for your help, I tried the above and it is working fine after looking for days on the net for solution.
URLURLURL

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJava Development > Path not set right ???


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 1 hosted by Hostway
Stay green...Green IT