Skip to main content

Problems with distribution an application via Java Web Start

2 replies [Last post]
superbig
Offline
Joined: 2006-12-01

Hello everybody!

Well, I'm developing a desktop application that works as a wizard. I'm using the project Wizard in my project. But I try distribute my system with Java Web Start and the following exception occurs:

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: org/netbeans/spi/wizard/WizardPanelProvider
at com.labhpardini.atualizarImpressora.Main.main(Main.java:35)
... 11 more

Someone knows what the problem?

Thanks!
Superbig

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
neilweber
Offline
Joined: 2003-06-25

You're distributing the appropriate Netbeans classes, right? If you're distributing via a different jar than your application classes, you've listed that jar in your jnlp file, right?

evickroy
Offline
Joined: 2004-07-23

I believe the Netbeans Wizard API was extracted into the Swinglabs-Wizard project at [1] as an alternative if you want to try it. Either way you do have to distribute the Wizard jar file as Neil pointed out. It sounds like you are missing it as a resource in your JNLP file.

Erik

[1] https://wizard.dev.java.net/