This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
A jar file has been built to create a J2EE Java desktop application with online help supported by JavaHelp and the JavaHelp files distributed in jh2.0. The following files are included in the NB project's properties Library declarations: D:\jh2.0\javahelp\lib\jh.jar D:\jh2.0\javahelp\lib\jhall.jar The following errors areerroneously returned when attempting to run the jar file that has been built. The jar file has been been run in the following ways: 1. By clicking on the .jar file residing in the dist folder. This returns: Error: A JNI error has occurred, please check your installation and try again. 2. By running the jar file in a Windows command line shell: D:\J2EE\NewDawn\dist>java -jar NewDawn.jar Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.NoClassDefFoundError: javax/help/HelpSetExc eption at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Unknown Source) at java.lang.Class.privateGetMethodRecursive(Unknown Source) at java.lang.Class.getMethod0(Unknown Source) at java.lang.Class.getMethod(Unknown Source) at sun.launcher.LauncherHelper.validateMainClass(Unknown Source) at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source) Caused by: java.lang.ClassNotFoundException: javax.help.HelpSetException at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 7 more 3. By running the application after deploying it as a native package: Unpredictable. Some parts of the help system work, some do not. Appears to be no consistency in why some parts work and some do not. 4. By running the main class directly in NB: No errors, the help system works error free. Additional notes: Prior to NB 8, none of the above problems were experienced.