• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Ebrahim Farahani
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Capture001.PNG
[Thumbnail for Capture001.PNG]
Capture002.PNG
[Thumbnail for Capture002.PNG]
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic