• Post Reply Bookmark Topic Watch Topic
  • New Topic

downloaded jdk1.5.0 need help compiling  RSS feed

 
Doug Fann
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i downloaded jdk1.5.0 from java.sun.com. i am running windows xp pro. i put everything in a folder called java. all of the files were unzipped successfully. i am trying to compile my first program. i created the program (helloworld) and saved it with a java extension. i followed the directions for compiling the program but for some reason javac cant be found. what do i need to do.
 
John Dell'Oso
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Doug,

You need to add the bin directory of your java installation to your PATH environment variable.

So for example if you installed JDK to c:\jdk1.5.0, then you need to add c:\jdk1.5.0\bin to your path - then the javac executable will be found by the operating system.

Regards,
JD
 
Steve Morrow
Ranch Hand
Posts: 657
Clojure Spring VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add the path to your java.exe file to your system PATH (not classpath), or simply speciy the full path to java.exe when you run that program.

For more information, read this (particularly step 5):

Installation Notes - JDK 5.0 Microsoft Windows (32-bit)
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!