Results 1 to 3 of 3
Thread: PATH variable
- 05-31-2012, 09:40 PM #1
Member
- Join Date
- May 2012
- Posts
- 2
- Rep Power
- 0
PATH variable
Hi,
I am new to Java. I went on oracle.com to get my Java JDK and everything, and then read the installation guide http://docs.oracle.com/javase/7/docs...ex.htmlhttp://
I followed the instructions, adding the PATH variable value which looked something like this: C:\Program Files\Java\jdk1.7.0_04\bin
So Now I write a simple helloworld.java program, and when i try to compile it i get this message:
'javac' is not recognized as an internal or external command,
operable program or batch file.
this doesnt happen when I go to the above bin folder in cmd, but I'm not allowed to save .java files in there for some reason...
What am I supposed to do if javac only works where it comes from and i'm supposed to have my .java's elsewhere??
Can someone help please?? http://www.java-forums.org/images/sm...ype/(nerd).gif
- 05-31-2012, 09:50 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,405
- Blog Entries
- 7
- Rep Power
- 17
Re: PATH variable
Your PATH isn't set correctly; check each and every character and pay special attention for space characters (e.g. before the part "C:").
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 05-31-2012, 10:21 PM #3
Member
- Join Date
- May 2012
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
javac problem (have set the path variable, but it is not working!)
By george27 in forum New To JavaReplies: 3Last Post: 12-22-2011, 12:22 PM -
Regarding the conversion of local machine path to UNC path
By abhish in forum NetworkingReplies: 1Last Post: 11-14-2011, 04:39 PM -
setting class-path & Library Path in ubantu
By programmer_007 in forum EclipseReplies: 18Last Post: 02-22-2010, 12:31 PM -
Java path variable's
By Jordsk in forum New To JavaReplies: 2Last Post: 04-09-2009, 02:20 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks