- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: running Java on VMS issues
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2008 01:06 PM
тАО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.2.9.jar;%ORACLE_JAR%;l
ib\postgresql-8.1-405.jdbc3.jar;lib\sqljdbc.jar" com.ingrian.migrot.MigrateRotate
Unrecognized option: -doracle.jdbc.trace=false
Could not create the Java virtual machine.
$!
Solved! Go to Solution.
- Tags:
- Java
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2008 01:36 PM
тАО09-04-2008 01:36 PM
Re: running Java on VMS issues
$java -classpath ORACLE:[ORACLE9I.INGRIAN.ONLINE.INGRIAN_MIGROTATION.LIB]IngrianNAE.jar:ORACLE:[ORACLE9I.INGRIAN.ON
LINE.INGRIAN_MIGROTATION.LIB]log4j-1.2.9.jar:ORACLE:[ORACLE9I.INGRIAN.ONLINE.INGRIAN_MIGROTATION.LIB]postgresql-8.1
-405.jdbc3.jar:ORACLE:[ORACLE9I.INGRIAN.ONLINE.INGRIAN_MIGROTATION.LIB]sqljdbc.jar com.ingrian.migrot.MigrateRotate
Exception in thread "main" java.lang.NoClassDefFoundError: com/ingrian/migrot/migraterotate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2008 06:41 PM
тАО09-04-2008 06:41 PM
Solution$ 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-05-2008 08:56 AM
тАО09-05-2008 08:56 AM
Re: running Java on VMS issues
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_MIGROTATION.LIB]IngrianMigrot.jar
----_JAVA_LAUNCHER_DEBUG----
JRE path is /sys$common/java$131/jre
jvm.cfg[0] = ->-classic<-
1 micro seconds to parse jvm.cfg
Does `java$jvm_shr' exist ... yes.
JVM path is java$jvm_shr
JavaVM args:
version 0x00010002, ignoreUnrecognized is JNI_FALSE, nOptions is 4
option[ 0] = '-Denv.class.path=/oracle/oracle9i/ingrian/online/ingrian_migrotation/lib/IngrianNAE.jar:/oracle/oracle9i/ingrian/o
nline/ingrian_migrotation/lib/IngrianMigrot.jar:/oracle/oracle9i/ingrian/online/ingrian_migrotation/lib/log4j-1_2_13.jar:/oracle/ora
cle9i/ingrian/online/ingrian_migrotation/lib/postgresql-8.1-405_jdbc3.jar:/oracle/oracle9i/ingrian/online/ingrian_migrotation/lib/sq
ljdbc.jar:/oracle/oracle9i/ingrian/online/ingrian_migrotation/lib/ojdbc14.jar:/oracle/oracle9i/ingrian/online/ingrian_migrotation/bi
n'
option[ 1] = '-Dapplication.home=/sys$common/java$131'
option[ 2] = '-Djava.class.path=/sys$common/java$131/lib/tools.jar:/sys$common/java$131/classes'
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_MIGROTATION.LIB]IngrianMigrot.jar'
1 micro seconds to load main class
----_JAVA_LAUNCHER_DEBUG----
java.io.FileNotFoundException: ORACLE:[ORACLE9I.INGRIAN.ONLINE.INGRIAN_MIGROTATION.LIB]IngrianMigrot.jar (no such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.
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_MIGROTATION.LIB]IngrianMigrot.jar
Directory ORACLE:[ORACLE9I.INGRIAN.ONLINE.INGRIAN_MIGROTATION.LIB]
IngrianMigrot.jar;1
Total of 1 file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-05-2008 10:35 AM
тАО09-05-2008 10:35 AM
Re: running Java on VMS issues
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).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-08-2008 10:33 PM
тАО09-08-2008 10:33 PM
Re: running Java on VMS issues
Could that be the cause?
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-09-2008 01:44 PM
тАО09-09-2008 01:44 PM
Re: running Java on VMS issues
[Loaded java.security.cert.Certificate from /sys$common/java$142/jre/lib/rt.jar]
[Loaded [Ljava.security.cert.Certificate;]
Exception in thread "main" java.lang.NoClassDefFoundError: MigrateRotate (wrong name: com/ingrian/migrot/MigrateRotate)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2008 12:21 PM - last edited on тАО04-03-2017 12:56 AM by Parvez_Admin
тАО09-12-2008 12:21 PM - last edited on тАО04-03-2017 12:56 AM by Parvez_Admin
Re: running Java on VMS issues
Hi, Sami Ahmad
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?
[Broken link removed on <4/3/2017> by Mod]
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2008 10:43 PM
тАО09-14-2008 10:43 PM
Re: running Java on VMS issues
ORACLE:[ORACLE9I.INGRIAN.ONLINE.INGRIAN_MIGROTATION.LIB]
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2008 08:59 PM
тАО11-15-2008 08:59 PM