• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem installing java

 
Rob Petterson
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've just bought a new pc and for the life of me can't get the dang compiler to work in dos mode. I've downloaded j2re1.4.0.0_1 onto XP and when I try and compile a prog I get this message:
"The name specified is not recognized as an
internal or external command, operable program or batch file."
I saved the j2re1.4.0.0_01 in this file : C:\Program Files\Java
This is what's in my path file:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C;\j2re1.4.0_01\BIN
Where am I going wrong?
 
Bryant Constant
Greenhorn
Posts: 10
Linux Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you download j2re1.4.0.0_1 or j2sdk1.4.0.0_1? %SystemRoot%\system32;?
I downloaded j2sdk1.4.0.0_1 which contained j2re1.4.0.0_1. j2re1.4.0.0_1 was expanded when j2sdk1.4.0.0_1 was installed.
If its really j2sdk1.4.0.0_1 then change your PATH to %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\j2sdk1.4.0_01\bin;C:\j2re1.4.0_01\jre\bin
( Note: your original path included a ;C;\j2re1.4.0_01 , semicolon after drive letter )
Add to CLASSPATH c:\j2sdk1.4.0_01\lib;.;c:\java; (where C:\Java is the directory where you are coding)
Note that directory %SystemRoot%\system32 (contained in the PATH) could also contain java or javac executables.
 
Rob Petterson
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've just checked my files and there is no record of j2sdk1.4.0.0_1. I'm sorry for sounding stupid here, but is it j2sdk1.4.0.0_1 that I should initially install?
If so, do I need to delete the files that I have alraedy downloaded?
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks like you probably want to visit http://java.sun.com/j2se/1.4/download.html and download the SDK.
 
Rob Petterson
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bryant and Dirk. Im downloading the SDK now. All 3hrs of it on a 56k modem!!
 
Bryant Constant
Greenhorn
Posts: 10
Linux Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The SDK is the "software development kit", so if
you were wanting to compile something, that probably means you were wanting to develop it too !!!
Sorry I did not make that more explicit in my initial message. Good Luck !!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic