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.

Bug 257469 - Exception in thread "main" java.lang.NoClassDefFoundError: javax/help/HelpSetException
Summary: Exception in thread "main" java.lang.NoClassDefFoundError: javax/help/HelpSet...
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.0.2
Hardware: PC Windows 8.1
: P3 normal (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-08 07:19 UTC by xkkpafi
Modified: 2016-01-22 16:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description xkkpafi 2016-01-08 07:19:08 UTC
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.