HP OpenVMS Systems

ask the wizard
Content starts here

Java and classpath(cp) processing?

» close window

The Question is:

I am working with a Canadian Provincial Government and they have a JAVA
on ovms. If I run:
PEN DEV> java simplee
things work fine, but if I add a classpath (cp) argument I get:
PEN DEV> java -cp SYS$COMMON:[JAVA$141.JRE.LIB]classes12.JAR "simplee"
JRE path is /sys$common/java$141/jre
jvm.cfg[0] = ->-classic<-
jvm.cfg[1] = ->-native<-
jvm.cfg[2] = ->-green<-
1 micro seconds to parse jvm.cfg
Does `java$jvm_shr' exist ... yes.
JVM path is java$jvm_shr
1 micro seconds to LoadJavaVM
JavaVM args:
    version 0x00010002, ignoreUnrecognized is JNI_FALSE, nOptions is 3
    option[ 0] = '-Djava.class.path=.'
    option[ 1] = '-Djava.class.path=/sys$common/java$141/jre/lib/classes12.jar'
    option[ 2] = '-Dsun.java.command=simplee'
1 micro seconds to InitializeJVM
Main-Class is 'simplee'
Apps' argc is 0
1 micro seconds to load main class
java.lang.NoClassDefFoundError: simplee
I just want to run a simle app that accepts
and argument and it needs the jdbc package residing in classes12.jar.
Thanks for any suggestions/help.

The Answer is :

  Please see topic (5051) for information on working with classpaths.
  Also ensure the jar file (if properly referenced) is a stream_LF file.

answer written or last revised on ( 6-JUL-2004 )

» close window