09-04-2008 01:06 PM
I am getting error invoking java as follows, can someone tell me whats wrong ?
$java -Doracle.jdbc.Trace=false -classpath ".;bin;%JCE_DIR%\IngrianNAE.jar;%JCE_DIR%\log4j-1.
Unrecognized option: -doracle.jdbc.trace=false
Could not create the Java virtual machine.
Solved! Go to Solution.
09-04-2008 01:36 PM
$java -classpath ORACLE:[ORACLE9I.INGRIAN.ONLINE.INGRIAN_MIGROTATIO
Exception in thread "main" java.lang.NoClassDefFoundError: com/ingrian/migrot/migraterotate
09-04-2008 06:41 PM
$ SET PROCESS/PARSE_STYLE=EXTENDED
$ DEFINE/NOLOG/JOB DECC$ARGV_PARSE_STYLE TRUE
$ DEFINE/NOLOG/JOB DECC$EFS_CASE_PRESERVE TRUE
$ DEFINE/NOLOG/JOB DECC$EFS_CASE_SPECIAL TRUE
$ DEFINE/NOLOG/JOB DECC$EFS_CHARSET TRUE
$ DEFINE/NOLOG/JOB DECC$ENABLE_GETENV_CACHE TRUE
$ DEFINE/NOLOG/JOB JAVA$FILENAME_CONTROLS 8 ! only enable the mixed UNIX/VMS filespec mapping
$ DEFINE/NOLOG/JOB JAVA$READDIR_CASE_DISABLE TRUE ! turns off auto. class/source case-sensitive name extraction
09-05-2008 08:56 AM
I defined all the logicals that you mentioned but Iam still getting the same error. Also the jar utility can't find the jar file where as the dir command can find the file :
QATST$ jar tvf ORACLE:[ORACLE9I.INGRIAN.ONLINE.INGRIAN_MIGROTATIO
JRE path is /sys$common/java$131/jre
jvm.cfg = ->-classic<-
1 micro seconds to parse jvm.cfg
Does `java$jvm_shr' exist ... yes.
JVM path is java$jvm_shr
version 0x00010002, ignoreUnrecognized is JNI_FALSE, nOptions is 4
option[ 0] = '-Denv.class.path=/oracle/oracle9i/ingrian/online/
option[ 1] = '-Dapplication.home=/sys$common/java$131'
option[ 2] = '-Djava.class.path=/sys$common/java$131/lib/tools.
option[ 3] = '-Xms8m'
1 micro seconds to InitializeJVM
Main-Class is 'sun.tools.jar.Main'
Apps' argc is 2
argv[ 0] = 'tvf'
argv[ 1] = 'ORACLE:[ORACLE9I.INGRIAN.ONLINE.INGRIAN_MIGROTATI
1 micro seconds to load main class
at java.io.FileInputStream.open(Native Method)
at sun.tools.jar.Main.run(Main.java, Compiled Code)
at sun.tools.jar.Main.main(Main.java, Compiled Code)
QATST$ dir ORACLE:[ORACLE9I.INGRIAN.ONLINE.INGRIAN_MIGROTATIO
Total of 1 file.
09-05-2008 10:35 AM
What happens if you simply do:
$ jar tvf IngrianMigrot.jar
and let the classpath settings determine where to look?
Make sure you treat multiple dots consistently. If the classpath is log4j-1.2.9.jar, then the file had better be on an ODS-5 disk and named log4j-1^.2^.9.jar. If the classpath is log4j-1_2_9.jar, then the actual filename should match that (underscores, not escaped dots).
09-09-2008 01:44 PM
[Loaded java.security.cert.Certificate from /sys$common/java$142/jre/lib/rt.jar]
Exception in thread "main" java.lang.NoClassDefFoundError: MigrateRotate (wrong name: com/ingrian/migrot/MigrateRotate)
09-12-2008 12:21 PM
from your Forum Profile:
I have assigned points to 0 of 17 responses to my questions.
Maybe you can find some time to do some assigning?
Mind, I do NOT say you necessarily need to give lots of points. It is fully up to _YOU_ to decide how many. If you consider an answer is not deserving any points, you can also assign 0 ( = zero ) points, and then that answer will no longer be counted as unassigned.
Consider, that every poster took at least the trouble of posting for you!
To easily find your streams with unassigned points, click your own name somewhere.
This will bring up your profile.
Near the bottom of that page, under the caption "My Question(s)" you will find "questions or topics with unassigned points " Clicking that will give all, and only, your questions that still have unassigned postings.
Thanks on behalf of your Forum colleagues.
PS. nothing personal in this. I try to post it to everyone with this kind of assignment ratio in this forum. If you have received a posting like this before please do not take offence none is intended!
09-14-2008 10:43 PM
in all uppercase.
As stated: Java is extremely sensitive to case.
By renaming each of these directories to lowercase:
$ rename UPPER.DIR "lower.DIR"
or have the right case used in the any of your path declarations.
OpenVMS Developer & System Manager
11-15-2008 08:59 PM