J2SDKEE1.2.1 compiling

Well, Ive created a batch file for compiling the .java files from the tutorial. But in one way or another the compiler can t find the j2ee.jar package. Though all paths were set correctly. Here s my batch file. Who can help me out!!!

echo The JAVA environment is about to be set...

set JAVA_HOME=c:\jdk1.3.1

set J2EE_HOME=c:\j2sdkee1.2.1

rem set DRIVE1=c:

rem set DRIVE2=e:

set JDK=c:\jdk1.3.1

set J2SDKEE=c:\j2sdkee1.2.1

set CLASSES=e:\src\servlet

set DEVLPMT=e:\src\servlet

set PATH = .;%JDK%\bin;c:\windows\command;c:\j2sdkee1.2.1\bin

set CLASSPATH=.;%CLASSES%;%DEVLPMT%;%JDK%\src.jar;%J2SDKEE%\lib\j2ee.jar;%JDK%\lib\tools.jar;c:\j2sdkee1.2.1\bin;c:\j2sdkee1.2.1\lib\jhall.jar;c:\j2sdkee1.2.1\lib\ejb10deployment.jar

set CPATH = .;%J2EE_HOME%\lib\j2ee.jar

%JAVA_HOME%\bin\javac -classpath %CPath% %CLASSES%\ConverterEJB.java %CLASSES%\Converter.java %CLASSES%\ConverterHome.java

[981 byte] By [abbatheerz] at [2007-9-26 5:41:21]
# 1
Hi! Sounds like you're running on Windows. Type "echo %classpath" (w/o the double quotes) at the command prompt. Is the classpath as you expected?BTW, what's the exact error message you're getting?Cheers!
amolk at 2007-7-1 13:57:32 > top of Java-index,Developer Tools,Java Compiler...
# 2

It is because of classpath problem

if any of the classpath is not available in ur setting , the remain won't work ,

for ex u have class path to c:\l.jar;c:\ll.jar

in this case if l.jar is not available the classpath won't take the next one...

so try to check if there any file is missing for u..

u can get the whole paths by typing

set | more cammand in the prompt...

let me know is it working now

ratheesh@eudoramail.com

ratheeshr5 at 2007-7-1 13:57:32 > top of Java-index,Developer Tools,Java Compiler...