|
Where's your Java code? -----Original Message----- From: Nick Leonessa [mailto:nastvp@xxxxxxxxxxxxx] Sent: Saturday, March 20, 2004 7:56 AM To: JAVA400-L@xxxxxxxxxxxx Subject: Cant seem to execute my second Java program after Hello World I am trying to execute my second java program on the iseries. I was able to get the "Hello" program working, now I am trying the "SampleReader". When I issue the following commands, I get the following: java SampleReader java.lang.NoClassDefFoundError: com/adobe/acrobat/Viewer java/lang/Throwable.<init>(Ljava/lang/String;)V+4 (Throwable.java:90) java/lang/Error.<init>(Ljava/lang/String;)V+1 (Error.java:46) java/lang/NoClassDefFoundError.<init>(Ljava/lang/String;)V+1 (NoClassDefFoundError.java:43) java/lang/ClassLoader.defineClass(Ljava/lang/String;[BIILjava/security/Prote ctionDomain;)Ljava/lang/Class;+79ClassLoader.java:492) java/security/SecureClassLoader.defineClass(Ljava/lang/String;[BIILjava/secu rity/CodeSource;)Ljava/lang/Class;+27 (SecureClassLoader.java:111) java/net/URLClassLoader.defineClass(Ljava/lang/String;Lsun/misc/Resource;)Lj ava/lang/Class;+196 (URLClassLoader.java:287) java/net/URLClassLoader.access$300(Ljava/net/URLClassLoader;Ljava/lang/Strin g;Lsun/misc/Resource;)Ljava/lang/Class;+1 (URLClassLoader.java:64) java/net/URLClassLoader$ClassFinder.run()Ljava/lang/Object;+42 (URLClassLoader.java:594) java/net/URLClassLoader.findClass(Ljava/lang/String;)Ljava/lang/Class;+16 (URLClassLoader.java:200) java/lang/ClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;+41 (ClassLoader.java:303) sun/misc/Launcher$AppClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Cl ass;+33 (Launcher.java:286) java/lang/ClassLoader.loadClass(Ljava/lang/String;)Ljava/lang/Class;+1(Class Loader.java:259) java/lang/ClassLoader.loadClassInternal(Ljava/lang/String;)Ljava/lang/Class; +1 (ClassLoader.java:319) Then I try this: java -classpath /home/nick/acrobat.jar SampleReader java.lang.NoClassDefFoundError: SampleReader java/lang/Throwable.<init>(Ljava/lang/String;)V+4 (Throwable.java:90) java/lang/Error.<init>(Ljava/lang/String;)V+1 (Error.java:46) java/lang/NoClassDefFoundError.<init>(Ljava/lang/String;)V+1 (NoClassDefFoundError.java:43) And finally this: java -classpath /home/nick/:/home/nick/acrobat.jar SampleReader java.lang.NoClassDefFoundError: com/adobe/acrobat/Viewer java/lang/Throwable.<init>(Ljava/lang/String;)V+4 (Throwable.java:90) java/lang/Error.<init>(Ljava/lang/String;)V+1 (Error.java:46) java/lang/NoClassDefFoundError.<init>(Ljava/lang/String;)V+1 (NoClassDefFoundError.java:43) java/lang/ClassLoader.defineClass(Ljava/lang/String;[BIILjava/security/Prote ctionDomain;)Ljava/lang/Class;+79 (ClassLoader.java:492) java/security/SecureClassLoader.defineClass(Ljava/lang/String;[BIILjava/secu rity/CodeSource;)Ljava/lang/Class;+27 (SecureClassLoader.java:111) java/net/URLClassLoader.defineClass(Ljava/lang/String;Lsun/misc/Resource;)Lj ava/lang/Class;+196 (URLClassLoader.java:287) java/net/URLClassLoader.access$300(Ljava/net/URLClassLoader;Ljava/lang/Strin g;Lsun/misc/Resource;)Ljava/lang/Class;+1 (URLClassLoader.java:64) java/net/URLClassLoader$ClassFinder.run()Ljava/lang/Object;+42 (URLClassLoader.java:594) java/net/URLClassLoader.findClass(Ljava/lang/String;)Ljava/lang/Class;+16 (URLClassLoader.java:200) java/lang/ClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;+41 (ClassLoader.java:303) sun/misc/Launcher$AppClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Cl ass;+33 (Launcher.java:286) java/lang/ClassLoader.loadClass(Ljava/lang/String;)Ljava/lang/Class;+1 (ClassLoader.java:259) java/lang/ClassLoader.loadClassInternal(Ljava/lang/String;)Ljava/lang/Class; +1 (ClassLoader.java:319) Can someone shed some light on this for me. Thanks. My environment and settings are as follows. If I did not include enough, please let me know: Env--------------------------- QIBM_USE_DESCRIPTOR_STDIO=I QIBM_DESCRIPTOR_STDIN=CRLN=Y LOGNAME=NICK SHLVL=1 HOSTTYPE=powerpc HOSTID=10.0.0.2 HOSTNAME=AS400.NAST.COM OSTYPE=os400 MACHTYPE=powerpc-ibm-os400 CLASSPATH=.:/home/nick/acrobat.jar:/home/nick TERMINAL_TYPE=5250 HOME=/home/NICK PATH=/usr/bin: Version---------------------- java version "1.3.1" ls--------------------------- Hello.class Hello.java MRJToolkitStubs.jar acrobat.jar SampleReader.class
As an Amazon Associate we earn from qualifying purchases.
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.