• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Installation Problem

 
r flaug
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 522
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ayukawa Madoka
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
r flaug
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic