Fatal Error: This J2EE SDK release runs only on Java 2 (JDK1.2 or later)

Hi

Can any one help me

i install the j2ee

i have jdk 1.4 version

i set the JAVA_HOME & J2EE_HOME path also

but when i run j2ee.bat i got the folloing error

Fatal Error: This J2EE SDK release runs only on Java 2 (JDK1.2 or later)

so any one solved my problem

Regards

Nimesh

[339 byte] By [nmorkara] at [2007-9-28 18:18:03]
# 1
Hi friend,have you found a solution for this I also have the same troublethx
chinth22a at 2007-7-12 16:07:57 > top of Java-index,Other Topics,Patterns & OO Design...
# 2

Hi!

U have not mentioned your platform.

Make sure u dont have java.exe file in the PATH

1) Windows has one default java.exe( Microsoft JVM in windows dirctory i think)

2) if u have installed Netscape/Mozilla with its jvm it will trouble u

So just rename java.exe to java2XX.exe

and set path to JDK_HOME/bin

try now

raghu

raghu_raman_ka at 2007-7-12 16:07:57 > top of Java-index,Other Topics,Patterns & OO Design...
# 3

Another possibility might be the J2EE implementation itself.

In the code for j2sdkee1.2.1, the error you see appears to originate in the checkJVMVersion method of com.sun.enterprise.util.Utility:

if ( !javaVersion.startsWith("1.2")

&& !javaVersion.startsWith("1.3") ) {

errmsg += "Fatal Error: This J2EE SDK release runs only on " +

"Java 2 (JDK1.2 or later)\n";

fatal = true;

This method is called first by J2EEServer. If you are using a later implementation of J2SE, then you will probably have some problems.

bernardsvillea at 2007-7-12 16:07:57 > top of Java-index,Other Topics,Patterns & OO Design...
# 4
Looks like, J2EE 1.2.1 isn't compatible with JDK 1.3 or higher.Either install JDK 1.2. Or Switch to J2EE 1.4.
ee00224a at 2007-7-12 16:07:57 > top of Java-index,Other Topics,Patterns & OO Design...
# 5

Hi,

Having two jdk's in the path might also be the problem.

In the CLASSPATH & PATH environment variables, whichever jdk comes first in sequence in the delimited path references , that jdk is used as the active jdk.

Even though you might have installed jdk1.4

try doing the below path setting :

PATH = <jdk1.4 - path> ;%PATH%

CLASSPATH = <JDK1.4 - LIB PATH> ; %CLASSPATH%

pav_shana at 2007-7-12 16:07:57 > top of Java-index,Other Topics,Patterns & OO Design...
# 6
HI,Pls do inform whether setting paths solved your problem.Regards,Pavan.
pav_shana at 2007-7-12 16:07:57 > top of Java-index,Other Topics,Patterns & OO Design...
# 7
Hello Sir,Can you please help me what jar files did u include in the classpath? Thanks in advance.> HI,> > Pls do inform whether setting paths solved your> problem.> > Regards,> > Pavan.
bajaorgea at 2007-7-12 16:07:57 > top of Java-index,Other Topics,Patterns & OO Design...