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

Client.jar Contents!

 
Vikas Sood
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,
I have created a client.jar file which will be used to run the client application.I have also made a client usermanual which will lie in the root of submission jar file and will also be available as online help.But the problem arises from the fact that as the help file and all the images are lying in the root and are not part of the client.jar file,any movement of client .jar from the root submission directory makes these image and html file unavailabe for client.
Can something be done here.
Kindly comment
VikasSood
 
Nate Johnson
Ranch Hand
Posts: 301
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Vikas Sood:
Can something be done here.


You can put the files in the jar and use a method like this (this is for images, but the same would go for html files, etc)...
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12014
220
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vikas
Nate's solution is good. I didnt do this because I was using HTML pages for user manuals. This meant that I could display them in online help as well as allowing the user to view them using any browser they liked. If I had packaged them into the jar file, the user would not have easily been able to view them using their preferred browser.
You could mention somewhere in your client application documentation that if the client jar file was moved, then the documentation directory should be copied to the same directory or online help wouldnt work.
Perhaps also put a comment that it would only be a minor modification to your code to allow the user to specify the online help directory on the command line or in a configuration fle (if this is true of course). This would then show that you have thought about the issue and how to fix it.
In my online help application (it was part of my client app, but could also be run standalone) I also had a default page if the page the user specified could not be loaded. It basically stated that the (named) page could not be loaded, and suggested that the user check that the documentation directory had not been deleted, and was in the same directory as the client.jar file.
Regards, Andrew
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic