× 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.



------------------------------

message: 2
date: Sat, 20 Mar 2004 08:55:40 -0500
from: "Nick Leonessa" <nastvp@xxxxxxxxxxxxx>
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:
Nick,

Try this.

cd /home/nick
java -classpath .:/home/nick/acrobat.jar  SampleReader

-Marty

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.