Hi, I am not sure it is the right way to do it but here is how I included JavaHelp in my application suite to migrate it from NetBeans 8.2 to NetBeans 11.3.
1) Downloaded JavaHelp from https://github.com/javaee/javahelp/releases 2) Unzipped the file 3) Added the jhall.jar as a wrapped jar into the modules that use JavaHelp (from \javahelp-2.0_05\binary\javahelp-2_0_05\jh2.0\javahelp\lib folder) 4) To avoid the error message “*You must set 'jhall.jar' (e.g. in private.properties) to the location of jsearch.jar from a JavaHelp distribution*” I checked the file issuing this error message NetBeans-11.3\netbeans\harness\build.xml <target name="javahelp" depends="init" if="has.javahelp"> <!-- Similar to projectized.xml but does not fiddle with usersguide/.../ide.css, and finds jhall.jar differently: --> <property name="jhall.jar" location ="${harness.dir}/antlib/jsearch-2.0_05.jar"/> <available property="jhall.jar.exists" file="${jhall.jar}"/> <fail unless="jhall.jar.exists">You must set 'jhall.jar' (e.g. in private.properties) to the location of jsearch.jar from a JavaHelp distribution</fail> <mkdir dir="${build.javahelp.dir}/${javahelp.base}/${javahelp.search}"/> <copy todir="${build.javahelp.dir}"> ……………………………………………. Then I copied jsearch.jar into NetBeans-11.3\netbeans\harness\antlib and renamed it jsearch-2.0_05.jar I am pretty sure this is not the right method but it worked for me Best wishes, JCD On Tue, Mar 17, 2020 at 2:25 PM Geertjan Wielenga <geert...@apache.org> wrote: > JavaHelp is not included in Apache NetBeans GitHub because it is GPL > licensed, which is against Apache policy, and therefore is also not part of > Apache NetBeans, it never has been and never will be unless it is licensed, > which seems unlikely to happen. It is something you'll need to add yourself > somehow -- someone who figures out how should share that with this > mailing list. > > Gj > > On Tue, Mar 17, 2020 at 2:22 PM Tim Mullé <tmu...@gmail.com> wrote: > >> Hi, >> >> Is there documentation somewhere that says JavaHelp is not available? I >> don’t see any mention of JavaHelp missing in 11.x on this link: >> https://netbeans.apache.org/wiki/DevFaqHelpGuidelines.asciidoc >> >> >> The reason I ask is that in 11.3 I can happily create a ‘Java Help Set’ >> for my module and the wizard creates all the necessary files and >> module..leading me to believe everything is ok. >> >> However, when I try to build the module I get the following exception >> when building using NetBeans 11.3 with OpenJDK 11. >> >> >> An annotation processor threw an uncaught exception. >> Consult the following stack trace for details. >> java.lang.NoClassDefFoundError: com/sun/java/help/search/Indexer >> at >> org.netbeans.modules.javahelp.HelpSetRegistrationProcessor.handleProcess(HelpSetRegistrationProcessor.java:142) >> at >> org.openide.filesystems.annotations.LayerGeneratingProcessor.process(LayerGeneratingProcessor.java:104) >> at >> com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:980) >> at >> com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:896) >> at >> com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1222) >> at >> com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1334) >> at >> com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1258) >> at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:936) >> at com.sun.tools.javac.main.Main.compile(Main.java:311) >> at com.sun.tools.javac.main.Main.compile(Main.java:170) >> at com.sun.tools.javac.Main.compile(Main.java:57) >> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native >> Method) >> at >> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) >> at >> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >> at java.base/java.lang.reflect.Method.invoke(Method.java:566) >> at >> org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:57) >> at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1404) >> at org.netbeans.nbbuild.CustomJavac.compile(CustomJavac.java:102) >> at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:1133) >> at org.netbeans.nbbuild.CustomJavac.execute(CustomJavac.java:83) >> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) >> at jdk.internal.reflect.GeneratedMethodAccessor118.invoke(Unknown Source) >> at >> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >> at java.base/java.lang.reflect.Method.invoke(Method.java:566) >> at >> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99) >> at org.apache.tools.ant.Task.perform(Task.java:350) >> at org.apache.tools.ant.Target.execute(Target.java:449) >> at org.apache.tools.ant.Target.performTasks(Target.java:470) >> at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388) >> at org.apache.tools.ant.Project.executeTarget(Project.java:1361) >> at >> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) >> at org.apache.tools.ant.Project.executeTargets(Project.java:1251) >> at >> org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:261) >> at >> org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:574) >> at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:128) >> Caused by: java.lang.ClassNotFoundException: >> com.sun.java.help.search.Indexer >> at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471) >> at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588) >> at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) >> ... 35 more >> >> >> Thanks, >> - Tim >> >> On Mar 17, 2020, at 2:32 AM, Geertjan Wielenga <geert...@apache.org> >> wrote: >> >> >> JavaHelp is GPL licensed and has not been donated by Oracle to Apache, so >> had to be excluded from Apache NetBeans GitHub. So far I don’t think anyone >> has figured out how it can be reincluded in a NetBeans Platform app, if you >> manage to do it, would be great if you’d share your findings. >> >> Gj >> >> On Tue, 17 Mar 2020 at 05:49, Ernie Rael <err...@raelity.com> wrote: >> >>> On 3/11/2020 9:58 AM, Jean-Claude Dauphin wrote: >>> > >>> > >>> > My application is a modules suite and non commercial. >>> > I know that JavaHelp is not part of Apache NetBeans but what would be >>> > the best strategy to solve that issue >>> >>> I've been wondering about this myself. >>> >>> Maybe an integrated JavaFX web browser? >>> >>> There must have been some thought discussion about this in the NetBeans >>> team. >>> >>> What's the current thinking/plan? >>> >>> -ernie >>> >>> >>> > >>> > Thank you in advance for any advice on this issue >>> > Best regards, >>> > Jean-Claude >>> > >>> > >>> > -- >>> > Jean-Claude Dauphin >>> > >>> > jc.daup...@gmail.com <mailto:jc.daup...@gmail.com> >>> > >>> > https://github.com/J-ISIS >>> > >>> > http://www.greenstone.org >>> >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org >>> For additional commands, e-mail: users-h...@netbeans.apache.org >>> >>> For further information about the NetBeans mailing lists, visit: >>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists >>> >>> >> -- Jean-Claude Dauphin jc.daup...@gmail.com