Reputation: 1422
Currently I am working on a Java based project with MySQL database in the back end. I need to create a setup for my project. Which Installer would be appropriate? I need to create a common installer setup for both Windows and Linux platforms.
Additional : I have tried InstallJammer but it is quite complex and the forums related are closed.
What installer would you suggest for my project? Please avoid giving the tutorials for differnt installers as I have already referenced.
Thanks in advance.
Upvotes: 2
Views: 177
Reputation: 55876
Create a folder structure like
app
|
|-- lib
| `- <jar files>
|
|-- bin
| |- app.jar
| |- app.sh
| `- app.bat
|
`-- README
your app.sh looks like
#you need to fix class path, a relative path will cause issue when running from a diff PWD
java -cp .:../lib/jar1.jar:../lib/jar2.jar -jar app.jar
your app.bat looks like
#you need to fix class path, a relative path will cause issue when running from a diff PWD
java -cp .;../lib/jar1.jar;../lib/jar2.jar -jar app.jar
To execute it, cd bin
, based on your system run shell or bat script.
Upvotes: 4