aspose file tools*
The moose likes Beginning Java and the fly likes Installing in Windows 2000.. what am I doing wrong? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Installing in Windows 2000.. what am I doing wrong?" Watch "Installing in Windows 2000.. what am I doing wrong?" New topic
Author

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

Egnarst Applerope
Greenhorn

Joined: Dec 19, 2002
Posts: 4
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

Joined: Oct 12, 2001
Posts: 1179

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 ]

Regards, Rene Larsen
Dropbox Invite
Egnarst Applerope
Greenhorn

Joined: Dec 19, 2002
Posts: 4
Ah yes! Thanks!! Was wondering why a find on "javac" wasn't returning anything....
Let me try again...
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
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.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
Consider Paul's rocket mass heater.
 
subject: Installing in Windows 2000.. what am I doing wrong?