The moose likes Beginning Java and the fly likes Help with installing SDK1.2.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Help with installing SDK1.2.2" Watch "Help with installing SDK1.2.2" New topic
Author

Help with installing SDK1.2.2

Thomas Jav
Greenhorn

Joined: Aug 31, 2000
Posts: 3
hello
I've installed SDK on my computer (OS win2000)but there is something wrong
when I run this command:
C:\>javac HelloWorld.java
I recieva a message:
' javac' is not recognized as an internal or external command, operable program or batch file.
I went through the whole troubleshooting process suggested by Sun and nothing has changed.
I did not have previously any exposure to writing commands in dos prompt so mayby there is somthing wrong with the syntax of that command (no space or backslash?)
Hugues Tremblay
Greenhorn

Joined: Aug 31, 2000
Posts: 1
Hello,
It depends on where you've installed it, but let's say you installed it in c:\. Normally, if you didn't changed parameters while installation was running, you should have a directory that is created for it. (something like c:\jsdk1_2)This is the java home. So the program javac.exe should be in c:\jsdk1_2\bin. So, to execute javac, you have to specify the path so your command line would be something like:
c:\jsdk1_2\bin\javac HelloWorld.java
it should work (note that you might have to change jsdk1_2. It might not be exactely how Sun define it but I don't remember the sun's default nomenclature because I usually change it to c:\jdk )
STEP 2
As you can see, it can be long to always write the path to compile, so you can set the variable PATH in your environnement setting to the path so you won't have to always write it!
Hope it help, despite my pour eglish ;-)
Hugues
Originally posted by Thomas Jav:
hello
I've installed SDK on my computer (OS win2000)but there is something wrong
when I run this command:
C:\>javac HelloWorld.java
I recieva a message:
' javac' is not recognized as an internal or external command, operable program or batch file.
I went through the whole troubleshooting process suggested by Sun and nothing has changed.
I did not have previously any exposure to writing commands in dos prompt so mayby there is somthing wrong with the syntax of that command (no space or backslash?)

Paul Smythe
Greenhorn

Joined: Jun 06, 2003
Posts: 1
You need to set the path variable for your system. If youre using Windows, this is a good one: http://www.geocities.com/ezt_howto_installjsdk/
For Linux:
http://www.geocities.com/tipsforlinux/articles/11.html
James Chegwidden
Author
Ranch Hand

Joined: Oct 06, 2002
Posts: 201
Why are you installing 1.2? The current version is 1.4.


Author and Instructor, my book
Bideshi Guy
Greenhorn

Joined: Jun 10, 2003
Posts: 2
Seems like you need to set up Environment variables, It should be in the properties of mycomputer under advance option.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help with installing SDK1.2.2