This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
Hi... I'm totally new to Java! Im trying to install Java on Windows 2000. And I tried downloading & installing the following 3 versions with always the same results... j2re-1_4_0_03-windows-i586 j2re-1_4_1_01-windows-i586 j2re-1_3_1_06-windows-i586-i I download and write( ahem..copy!) the HelloWorldApp.java program and javac always gives me the following when I type the command... C:\Java\JRE\1.3.1_06\bin>javac HelloWorldApp.java 'javac' is not recognized as an internal or external command, operable program or batch file I do point the Path to wherever the bin is (in this case C:\Java\JRE\1.3.1_06\bin What am I doing wrong? Will really appreciate any help towards getting my first java program started [ December 19, 2002: Message edited by: Egnarst Applerope ]
You should download J2SDK and install it, instead of J2JRE as you have done. 'javac' isn't part of a JRE. After install you should set the path to point to e.g. 'C:\j2sdk1.4.1\bin' and 'C:\j2sdk1.4.1\jre\bin'
So, the lesson is that J2SDK (formarly known as JDK) is the Java 2 Software Development Kit and is used to develop (compile) Java applications. J2RE or JRE is the Java Runtime Environment and is needed to run Java applications. A JRE is included with the J2SDK. Note that when setting the PATH environment variable, you may want to list the location of your preferred JRE before paths to Microsoft's products are listed. When you execute java from a command prompt, the system will use the first so-named executable file that it finds as it goes through the PATH setting. It's possible that it would find such an executable in a Windows system folder. This java executable would possibly be an older version (1.1.4) of Java.