[KLUG Members] I am a Java ignoramous

Adam Tauno Williams members@kalamazoolinux.org
Wed, 01 Aug 2001 09:33:06 -0400 (EDT)


Having the need to run some java stuff (not the least of which is xmlBlaster)
and knowing that the wonderful and brilliant and pro-UNIX/pro-Linux people at
IBM have always served me well in the past I installed IBMJava2-SDK-1.3-9.0, 
and added /opt/IBMJava2-13/jre/bin/ to my path.  Since the day of that simple
"rpm -Uvh" and "vi /etc/profile", when I spend about 15 seconds demonstrating
again how very hard it is to install software on Linux,  I have been happily
running Java applications without a hitch.  I "java app-name" and up pops a
window,  fast and stable.  Couldn't be happier.

After all these ages-es-es I have come across my first app that doesn't work, 
and knowing diddly bupt-kiss about java I don't really even understand what the
error means:

~/tmp $ java NSBrowser.jar 
Exception in thread "main" java.lang.NoClassDefFoundError: NSBrowser/jar

I got this app from - 
http://darkstar.wizcom.bg/~kiril/software/

It is a CORBA Name Space Browser,  a utility I have been dreaming of finding for
a very long time.

Knowing that a java jar is like a tar file I do:
~/tmp $ /opt/IBMJava2-13/bin/jar tvf NSBrowser.jar 
     0 Wed Feb 07 11:13:12 EST 2001 META-INF/
    91 Wed Feb 07 11:13:12 EST 2001 META-INF/MANIFEST.MF
   667 Tue Feb 06 12:42:34 EST 2001 NSBrowser$1.class
   667 Tue Feb 06 12:42:34 EST 2001 NSBrowser$2.class
   504 Tue Feb 06 12:42:34 EST 2001 NSBrowser$3.class
  5930 Tue Feb 06 12:42:34 EST 2001 NSBrowser.class
  4511 Tue Feb 06 12:29:50 EST 2001 NSBrowser.java
  2784 Tue Feb 06 12:42:34 EST 2001 NSTreeModel$Wraper.class
  3346 Tue Feb 06 12:42:34 EST 2001 NSTreeModel.class
  4428 Tue Feb 06 11:46:12 EST 2001 NSTreeModel.java

So extract it and try "java NSBrowser.java" and get -
~/tmp $ java NSBrowser.java
Exception in thread "main" java.lang.NoClassDefFoundError: NSBrowser/java

No joy :(

Any pointers?

Systems and Network Administrator
Morrison Industries
1825 Monroe Ave NW.
Grand Rapids, MI. 49505