Old 17th May 2002, 00:30   #1
mstraughan
Junior Member
 
Join Date: May 2002
Posts: 2
Newbie question: ExecWait problem launching java or javaw

Hi,

Within one of the sections of my install script, I call ExecWait to execute/launche a little java app, that sets up a user preference file based on a selection that the user has made from the app. When I try to run the installer - nothing happens, that is my little java app does not appear. The installer properly installs everything else thats needs but does not display the app. I know that the installer is executing the ExecWait, however, I do not know why my app is not showing up. I've tried hiding the installer but still my app is not visible. Any suggestions as to what I could be doing wrong??
mstraughan is offline   Reply With Quote
Old 17th May 2002, 03:21   #2
rainwater
Senior Member
 
Join Date: Aug 2000
Posts: 397
Send a message via ICQ to rainwater
Try messagebox'ing your string that you are using to execute javaw. If nothing is happening when you call execwait then execwait is failing. This is generally because of a bad path in your string.
rainwater is offline   Reply With Quote
Old 17th May 2002, 16:23   #3
mstraughan
Junior Member
 
Join Date: May 2002
Posts: 2
Angry

Hi,

Thanks for your suggestion.

I used the MessageBox and set the text to be displayed. The path is correct. I executed it in a command window and it worked - the app was launched. Next, I created a shortcut and tried to Exec and ExecWait the shortcut, still no luck. I can run the shortcut if I double click on it and have my app display, however, I still can not get the app to be displayed using Exec or ExecWait for either the text I specify or through a shortcut.
mstraughan is offline   Reply With Quote
Old 18th May 2002, 12:41   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Just a hunch, but maybe your Java application is looking for some other classes and can't find them because it looks in the wrong directory? In this case you need to set the current directory to the class file directory. To do this read this post (it is a work around):
http://forums.winamp.com/showthread....threadid=79913

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump