× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I have a CL program that calls a java program using QSHELL

It works fine on our Power8 running 7.1

I move the CL program and the java files to another machine (also
running 7.1)

When I try to execute the CL on the 2nd machine I get the error shown
below:



I am not a java guru but I believe (from reading almost the complete
internet) that it has to do with not being able to find a java class

My first question is

1. Does this error say it can't find com.gnostice.pdfone
or does it mean com.gnostice.pdfone encountered an error trying to
find java.net.URLClassLoader.findClass

Or does it mean something else?



2. I am not 100% sure which (if any) java directories/jars need
to be in the classpath or does the IBM I take care of the java classes
for me?
There are these two values in all of our CLASSPATHS:
/QIBM/ProdData/OS400/jt400/lib/jt400Native.jar: /QIBM/Prodata/JAVA
(I believe because all of our java programs were created by copying an
existing one)



The first text line of the error does not look right (the
pdfone.PDFOne part) or is that just the way that java formats its
messages?:
java.lang.NoClassDefFoundError: com.gnostice.pdfone.PDFOne






Both machines are running IBM I 7.1 and java 1.7

java version "1.7.0"


Java(TM) SE Runtime Environment (build
pap3270_27sr3fp20-20151106_01(SR3 FP20))

IBM J9 VM (build 2.7, JRE 1.7.0 OS/400 ppc-32
jvmap3270_27sr3fp20-20151027_01 (JIT enabled, AOT enabled)

J9VM - R27_Java727_SR3_20151022_1530_B273253


JIT - tr.r13.java.sr3.fp20_20151005_102390.01


GC - R27_Java727_SR3_20151022_1530_B273253


J9CL - 20151022_273253)


JCL - 20151105_01 based on Oracle jdk7u91-b15




ERROR:



Exception in thread "main" java.lang.NoClassDefFoundError:
com.gnostice.pdfon

e.PDFOne


at sfapdfen.<clinit>(sfapdfen.java:36)


Caused by: java.lang.ClassNotFoundException:
com.gnostice.pdfone.PDFOne

at java.net.URLClassLoader.findClass(URLClassLoader.java:600)


at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:786)


at java.lang.ClassLoader.loadClass(ClassLoader.java:760)


at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:326)

at java.lang.ClassLoader.loadClass(ClassLoader.java:741)




Thanks in advance for your help



John








As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.