Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Beginning Java
Search Coderanch
Advance search
Google search
Register / Login
Help coderanch get a
new server
by contributing to the
fundraiser
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Ron McLeod
Paul Clapham
Devaka Cooray
Liutauras Vilda
Sheriffs:
Jeanne Boyarsky
paul wheaton
Henry Wong
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Tim Moores
Carey Brown
Mikalai Zaikin
Bartenders:
Lou Hamers
Piet Souris
Frits Walraven
Forum:
Beginning Java
Packageing a Jar does not work
davoud taghawi
Greenhorn
Posts: 4
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hello,
I try to package a jar file in linux, but when I double click the jar file nothing happens.( The programs runs fine from eclipse).
when I try it on the promt the following happaens
java -jar Growth.jar Exception in thread "main" java.lang.NoClassDefFoundError: org/jfree/ui/ApplicationFrame at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:637) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:277) at java.net.URLClassLoader.access$000(URLClassLoader.java:73) at java.net.URLClassLoader$1.run(URLClassLoader.java:212) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:323) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:268) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336) Caused by: java.lang.ClassNotFoundException: org.jfree.ui.ApplicationFrame at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:323) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:268) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336) ... 12 more Could not find the main class: de.taghawinejad.Growth. Program will exit.
How can I solve this?
Mathew Lee
Ranch Hand
Posts: 238
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
seems to be path issue
Maneesh Godbole
Bartender
Posts: 11497
19
I like...
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Are you using any third party jars in your application? If yes, having jars inside jars does
not
work. Search the forums. This question has been discussed before. You will find a solution.
If not, can you post the contents of your jar's manifest.mf?
[
How to ask questions
] [
Donate a pint, save a life!
] [
Onff-turn it on!
]
davoud taghawi
Greenhorn
Posts: 4
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hello,
that was the problem. The solution is
http://fjep.sourceforge.net/
. Fat-Jar a plugin that supports jars in jars
davoud
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Why am I not able to this code in eclipse?
Problem with com.mysql.jdbc.Driver driver
HibernateException
package javax.servlet.http does not exist
org.apache.log4j.Logger
More...