On 11/13/2013 02:01 AM, Jeff Hooker wrote:
I believe Niels' question related to attempting to run the .jar file created by
the conversion process, not the steps needed to convert the DITA project into a
.jar file.
Having carefully followed the steps for associating the Java Help complier with XMLmind
(including comparing my screen shots with those supplied by Hussein) I have no issues
creating a .jar file, but like Niels I get the "no main manifest attribute "
message when I try to run it.
The same command successfully runs the .jar samples that ship with jh2.0, but
won't work on any javahelp system created by XMLmind.
The "no main manifest attribute" error message is normal for a .jar file
containing *JavaHelp* *data*.
--> Unlike what happens for say a .chm file, you cannot simply
double-click on a .jar file containing JavaHelp and expect Java to
automatically launch a JavaHelp viewer.
--> When you double-click on a .jar file containing *executable* *code*,
Java indeed expects it to contain a manifest looking like this:
---
Main-Class: com.xmlmind.xmleditapp.start.Start
Class-Path: xerces.jar resolver.jar relaxng.jar jh.jar saxon.jar
saxon9.jar xxe_help.jar
Implementation-Title: XMLmind XML Editor
Implementation-Version: 5.8.0
Implementation-Vendor: XMLmind
Implementation-Vendor-Id: com.xmlmind
---
You guessed that what's above is the manifest used for XXE v5.8. The
``main attribute'' is "Main-Class".
Jeff.
-----Original Message-----
From: xmleditor-support-boun...@xmlmind.com
[mailto:xmleditor-support-boun...@xmlmind.com] On Behalf Of Hussein Shafie
Sent: July-05-13 8:12 AM
To: Niels Grundtvig Nielsen
Cc: 'xmleditor-support@xmlmind.com'
Subject: Re: [XXE] small problem outputting javahelp
On 07/05/2013 02:16 PM, Niels Grundtvig Nielsen wrote:
Thanks; I'd misunderstood what I needed to specify as default viewer,
and not noticed that I needed to specify the MIME type.
This is clearly documented here:
http://www.xmlmind.com/xmleditor/_distrib/doc/dita/help-2.html#map_menu
---
Convert to Java Help
Converts the document being edited to a .jar file for use by the Java(tm)
Help system.
Requires:
1) Download and install JavaHelp Opens in new window.
2) Declare the Java(tm) Help indexer, jhindexer (jhindexer.bat on Windows), as
the helper application associated to files having a
"application/x-java-help-index" MIME type. This can be specified by using the
Preferences dialog box, Helper Applications section.
---
Next problem - jh2.0 installed yesterday, java 1.7.0_25 up and running
... but an error message when I try to open the JavaHelp I've made from
a ditamap. Am I using the right java command? or have I missed something else?
I've already answered your question by describing step by step how to associate
application/x-java-help-index
to
jhindexer.bat
(It's jh2.0_install_dir/javahelp\bin\jhindexer.bat
NOT
java -jar fullmapWH.jar)
My answer even included a screenshot. I really don't see what more I could do.
May be you didn't receive this email. Please find below a copy of my
detailed answer:
1) Please select Options|Preferences, "Helper Applications" section.
2) Click "Add".
3) Please specify
application/x-java-help-index
in the "MIME type" field of the "Helper Application Editor" dialog box.
4) Please specify
C:\Users\a548040\jh2.0\javahelp\bin\jhindexer.bat "%F"
in the "Helper application" field of the "Helper Application Editor"
dialog box.
See attached screenshot.
Reference:
http://www.xmlmind.com/xmleditor/_distrib/doc/help/com.xmlmind.helperapps.HelperApplicationEditor.html
N
C:\Users\a548040\ditaXPS>java -version
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b17)
Java HotSpot(TM) Client VM (build 23.25-b01, mixed mode, sharing)
C:\Users\a548040\ditaXPS>java -jar fullmapWH.jar
no main manifest attribute, in fullmapWH.jar
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support