Skip to main content

RE: [JAVAHELP] Jbuilder and JAVAHELP

6 replies [Last post]
Anonymous

Hello Bashiro,

I was getting a similar error a few weeks ago:

My error:
Help Manager is not initialized. Reason =>
javax.help.HelpSetException:Could not parse
Got an IOException (null)
Parsing failed for null

Your error:
Parsing failed for null
javax.help.HelpSetException: Could not parse
Got an IOException (null)
Parsing failed for null

I upgraded from jdk 1.2.2 to jdk 1.3.1 and upgraded from WebWorks 7.0 to
WebWorks 8.0.5.1556.
I'm not sure which upgrade fixed the problem, but my application now accepts
my jar file.

Mike

-----Original Message-----
From: Bashiro [mailto:bashiro@ENTER.VG]
Sent: Thursday, September 23, 2004 11:53 AM
To: JAVAHELP-INTEREST@JAVA.SUN.COM
Subject: [JAVAHELP] Jbuilder and JAVAHELP

Hello ,

I have created a javahelp file. I can view the help files
with the java hsviewer.jar.
My problem is how to embed it into my application.
I have tried and tried but I keep on geting this error.

the hs file is in the directory with my project files.

Any help please ?

bashiro

---------------
code sample;
---------------

String hsName = "HelpSet.hs";

ClassLoader cl = Frame1.class.getClassLoader();

URL url = HelpSet.findHelpSet(cl, hsName);

helpViewer = new JHelp(new HelpSet(cl, url));

helpViewer.setCurrentID("Introduction");
} catch (Exception e) {
System.err.println("API Help Set not found \n" + e.getMessage()+"\n"
+e+"\n");
}
jPanel1.add(helpViewer);
}

------------
Error code
----------------

Parsing failed for null
javax.help.HelpSetException: Could not parse
Got an IOException (null)
Parsing failed for null

--------------------

****************************************************************************
****

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at
http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

____________________________________
This message is intended only for the personal and confidential use of the
designated recipients named above. If you are not the intended recipient of
this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited. This
communication is for information purposes only and should not be regarded as
an offer or any official confirmation of any transaction, or as an official
statement of Polaris Networks Inc. Email transmission cannot be guaranteed
to be secure or error-free. Therefore, we do not represent that this
information is complete or accurate and it should not be relied upon as
such. All information is subject to change without notice.

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Roger Brinkley

Geetha B wrote:

> Hello , I am new to java programming & javaHelp. I am working to
> implemenmt help for an application using javHelp. I could embed html
> help files into the application. I have a problem in specifying the
> contents file using formats other than html. Should the contents file
> be in html format only. Can this content file be in other formats
> like *.doc or pdf, & then I change the link in mapping file, i.e in
> helset.jhm. I did this & there were many junk characters along with
> the contents. More clarifications would be greatly helpful.

You can have any format you want for the content files as long as there
is a EditorKit for that type installed with the JEditorPane. Right now
the defaults are text and html but I heard rumors of other types.

Additionally, the next release of JavaHelp which is due next week will
have the capability of using a native browser which would allow the use
of a greater amount of file types.

Binky

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

Geetha B

Thanks a lot for the details. As of now , I am using html generated from
doc but I am not liking the way of coding for the help feature.
Again there are problems .
The helpdocument is around 200-220 pages & so U can anticipate the
number of chapters & sub chapters in this helpDoc.
1)With this , if I start writing Map.jhm file for having mapID , it is
prone to error & also since the doc is susceptible to change , the
mapping file will have a dependency on the technical writer & the
developer
expected : can the mapId's be generated dynamically.

2) The generated html file has TOC & its links too , so instead of
manaully making an entry in TOC.xml for each of the chapters & it tasks,
can this file be extracted as subset of the html file , OR is there an
alternate way.

In the application I am working , the menu's are driven by xml & its
corresponding action through schema . The MenuBuilder is building menus
for the application. So is it possible to make use of the same
infrastructure for generating mapId's , i.e mapIds will be tableNames
from xml

I hope U got what I intended to say
Pls , any reading links or guidelines will be of great help!

Geetha

On Tue, 2004-09-28 at 11:49, Roger Brinkley wrote:

> Geetha B wrote:
>
> > Hello , I am new to java programming & javaHelp. I am working to
> > implemenmt help for an application using javHelp. I could embed html
> > help files into the application. I have a problem in specifying the
> > contents file using formats other than html. Should the contents file
> > be in html format only. Can this content file be in other formats
> > like *.doc or pdf, & then I change the link in mapping file, i.e in
> > helset.jhm. I did this & there were many junk characters along with
> > the contents. More clarifications would be greatly helpful.
>
> You can have any format you want for the content files as long as there
> is a EditorKit for that type installed with the JEditorPane. Right now
> the defaults are text and html but I heard rumors of other types.
>
> Additionally, the next release of JavaHelp which is due next week will
> have the capability of using a native browser which would allow the use
> of a greater amount of file types.
>
> Binky
>
> ********************************************************************************
>
> You may leave the list at any time by sending message with no subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
> are available at http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
[att1.html]

Paul Fussell

Geetha,

I suggest that you look at a help authoring tool like Helen
(www.software7.biz) or
HelpBreeze (www.solutionsoft.com). These tools have GUIs that support the
JavaHelp toc, index, and map file. For example, when you set up a Helen
project, it can automatically create the map IDs for you.

--Paul

At 11:25 AM 9/30/2004, Geetha B wrote:
>Thanks a lot for the details. As of now , I am using html generated from
>doc but I am not liking the way of coding for the help feature.
>Again there are problems .
>The helpdocument is around 200-220 pages & so U can anticipate the number
>of chapters & sub chapters in this helpDoc.
>1)With this , if I start writing Map.jhm file for having mapID , it is
>prone to error & also since the doc is susceptible to change , the mapping
>file will have a dependency on the technical writer & the developer
>expected : can the mapId's be generated dynamically.
>
>2) The generated html file has TOC & its links too , so instead of
>manaully making an entry in TOC.xml for each of the chapters & it tasks,
>can this file be extracted as subset of the html file , OR is there an
>alternate way.
>
>In the application I am working , the menu's are driven by xml & its
>corresponding action through schema . The MenuBuilder is building menus
>for the application. So is it possible to make use of the same
>infrastructure for generating mapId's , i.e mapIds will be tableNames from xml
>
>I hope U got what I intended to say
>Pls , any reading links or guidelines will be of great help!
>
>Geetha
>
>On Tue, 2004-09-28 at 11:49, Roger Brinkley wrote:
>>
>>Geetha B wrote:
>>
>> > Hello , I am new to java programming & javaHelp. I am working to
>> > implemenmt help for an application using javHelp. I could embed html
>> > help files into the application. I have a problem in specifying the
>> > contents file using formats other than html. Should the contents file
>> > be in html format only. Can this content file be in other formats
>> > like *.doc or pdf, & then I change the link in mapping file, i.e in
>> > helset.jhm. I did this & there were many junk characters along with
>> > the contents. More clarifications would be greatly helpful.
>>
>>You can have any format you want for the content files as long as there
>>is a EditorKit for that type installed with the JEditorPane. Right now
>>the defaults are text and html but I heard rumors of other types.
>>
>>Additionally, the next release of JavaHelp which is due next week will
>>have the capability of using a native browser which would allow the use
>>of a greater amount of file types.
>>
>>Binky
>>
>>********************************************************************************
>>
>>You may leave the list at any time by sending message with no subject and
>>"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
>>are available at
>>http://archives.java.sun.com/archives/javahelp-interest.html.
>>Submit bug reports at
>>http://java.sun.com/cgi-bin/bugreport.cgi.
>
>
>********************************************************************************
>
>
>You may leave the list at any time by sending message with no subject and
>"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
>are available at
>http://archives.java.sun.com/archives/javahelp-interest.html. Submit bug
>reports at http://java.sun.com/cgi-bin/bugreport.cgi.

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

Bashiro

your suggestion sounds logic.
I use java 1.4 so obviously it
cannot be the java version. I will try
to find out why.

But by the way did you use similar code
in embeding the help into your application ?

Thanks in advance
bashiro

> Hello Bashiro,
>
> I was getting a similar error a few weeks ago:
>
> My error:
> Help Manager is not initialized. Reason =>
> javax.help.HelpSetException:Could not parse
> Got an IOException (null)
> Parsing failed for null
>
> Your error:
> Parsing failed for null
> javax.help.HelpSetException: Could not parse
> Got an IOException (null)
> Parsing failed for null
>
> I upgraded from jdk 1.2.2 to jdk 1.3.1 and upgraded from WebWorks 7.0 to
> WebWorks 8.0.5.1556.
> I'm not sure which upgrade fixed the problem, but my application now
> accepts
> my jar file.
>
> Mike
>
>
> -----Original Message-----
> From: Bashiro [mailto:bashiro@ENTER.VG]
> Sent: Thursday, September 23, 2004 11:53 AM
> To: JAVAHELP-INTEREST@JAVA.SUN.COM
> Subject: [JAVAHELP] Jbuilder and JAVAHELP
>
>
> Hello ,
>
> I have created a javahelp file. I can view the help files
> with the java hsviewer.jar.
> My problem is how to embed it into my application.
> I have tried and tried but I keep on geting this error.
>
>
> the hs file is in the directory with my project files.
>
> Any help please ?
>
> bashiro
>
> ---------------
> code sample;
> ---------------
>
> String hsName = "HelpSet.hs";
>
> ClassLoader cl = Frame1.class.getClassLoader();
>
> URL url = HelpSet.findHelpSet(cl, hsName);
>
> helpViewer = new JHelp(new HelpSet(cl, url));
>
> helpViewer.setCurrentID("Introduction");
> } catch (Exception e) {
> System.err.println("API Help Set not found \n" + e.getMessage()+"\n"
> +e+"\n");
> }
> jPanel1.add(helpViewer);
> }
>
> ------------
> Error code
> ----------------
>
> Parsing failed for null
> javax.help.HelpSetException: Could not parse
> Got an IOException (null)
> Parsing failed for null
>
>
> --------------------
>
> ****************************************************************************
> ****
>
> You may leave the list at any time by sending message with no subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>
>
> ____________________________________
> This message is intended only for the personal and confidential use of the
> designated recipients named above. If you are not the intended recipient
> of
> this message you are hereby notified that any review, dissemination,
> distribution or copying of this message is strictly prohibited. This
> communication is for information purposes only and should not be regarded
> as
> an offer or any official confirmation of any transaction, or as an
> official
> statement of Polaris Networks Inc. Email transmission cannot be guaranteed
> to be secure or error-free. Therefore, we do not represent that this
> information is complete or accurate and it should not be relied upon as
> such. All information is subject to change without notice.
>
> ********************************************************************************
>
> You may leave the list at any time by sending message with no subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

Geetha B

Hello ,
I am new to java programming & javaHelp.
I am working to implemenmt help for an application using javHelp. I could embed html help files into the application.
I have a problem in specifying the contents file using formats other than html.
Should the contents file be in html format only. Can this content file be in other formats like *.doc or pdf, & then I change the link in mapping file, i.e in
helset.jhm.
I did this & there were many junk characters along with the contents.
More clarifications would be greatly helpful.

Thanks,
Geetha

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
[att1.html]

Bashiro

If you say content files do you mean your navigation files or the
Javahelp Table of contents (TOC).
The TOC should be in XML format.
Read the javahelp manual. There are very useful information there.

The navigation files (your actual help information files must be in html
format).
You can use an HTML editor to create your HTML files nicely and then
let javahelp use them. There are many free HTML text editors out there.
You can get even WYSIWYG editors for free.

You can use this link for quick tutorial. It's nicely explained
http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javahelp/

bashiro

> Hello ,
> I am new to java programming & javaHelp.
> I am working to implemenmt help for an application using javHelp.
> I could embed html help files into the application.
> I have a problem in specifying the contents file using formats
> other than html.
> Should the contents file be in html format only. Can this content
> file be in other formats like *.doc or pdf, & then I change the
> link in mapping file, i.e in
> helset.jhm.
> I did this & there were many junk characters along with the
> contents.
> More clarifications would be greatly helpful.
>
>
> Thanks,
> Geetha
>
> ********************************************************************************
>
> You may leave the list at any time by sending message with no subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
> are available at
> http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.