|
Folks:
I've got some java code, being invoked from RPG, that is failing in
production.
The same code, running on our development system. Both systems are 7.4 and
have the same java 11 version installed.
The RPG code sets the classpath & java_home env variables (using java 11).
The job is receiving a MCH74A5 with reason code 2. This indicates that the
program ran System.exit with a non-zero exit code.
My code does not use System.exit.
The error occurs when the RPG code is invoking the java classes
constructor, which does absolutely nothing (empty constructor).
At the same time that this failure happens, a QPRINT spool file is created
for the user that contains this:
Exception in thread "main" java/lang/Error: Properties init: Could not
determine current working directory.
at java/lang/System.initProperties (java.base@11/NativeMethod:4294967295)
at java/lang/System.ensureProperties (java.base@11/System.java:417)
at java/lang/System.afterClinitInitialization (java.base@11
/System.java:220)
at java/lang/Thread.initialize (java.base@11/Thread.java:375)
at java/lang/Thread.<init> (java.base@11/Thread.java:162)
Unable to create Java Virtual Machine.
Anyone know where the current working directory for a job would be set? Is
it a job description setting (I couldn't find anything there)? Subsystem
description? User profile?
The user profile DOES have a home directory set, but that directory doesn't
exist. However, the same is true for our development system.
Any ideas where to look next?
Thanks!
david
--
IBM i on Power Systems: For when you can't afford to be out of business!
--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing
list
To post a message email: JAVA400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/java400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.