|
|
| Author |
Message |
dude Power User


Joined: 10 Mar 2004 Posts: 376
Location: Savar, Dhaka
|
Post subject: How to launch a help file or .chm or .exe from Java |
|
|
Hi Mr. Belal,
DK says that you are god(oops...sorry good) in java. So please help me by telling me how to launch a help file from a java application? |
|
Sun Apr 18, 04 9:09 am
 |
|
 |
Shamim Just In

Joined: 07 Apr 2004 Posts: 1
|
Post subject: |
|
|
from java any executable file can be launched
use getRuntime().exec() method
pass any executable file as parameter
there are quite a few overloaded exec() method in the Runtime class
try out one which is suitable for u
thanx
shamim |
|
Thu Apr 22, 04 12:36 am
 |
|
 |
Belal User

Joined: 08 Mar 2004 Posts: 84
Location: Dhaka, Bangladesh
|
Post subject: |
|
|
Thanks dude for ur question.
yes, u have to use the getRuntime().exec() method.
but if u like to execute and executable file (.exe) file then if u just right the file name with its path in the exec() method as string parameter, it will execute the file. to run a help file u have to write --
getRuntime().exec("hh.exe myhelpfile.chm");
here, myhelpfile.chm is the file name of ur help file. u can replace it with ur help file name.
hope it will b WYAWYG (what u asked what u get :shock: )
thanks
belal |
|
Fri Apr 23, 04 10:57 am
 |
|
 |
Lish Expert User


Joined: 16 May 2004 Posts: 174
Location: Middle of Nowhere!
|
Post subject: |
|
|
i dont have a clue wat u guys are talkin abt... |
|
Mon May 17, 04 7:09 am
 |
|
 |
Mastermind Expert User


Joined: 23 Apr 2004 Posts: 181
Location: Birmingham,UK
|
Post subject: |
|
|
| Lish wrote: |
| i dont have a clue wat u guys are talkin abt... |
Then you don't need worry about this thread dear....(and...edited as per quantum's request ) _________________ Keep your own dignity, both online and offline throughout your life !!! |
|
Mon May 17, 04 8:47 am
 |
|
 |
Belal User

Joined: 08 Mar 2004 Posts: 84
Location: Dhaka, Bangladesh
|
Post subject: |
|
|
Lish i don't understand what is making u confused. this thread is about to run a help file from a java coded application. if still have any ques, pls ask us.............. |
|
Mon May 17, 04 1:30 pm
 |
|
 |
Lish Expert User


Joined: 16 May 2004 Posts: 174
Location: Middle of Nowhere!
|
Post subject: |
|
|
| Mastermind wrote: |
| Lish wrote: |
| i dont have a clue wat u guys are talkin abt... |
Then you don't need worry about this thread dear....(and...edited as per quantum's request ) |
i know i dont need too..but i still want to..
stop me if u can.
 |
|
Tue May 18, 04 8:54 am
 |
|
 |
Lish Expert User


Joined: 16 May 2004 Posts: 174
Location: Middle of Nowhere!
|
Post subject: |
|
|
| Belal wrote: |
| Lish i don't understand what is making u confused. this thread is about to run a help file from a java coded application. if still have any ques, pls ask us.............. |
java again..is dat all u ever do...? |
|
Tue May 18, 04 8:55 am
 |
|
 |
Belal User

Joined: 08 Mar 2004 Posts: 84
Location: Dhaka, Bangladesh
|
Post subject: |
|
|
lish u wrote:
| Quote: |
| java again..is dat all u ever do...? |
then i should write:
i dont have a clue wat u are talkin abt... (following u) |
|
Tue May 18, 04 1:05 pm
 |
|
 |
Lish Expert User


Joined: 16 May 2004 Posts: 174
Location: Middle of Nowhere!
|
Post subject: |
|
|
| Belal wrote: |
lish u wrote:
| Quote: |
| java again..is dat all u ever do...? |
then i should write:
i dont have a clue wat u are talkin abt... (following u) |
ic...a taste of my own medicine. |
|
Tue May 18, 04 9:25 pm
 |
|
 |
dude Power User


Joined: 10 Mar 2004 Posts: 376
Location: Savar, Dhaka
|
Post subject: |
|
|
Who knew, my simple question could attract such attention from a pretty girl.
Belal,
I forgot to let you know, your solution is the one that worked for me. Shamim's answer was unclear to me. |
|
Wed May 19, 04 11:31 pm
 |
|
 |
Lish Expert User


Joined: 16 May 2004 Posts: 174
Location: Middle of Nowhere!
|
Post subject: |
|
|
| dude wrote: |
Who knew, my simple question could attract such attention from a pretty girl. |
talk abt sweet talking... _________________
"In three words I can sum up everything I've learned about life:
It Goes On..." |
|
Wed May 19, 04 11:47 pm
 |
|
 |
|