Shikhar13 / codenameone

Automatically exported from code.google.com/p/codenameone
0 stars 0 forks source link

RFE: (Plain) Java Build #290

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I just realized that it's very cool to have the possibility to have a plain 
Java Build of the app so that users can use this also on their computers.

Therefore it would be nice to be able to give them a .jar that starts when they 
double click on it.
Starting the simulator is already possible with the command

java -classpath JavaSE.jar;<app>.jar com.codename1.impl.javase.Simulator 
my.pack.app.<app>

but for the users it would be nice to have everything in one jar and probably a 
simulator without a skin.

Original issue reported on code.google.com by tron.cos...@gmail.com on 6 Aug 2012 at 5:30

GoogleCodeExporter commented 9 years ago
You can make a few modifications to your project to build such a jar yourself.  
Add a 'main()' method to your applications bootstrap class, have that main 
method call Simulator.main() passing your bootstraps name to it (as an array of 
strings), then use a tool like One-Jar (http://one-jar.sourceforge.net) to 
combine the two jars (uberjar) and set your bootstrap as the Main-Class 
property in the manifest.  One-Jar is an Ant task, so you can automate the 
creation of the uberjar.

Original comment by 1815...@coolman.ca on 6 Aug 2012 at 6:27

GoogleCodeExporter commented 9 years ago
We plan to offer this post version 2.0.

Original comment by shai.almog on 22 Nov 2013 at 9:06

GoogleCodeExporter commented 9 years ago
This is now implemented in the coming plugin update.

Original comment by shai.almog on 14 Jan 2014 at 12:44