Woohoo! That got it loaded without errors. Sounds like a bug in how java uses the classpath. I saw quite a few examples saying to put ".:" at the beginning of the classpath to include the current directory.

And I should mention that doing

qsh cmd('javap -s -public someclass')

without also having "-classpath $CLASSPATH" doesn't work either.

Now I just have to get the program to do what I want, i.e. tell me the color of the text in A2 of the first sheet of my test spreadsheet.

Thanks Gary, Dan, Federico. Lots of learning taking place on my end. I'll probably be back with more fun & games.

--*
Peter Dow*/
Dow Software Services, Inc.
909 793-9050
pdow@xxxxxxxxxxxxxxx <mailto:pdow@xxxxxxxxxxxxxxx> /



On 7/19/2011 1:47 PM, Gary L Peskin wrote:
You're right - it doesn't look like very much detail there. Try specifying
/home/pdow explicitly in the classpath.

HTH,
Gary

-----Original Message----- From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l- bounces@xxxxxxxxxxxx] On Behalf Of Peter Dow Sent: Tuesday, July 19, 2011 10:35 AM To: java400-l@xxxxxxxxxxxx Subject: Re: NoClassDefFoundError: testjava.class I was wondering if there was a way to see more detail. Here's the results -- it seems to find everything except testjava: clas load: java/lang/Object
...
class load: java/util/LinkedList$Entry
class load: java/util/HashSet
class load: java/lang/LinkageError
class load: java/lang/NoClassDefFoundError<=========ERROR
Exception in thread "main" java.lang.NoClassDefFoundError: testjava
Caused by: java.lang.ClassNotFoundException: testjava
at java.net.URLClassLoader.findClass(URLClassLoader.java:497)
at java.lang.ClassLoader.loadClass(ClassLoader.java:639)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:605)
class load: java/util/AbstractList$Itr
class load: java/util/IdentityHashMap$KeySet
class load: java/util/IdentityHashMap$IdentityHashMapIterator
class load: java/util/IdentityHashMap$KeyIterator
class load: java/io/DeleteOnExitHook
class load: java/util/HashMap$KeySet
class load: java/util/HashMap$HashIterator
class load: java/util/HashMap$KeyIterator

--*
Peter Dow*/
Dow Software Services, Inc.
909 793-9050
pdow@xxxxxxxxxxxxxxx<mailto:pdow@xxxxxxxxxxxxxxx> /




On 7/19/2011 2:47 AM, Gary L Peskin wrote:
Assuming that testjava.class is in /home/pdow, I'd add the -
verbose:class
argument so you can see what's happening during the classloading.

qsh cmd('java -classpath $CLASSPATH -verbose:class testjava')

Gary

--

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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

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