This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes online help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "online help" Watch "online help" New topic

online help

ravi janap
Ranch Hand

Joined: Nov 04, 2000
Posts: 389
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

Peter den Haan
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
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
Consider Paul's rocket mass heater.
subject: online help
Similar Threads
displaying HTML in a JEditorPane
Class.getResourceAsStream() is returning null
File class
online help
UnknownHostException: C