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
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.
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.
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.