File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes problem installing java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "problem installing java" Watch "problem installing java" New topic
Author

problem installing java

Rob Petterson
Ranch Hand

Joined: Jan 23, 2002
Posts: 149
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?


Rob Petterson
SCJP
Bryant Constant
Greenhorn

Joined: Jun 24, 2002
Posts: 10

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

Joined: Jan 23, 2002
Posts: 149
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

Joined: Dec 10, 2001
Posts: 7023
It looks like you probably want to visit http://java.sun.com/j2se/1.4/download.html and download the SDK.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Rob Petterson
Ranch Hand

Joined: Jan 23, 2002
Posts: 149
Thanks Bryant and Dirk. Im downloading the SDK now. All 3hrs of it on a 56k modem!!
Bryant Constant
Greenhorn

Joined: Jun 24, 2002
Posts: 10

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 !!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem installing java
 
Similar Threads
Path and classpath
can't start compiler
Basic help
JDate not found in JDateTest
Where do I update the PATH environment?