File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Installation Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Installation Problem" Watch "Installation Problem" New topic

Installation Problem

r flaug

Joined: Mar 05, 2004
Posts: 2
I'm new to Java and eager to get started but I'm having an installation problem that I'm hoping someone can help me with.
I just installed J2EE 1.4 SDK onto a Win2000 machine. When I try to run a simple Java program that I've just compiled, I get the following error message:
c:\> java Hello
Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
has value '1.1', but '1.4' is required.
Error: could not find java.dll
Error: could not find Java 2 Runtime Environment.
I have my path set to c:\Sun\AppServer\jdk\bin. I don't have any classpath set. Incidentally, I also have Macromedia Dreamweaver MX v 6.1 installed and it has its own JVM.
Does anyone know how to fix this? Thanks!
Vicken Karaoghlanian
Ranch Hand

Joined: Jul 21, 2003
Posts: 522
It seems to me that you are having a conflict between two different Java Runtime Environments -- that is 1.1 and 1.4.
What happening is that you are compiling your code with the 1.4 version and running it with 1.1. I don't know if this is allowed or not.
I suggest you uninstall everything from the 'Control Panel' that is related to java and do a clean install from the beginning.

- Do not try and bend the spoon. That's impossible. Instead, only try to realize the truth. - What truth? - That there is no spoon!!!
Ayukawa Madoka

Joined: Feb 28, 2004
Posts: 27
if you didnt set the class path then that might be the problem i guess.
to set class path type "SET CLASSPATH=." in the command prompt and press Enter. hope it helps.

hello everyone i'm new here.
r flaug

Joined: Mar 05, 2004
Posts: 2
Thanks all. I began fixing the problem by uninstalling the new Java installation. After doing that I began getting a different error which led me to discover that there was another java.exe file in C:\Winnt\System32. I circumvented it by moving the the path to the executable I wanted to the head of my PATH variable.
jQuery in Action, 3rd edition
subject: Installation Problem
It's not a secret anymore!