Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Installing in Windows 2000.. what am I doing wrong?

 
Egnarst Applerope
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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'

Rene
[ December 19, 2002: Message edited by: Rene Larsen ]
 
Egnarst Applerope
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah yes! Thanks!! Was wondering why a find on "javac" wasn't returning anything....
Let me try again...
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic