File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JNLP and Web Start and the fly likes Why I can't run Web Start when my class using hibernate? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Why I can Watch "Why I can New topic
Author

Why I can't run Web Start when my class using hibernate?

Ebrahim Farahani
Greenhorn

Joined: Dec 01, 2010
Posts: 2
I'm using
NetBeans 6.9.0 and access my oracle via JBDC.
If I remove hibernate library import(s) from main class the application runs without problem.

Error:

java.lang.NoClassDefFoundError: org/jdesktop/application/SingleFrameApplication
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
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$000(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 com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.jdesktop.application.SingleFrameApplication
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 16 more


[Thumbnail for Capture001.PNG]

[Thumbnail for Capture002.PNG]

Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18138
    
    8

Ebrahim Farahani wrote:I'm usingNetBeans 6.9.0...

Error:

java.lang.NoClassDefFoundError: org/jdesktop/application/SingleFrameApplication

That's a class which is part of Netbeans. It isn't part of the standard Java API. So if you want to use it in your Web Start application, you're going to have to get the jar file which contains it and make that available for download just like you did for the Hibernate jar files.

I don't know much about Netbeans but I would expect that distributing those classes is a Netbeans FAQ which you should be able to locate somewhere on the web.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why I can't run Web Start when my class using hibernate?
 
Similar Threads
hibernate
errors with main class
Jnlp cannot find the main class in a Jar packaged using "OneJar".
JWS: Executable jar runs but doesn't show the data
MySQL Connector/J