File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes How to call a .chm file? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to call a .chm file?" Watch "How to call a .chm file?" New topic

How to call a .chm file?

Jherald Lacambra
Ranch Hand

Joined: Feb 02, 2005
Posts: 129
Is there any other way to open a file with a .chm extension?

I have use Runtime.getRuntime.exec command but it only opens a .exe file
[ February 02, 2005: Message edited by: Jherald Lacambra ]

Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

.chm files are opened by "Microsoft� HTML Help Exe". You are not "running" the .chm file itself, your are running HTML Help Exe which opens and interprets the .chm file for you. That being said, .chm files are just compiled HTML. Decompiling them is easy; MS supply a tool to do just that (search MSDN). So you could decompile them and access them as plain text files.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
I agree. Here's the link:
subject: How to call a .chm file?
It's not a secret anymore!