tonykwok / leonardosketch

Automatically exported from code.google.com/p/leonardosketch
0 stars 0 forks source link

jnlp on Windows fails on NoClassDefFoundError #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Launch via JNLP, on Windows Vista: 
http://projects.joshy.org/Leonardo/daily/jnlp/Leonardo.jnlp (Sept 11-2010 16:15)
2. Observe JNLP error dialog.

What is the expected output? What do you see instead?

- expect application to start. Instead see error: 

java.lang.NoClassDefFoundError: com/apple/eawt/ApplicationListener
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
    at java.lang.Class.getMethod0(Unknown Source)
    at java.lang.Class.getMethod(Unknown Source)
    at com.sun.javaws.Launcher.executeApplication(Unknown Source)
    at com.sun.javaws.Launcher.executeMainClass(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: com.apple.eawt.ApplicationListener
    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)
    ... 9 more

What version of the product are you using? On what operating system?

- OS is Windows Vista SP1.
- Launched via JNLP
- JNLP is Sept 11 2010 16:15 timestamp file. Date of attempt is Sept 16th.

Please provide any additional information below.

Original issue reported on code.google.com by mikanboy@gmail.com on 16 Sep 2010 at 1:15

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The same happens on my Fedora Linux with Sun JDK 1.6.0_20.

The problem is in the import in /Sketch/src/org/joshy/sketch/Main.java
It uses import com.apple.eawt.ApplicationListener; while the library is not 
referenced in JNLP file.

Original comment by andrey.p...@gmail.com on 22 Sep 2010 at 5:58

GoogleCodeExporter commented 9 years ago
This should be fixed now.  MacStubs is now included in the JNLP.

Original comment by joshmari...@gmail.com on 6 Nov 2010 at 10:09