I am trying to compile a bean with the following command line:

GenIC -javacopts -classpath %CLASSPATH% -verbose -d . Costing.ser

Which displays the following error

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException
        at org.objectweb.jonas.tools.GenIC.main(GenIC.java:597, Compiled
Code)

This is because the second %CLASSPATH% for javac does not ocontain any ;
(semicolons). Putting the semicolons into the command gives me this:

java -Dinstall.root=D:\jonas_jdk1.2 -classpath D:\jonas_jdk1.2\lib\R
MI_Jonas.jar;D:\jonas_jdk1.2\lib\jpp.jar;D:\grace\classes.jar;D:\Sprinta;.;
org.
objectweb.jonas.tools.GenIC -javacopts -classpath
D:\jonas_jdk1.2\lib\RMI_Jonas.
jar;D:\jonas_jdk1.2\lib\jpp.jar;D:\grace\classes.jar;D:\Sprinta;.; -verbose
-d .
 Costing.ser

Which is %CLASSPATH% for both java.exe and javac.exe. 

Problem is the second classpath never gets passed to javac so the process
hangs with the following:

GenIC: Treatement of the Serialized Deployment Descriptor 'Costing.ser'.
GenIC: The Implementation Remote Class is successfully generated in
.\damanPay\p
ay\JOnASCostingImplCosting.java file.
GenIC: The Implementation Home Class is successfully generated in
.\damanPay\pay
\JOnASCostingImplCostingHome.java file.
GenIC: Running 'javac -d .  -classpath
.\damanPay\pay\JOnASCostingImplCosting.ja
va .\damanPay\pay\JOnASCostingImplCostingHome.java'

The last command here is:

javac -d .  -classpath .\damanPay\pay\JOnASCostingImplCosting.java
.\damanPay\pay\JOnASCostingImplCostingHome.java

which if run independently of GenIc gives me lots of ClassNotFound
exceptions. If I modify the above command to:

javac -d .  -classpath %CLASSPATH%
.\damanPay\pay\JOnASCostingImplCosting.java
.\damanPay\pay\JOnASCostingImplCostingHome.java

it compiles no problem.

I am using NT4 and Jonas 1.6 and also the Symantec JIT compiler for JDK1.2
(GC)

The basic problem is that -javacopts doesn't seem to function correctly but
it might be something to do with the Symantec JIT which is the one you get
with VisualCafe 4.

Regards,

Rob Hargreaves.



----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to