Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Error: could not find Java 2 Runtime Environment.

  Asked By: Joel    Date: Aug 08    Category: Java    Views: 4463

I installed j2sdk1.4.0, Tomcat4.0.4, IIS and JBuilder on my system and
integrated IIS and Tomcat for my project work..... All r
working fine, but I cudnt able to run standalone java programs.
Compilation(javac) is doing without problem but cudnt able to
execute with "java <filename>" command.The error shows like this.....
C:\personalize\raja\java>javac test.java
C:\personalize\raja\java>java test
Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
has value '1.3', but '1.4' is required.
Error: could not find java.dll
Error: could not find Java 2 Runtime Environment.
I believe the error is becuase when u install JBuilder it also install JDK1.3,
so I changed the CurrentVersion to 1.4 from 1.3.
Afterwards it began to show error like this which I cudnt able to remove it...
C:\personalize\raja\java>java test
Exception in thread "main" java.lang.NoClassDefFoundError: test



5 Answers Found

Answer #1    Answered By: Fred Hicks     Answered On: Aug 08
Answer #2    Answered By: Ludo Ricci     Answered On: Aug 08

Can you describe all settings of server and
Tomcat, IIS before giving any advice on this matter

Answer #3    Answered By: Luigi Fischer     Answered On: Aug 08

This is known error  in M$ environmemnt, You cld find  many solutions for
this issue by "Googling".

Answer #4    Answered By: Latasha Wilson     Answered On: Aug 08

why don't u set the classpath again? after compiling the program set the class
path to your current working folder.

Answer #5    Answered By: Ora Hanson     Answered On: Aug 08

i suppose that u install  sdk1.4 after jre1.3 instalation ,
but your path variable still show  older java  runtime installation.
shortly, u use

java1.4 classpath and packages
but u compile with java1.3 compiler
and try to run  with java1.3....bla bla...

u have to correct your path and classpath variables, than u'll have a nice day.

Didn't find what you were looking for? Find more on Error: could not find Java 2 Runtime Environment. Or get search suggestion and latest updates.