Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

online help

 
ravi janap
Ranch Hand
Posts: 389
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am trying to develop an online help as a menu item. However, I am getting IOException while trying to invoke the html document. Can you help me identify the problem.
The code is:

I am getting the following output in console:
pageUrl file;C:\submission\docs\userdocs\index.html
IOException while loading page no protocol: file;C:\submission\docs\userdocs\ind
ex.html
Thanks
Ravi
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're going about this in entirely the wrong way. Package your online help in the jar, obtain its URL using Class.getResource() or ClassLoader.getResource(), and stick that in your editor.
- Peter
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic