Can't compile Converter files

I am trying to do the tutorials with j2sdkee1.2.1 intalled on Windows 98. While I tried to run compileEJB.bat file for Converter Application, I am getting the error on the console- " Bad command or file name".

I feel there is no problem with my installation as I am able to start J2EE server and Deployment Tool.

I entered J2EE_home directory in compileEJB.bat file and my path classpath variables are O.K.

Can anyone help me solve this problem? I know, there would be lot many problems in using j2ee on Win'98. I'd appreciate if anyone can tell me about the major problems and remedies in advance.

Thanks in advance.

Ravi

[670 byte] By [meruguravi] at [2007-9-26 2:03:54]
# 1

Hi,

- Open compileEJB.bat in a text editor (notepad).

- Replace <installation-location> with the location where you've installed j2ee. Your file will now look like this:

set J2EE_HOME=C:\j2sdkee1.2.1

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

javac -classpath %CPATH% ConverterEJB.java ConverterHome.java Converter.java

Hope this helps,

Kurt.

leukbr at 2007-6-29 8:47:14 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
Another thing: If my previous posting didn't work, make sure your jdk's bin directory is added to the PATH environment variable.set PATH=%PATH%;C:\jdk1.3\binRegards,Kurt.
leukbr at 2007-6-29 8:47:14 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3
Hi Kurt,Everything is set as per the settings you mentioned, but it's not working. What else could be missing?
meruguravi at 2007-6-29 8:47:14 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 4

Before using J2EE, jdk1.3 or above must be installed.

then, you should set some vairables

a, JAVA_HOME

b, J2EE_HOME

c, PATH

and the env size must be large enough for long CLASSPATH setting, do this by add a line

shell=c:\windows\command.com /e:8192 /p

into config.sys, reboot system after do this change.

Enter J2EE_HOME/bin, run

j2ee -verbose

if there still errors, paste here.

To compile the Converter, add %J2EE_HOME%/lib/j2ee.jar into CLASSPATH, run command javac *.java in Converter directory.

fayefun at 2007-6-29 8:47:14 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 5
Hi,Do you get the same error as before? Can you post the output which is shown in your command prompt (including the command lines "javac..." which are shown).
leukbr at 2007-6-29 8:47:14 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 6
The problem is solved. Even though the jdk path set in PATH environment variable, I had to set it explicitly using SET .... command before compiling the files.Thanks a lot.Ravi
meruguravi at 2007-6-29 8:47:14 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...