P
Pito Salas
Here's my Manifest.mf for what is supposed to be an executable JAR. It
doesn't work at all and I've been experimenting like crazy and looking for
information on the web and have not been able to solve it (and I think it's
something really trivial.)
Manifest-Version: 1.0
Main-Class: com.salas.bb.core.ApplicationLauncher
Class-Path: lib/binding-0.9.6.jar
bin
bin/com/salas/bb/ai
bin/com/salas/bb/channelguide
bin/com/salas/bb/core
bin/com/salas/bb/dialogs
bin/com/salas/bb/views
bin/com/salas/bb/utils
bin/resources
lib/castor.jar
lib/cglib.jar
lib/commons-collections.jar
lib/commons-lang.jar
lib/commons-logging.jar
lib/dom4j.jar
lib/ehcache.jar
lib/forms-1.0.2.jar
lib/hibernate2.jar
lib/htmlparser.jar
lib/hsqldb.jar
lib/jdbc2_0-stdtext.jar
lib/informa.jar
lib/jdom.jar
lib/jta.jar
lib/looks-1.1.3.jar
lib/lucene.jar
lib/odmg.jar
lib/uif-1.2b6.jar
lib/xalan.jar
lib/xerces.jar
lib/xml-apis.jar
lib/xmlrpc-1.2.b1.jar
If I look inside the Jar with PKUnzip I see: the indicated JARs inside the
indicated directory: lib; The application's own .CLASS files as well as some
properties files are found in the directories bin, and bin/com/salas/bb/ai
bin/com/salas/bb/channelguide, etc.
What happens when I launch with java -jar blogbridge.jar is that I get a
missing class, which I happen to know is in the
directorybin/com/salas/bb/core.
Exception in thread "main" java.lang.NoClassDefFoundError:
com/jgoodies/swing/convenience/DefaultApplicationStarter
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Also I can tell that a logging.properties file which lives in the same
directory is not being seen.
The first line in the app prints out the classpath and when I fool the app
into running it prints that the classpath is blogbridge.jar and nothing
more.
Can someone please help??? I suspect its a trivial problem!
Thanks
doesn't work at all and I've been experimenting like crazy and looking for
information on the web and have not been able to solve it (and I think it's
something really trivial.)
Manifest-Version: 1.0
Main-Class: com.salas.bb.core.ApplicationLauncher
Class-Path: lib/binding-0.9.6.jar
bin
bin/com/salas/bb/ai
bin/com/salas/bb/channelguide
bin/com/salas/bb/core
bin/com/salas/bb/dialogs
bin/com/salas/bb/views
bin/com/salas/bb/utils
bin/resources
lib/castor.jar
lib/cglib.jar
lib/commons-collections.jar
lib/commons-lang.jar
lib/commons-logging.jar
lib/dom4j.jar
lib/ehcache.jar
lib/forms-1.0.2.jar
lib/hibernate2.jar
lib/htmlparser.jar
lib/hsqldb.jar
lib/jdbc2_0-stdtext.jar
lib/informa.jar
lib/jdom.jar
lib/jta.jar
lib/looks-1.1.3.jar
lib/lucene.jar
lib/odmg.jar
lib/uif-1.2b6.jar
lib/xalan.jar
lib/xerces.jar
lib/xml-apis.jar
lib/xmlrpc-1.2.b1.jar
If I look inside the Jar with PKUnzip I see: the indicated JARs inside the
indicated directory: lib; The application's own .CLASS files as well as some
properties files are found in the directories bin, and bin/com/salas/bb/ai
bin/com/salas/bb/channelguide, etc.
What happens when I launch with java -jar blogbridge.jar is that I get a
missing class, which I happen to know is in the
directorybin/com/salas/bb/core.
Exception in thread "main" java.lang.NoClassDefFoundError:
com/jgoodies/swing/convenience/DefaultApplicationStarter
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Also I can tell that a logging.properties file which lives in the same
directory is not being seen.
The first line in the app prints out the classpath and when I fool the app
into running it prints that the classpath is blogbridge.jar and nothing
more.
Can someone please help??? I suspect its a trivial problem!
Thanks