Old 31st March 2012, 09:18   #1
punitjain
Junior Member
 
Join Date: Mar 2012
Posts: 6
installer for java application.

i have a standalone java application.
how can i create installer for that??
punitjain is offline   Reply With Quote
Old 31st March 2012, 09:39   #2
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
By creating an nsi script and compiling it with makensisw.

Edit: Sorry for the wisecrack response, but your question is extremely inspecific and therefore cannot be answered. To learn NSIS, you can start by examining NSIS\Examples\Example1.nsi and Example2.nsi. You'll need to learn what ever command does and why they are used, you can use the command reference for this: http://nsis.sourceforge.net/Docs/Chapter4.html

Once you understand those two examples, you'll be well underway to creating your own installer.
MSG is offline   Reply With Quote
Old 31st March 2012, 11:48   #3
Brummelchen
Major Dude
 
Join Date: May 2003
Posts: 681
start here
http://nsis.sourceforge.net/Java_Launcher
http://nsis.sourceforge.net/Java_Lau...E_installation
http://www.seas.gwu.edu/~drum/java/l...r/install.html

More: http://www.google.com/search?q=nsis+...&oe=utf-8&aq=t

Please use the guide from nsis to learn this language.
Brummelchen is offline   Reply With Quote
Old 31st March 2012, 12:59   #4
punitjain
Junior Member
 
Join Date: Mar 2012
Posts: 6
Thank you very much for your quick response..
the last links helps me, i downloaded the zip file and execute and test that, that works perfect.
but in my project i have many source and class files and are dependent to each other.
what i did is:

i changed the .class and .java files from NSISExampleApplication to myApplicationName(which has main method) of createInstaller1.nsi script which i download(the zip folder).

and i compile and run that, it installed but when i run that installed application it showing me error "could not find mainClass myApplicationName".
can you help me in this also?
do i need to give references to all of my dependent class and java files.(dependent to myApplicationName).??

Thank you..
punitjain is offline   Reply With Quote
Old 31st March 2012, 15:57   #5
Brummelchen
Major Dude
 
Join Date: May 2003
Posts: 681
you need to modify section with

setoutpath $instdir
file /r "path\to\my\files\*.*

Please take the tutorials and the documentation for basic elements of nsis
http://nsis.sourceforge.net/Docs/Chapter2.html#2.3.3
http://nsis.sourceforge.net/Docs/
Brummelchen is offline   Reply With Quote
Old 31st March 2012, 16:18   #6
punitjain
Junior Member
 
Join Date: Mar 2012
Posts: 6
it works thank you very much.
it's just awesome.
i am doing it like this:
SetOutPath $INSTDIR
file "C:\Documents and Settings\punit\Desktop\NSISExampleApplication1\*.*"

can you tell me one more thing, if i have some database dependencies, i mean i m using apache derby(embedded database), can i attach that also with this installer??
i mean the jar files/ plugins of apache derby, can i include??
so at the time of installation of the software database should also installed..

Thank you.
punitjain is offline   Reply With Quote
Old 31st March 2012, 16:58   #7
Brummelchen
Major Dude
 
Join Date: May 2003
Posts: 681
sorry, no indianer howling here.
you need to respect apaches license if you want to inlcude its files.
Brummelchen is offline   Reply With Quote
Old 31st March 2012, 17:20   #8
punitjain
Junior Member
 
Join Date: Mar 2012
Posts: 6
Quote:
sorry, no indianer howling here.
you need to respect apaches license if you want to inlcude its files.
if possible can you please elaborate, how??
punitjain is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
application, desktop, exe, installer, java

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