Integrating Desktop Application to Web Application in Netbeans 6.5

Reply

Join Date: Sep 2007
Posts: 23
Reputation: kohuke is an unknown quantity at this point 
Solved Threads: 0
kohuke kohuke is offline Offline
Newbie Poster

Integrating Desktop Application to Web Application in Netbeans 6.5

 
0
  #1
Mar 16th, 2009
Hi.
I'm trying to learn how to make my own web app and following those tutorials:
http://www.netbeans.org/kb/docs/java/gui-db.html
http://www.netbeans.org/kb/61/web/applets.html

I created a desktop application like showed in the first guide.
Then tried to integrate it into the Web Applet.

But for some reason after right clicking my desktopapp's java file and selecting "run" i do not get the html file like shown "Running an Applet Source File" part of the second tutorial. Is it because one is an applet and other is an applucation?

Then i make a jar file, import it into my new web application like showed in the second tutorial and then build and then run, but i get an error like that in my IE window.

And yes i change the package location and name in the import part to fit mine.

  1. Java Plug-in 1.6.0_12
  2. Using JRE version 1.6.0_12 Java HotSpot(TM) Client VM
  3. User home directory = C:\Documents and Settings\kohuke
  4. ----------------------------------------------------
  5. c: clear console window
  6. f: finalize objects on finalization queue
  7. g: garbage collect
  8. h: display this help message
  9. l: dump classloader list
  10. m: print memory usage
  11. o: trigger logging
  12. q: hide console
  13. r: reload policy configuration
  14. s: dump system and deployment properties
  15. t: dump thread list
  16. v: dump thread stack
  17. x: clear classloader cache
  18. 0-5: set trace level to <n>
  19. ----------------------------------------------------
  20.  
  21.  
  22. java.lang.NoClassDefFoundError: org/jdesktop/application/SingleFrameApplication
  23. at java.lang.ClassLoader.defineClass1(Native Method)
  24. at java.lang.ClassLoader.defineClass(Unknown Source)
  25. at java.security.SecureClassLoader.defineClass(Unknown Source)
  26. at java.net.URLClassLoader.defineClass(Unknown Source)
  27. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  28. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  29. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  30. at java.lang.reflect.Method.invoke(Unknown Source)
  31. at sun.plugin2.applet.Plugin2ClassLoader.defineClassHelper(Unknown Source)
  32. at sun.plugin2.applet.Plugin2ClassLoader.access$100(Unknown Source)
  33. at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
  34. at java.security.AccessController.doPrivileged(Native Method)
  35. at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
  36. at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
  37. at java.lang.ClassLoader.loadClass(Unknown Source)
  38. at java.lang.ClassLoader.loadClass(Unknown Source)
  39. at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
  40. at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
  41. at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
  42. at java.lang.Thread.run(Unknown Source)
  43. Caused by: java.lang.ClassNotFoundException: org.jdesktop.application.SingleFrameApplication
  44. at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
  45. at java.lang.ClassLoader.loadClass(Unknown Source)
  46. at java.lang.ClassLoader.loadClass(Unknown Source)
  47. at java.lang.ClassLoader.loadClassInternal(Unknown Source)
  48. ... 20 more
  49. Caused by: java.io.IOException: open HTTP connection failed:http://localhost:8080/WebApplication1/org/jdesktop/application/SingleFrameApplication.class
  50. at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
  51. at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
  52. at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
  53. at java.security.AccessController.doPrivileged(Native Method)
  54. ... 24 more
  55. Exception: java.lang.NoClassDefFoundError: org/jdesktop/application/SingleFrameApplication

So now i have a question. Can I or can't I integrate a desktop application to a webapplication on not. If it is possible how can i do it in netbeans 6.5?

Thanks in advance
Mari
Last edited by kohuke; Mar 16th, 2009 at 5:19 am.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for JSP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC