Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Bodgitt & Scarper help html file

 
tim parks
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I'm planning to provide a number of html help files in my jar file that will be viewed from a JTextPane when that the use launches from a menu.

The file from which the files are launched is suncertify/client/Contractor.Client

but the actual htlp files must be stored in a subdirectory called 'docs' in my jar according to the guidlines. I'm wondering what's the best way to specify the url to point to these files reliably on any PC

thanks
T.
 
Matt Sheehan.
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My documentation says the userguide must be in the docs directory unless it is online. If yours is the same, then you can put it in the runme.jar and retrieve it with:


Matt
 
tim parks
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, thanks for the reply. But my problem is that the intstructions say generate an executable jar 'containing the programs' called runme.jar. To me this would suggets it whould contain only the .class files and nothing else.

This jar is then included in another jar (let's say project.jar) which has a docs directory containing userguide.txt So the examiner will extract the runme.jar from from project.jar.

Can run it with java -jar runme.jar alone

But the usrguide.txt is still in the project.ar in a docs directory! Would it be safe for me to assume this txt file will be placed by the examiner in the current working directory?


I'd hate to fail the assigment before the client has even launched!!

thanks
T.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic