Old 2nd May 2005, 18:32   #1
bobvdp
Junior Member
 
Join Date: May 2005
Posts: 2
Question java shortcut

I want to create a shortcut with the following contence:
"C:\Program Files\Java\jre1.5.0_02\bin\java.exe" -classpath "E:\Bob\java\Java\UWDSlide_java;C:\Program Files\Java\jre1.5.0_02\lib\comm.jar;E:\Bob\java\Java\UWDSlide_java\AbsoluteLayout.jar;" UWDSlide_Progr COM1 DD E:\Bob\java\Java\UWDSlide_java\img\ GB

(I copy and paste this string from a existing, working shortcut).
In particilar the " sign before and after classpath are essential.
When using the default syntax, CreateShortcut the " sign will partly destroy the commandline string.

Thanks,
Bob
bobvdp is offline   Reply With Quote
Old 3rd May 2005, 19:57   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Assuming I understand your problem, this should help:

http://nsis.sourceforge.net/index.ph...&tx_faq_faq=11

If not, please try explaining again. An example of the CreateShortcut line you've used would help understanding the problem.

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
Old 8th May 2005, 13:51   #3
bobvdp
Junior Member
 
Join Date: May 2005
Posts: 2
I noticed the faq, but witout succes
I used
StrCpy $5 " -classpath "
StrCpy $5 "$5'"
StrCpy $5 "$5$INSTDIR;$1\lib\comm.jar;$INSTDIR\AbsoluteLayout.jar"
StrCpy $5 "$5'"
StrCpy $5 "$5 UWDSlide_Progr COM1 DD $INSTDIR\img\ GB"
CreateShortCut Unidrive.lnk "$1\bin\java.exe" "$5"

However the exact string should be:
java.exe -classpath "thisandthat;endsomemore;somethingelse;" UWDSlide_Progr COM1 DD $INSTDIR\img\ GB
The string after -classpath must be quoted, how to do that?

Bob
bobvdp is offline   Reply With Quote
Old 9th May 2005, 07:50   #4
RobGrant
Senior Member
 
Join Date: Sep 2004
Location: Nottingham
Posts: 263
code:
StrCpy $5 ' -classpath "'
StrCpy $5 '$5$INSTDIR;$1\lib\comm.jar;$INSTDIR\AbsoluteLayout.jar"'
StrCpy $5 '$5 UWDSlide_Progr COM1 DD $INSTDIR\img\ GB'
CreateShortCut Unidrive.lnk '$1\bin\java.exe' '$5'



Just quickly glanced at this thread, sorry if you've tried this already but thought it might help.
RobGrant 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