• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

downloaded jdk1.5.0 need help compiling

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 657
Spring VI Editor Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic