Friday, November 30, 2012

Creating Executables

One of the overwhelming env3d feature request is to include the ability to create OS specific executables.  While env3d has had the ability to create applets for some time, the use of Java applets have been in decline in the last decade as applets have been plagued with poor browser support and security issues.  I believe that it is now time to move on and I have completed the first implementation of deploying semi-native executables (I'll explain the "semi" part later).

To use this new feature, download the latest version of env3d (http://sourceforge.net/projects/env3d/files/env3d_template.zip/download) and open it in BlueJ.  After writing your env3d application, make sure you include a "main" method in your Game class, as follows:

If you are using the scene creator feature, the main method is already included by default.

All you have to do now is to right click on the Game class in BlueJ and a new option would appear in the Env3D menu:


When you click on the "Create distribution jar file" item, a new window will appear showing you the entire packaging process.  From the screenshot below, you can see that first, a "jar" file is created, then the Windows EXE file is created, followed by the MacOS executable.  You can click on the "Dismiss" button once the MacOS executable is finished.


To find your executable files, go into the project folder.  You'll see a "dist" folder is now created.  Inside the "dist" folder are 3 files:  env3d_template.jar, env3d_template.exe, and env3d_template-macOSX.zip


That's pretty much it, you now have 3 types of executables to use.  The zip file contains the executable for the Mac, the .exe file is for windows, and the jar file is for any OS including Linux. 

Technology

The technology that makes creating windows exe possible is called lanuch4j (http://launch4j.sourceforge.net/).  It is basically an exe wrapper that looks for the locally installed JVM and use it to launch your program.  Therefore, your user will still need to have at least the Java JRE installed in order for the exe to work.  If the JRE is not found on the user's system, it will prompt the user to download one.

As far as the Mac executable is concerned, OSX will automatically prompt the user to download Java if it is not already installed.

Have fun using this new feature and let me know if you find any bugs.  Stay tuned because the Android deployment option is coming real soon! :)

11 Comments:

Anonymous Anonymous said...

This comment has been removed by a blog administrator.

December 4, 2012 at 10:06 PM  
Blogger divyasaxena said...

call girls uttam nagar ###
call girls janakPuri ###
call girls tilak nagar ###
call girls gurgaon dlf city 1 2 3 4 ###
call girls daryaganj ###

October 17, 2020 at 2:35 AM  
Blogger russianescortsgoa said...

palolem beach escorts service ###
vasco da gama escorts service ###
Goa Escorts ###
Goa Call Girls ###
Call Girls In Goa ###
Goa Escorts ###
Goa Escorts ###

October 20, 2020 at 6:53 AM  
Blogger sandhyarathi said...

nehru place escorts service **
mahipalpur escorts service **
ashok vihar escorts service **
chandni chowk escorts service **
gtb nagar escorts service **
model town escorts service **
nirman vihar escorts service **
govindpuri escorts service **

October 30, 2020 at 5:57 AM  
Blogger komalkapoorh said...

connaught place escorts ###
vaishali escorts ###
gaur city escorts ###
crossing republik escorts ###
indirapuram escorts ###

November 4, 2020 at 9:23 PM  
Blogger kiranchoudhary said...

abhay khand escorts ||-->
niti khand escorts ||-->
gyan khand escorts ||-->
hindon residential area escorts ||-->

November 18, 2020 at 11:20 PM  
Blogger Unknown said...

http://www.femaledelhiescorts.com/call-girls-chanakyapuri.html ###
http://www.femaledelhiescorts.com/call-girls-connaught-place.html ###
http://www.femaledelhiescorts.com/call-girls-lajpat-nagar.html ###
http://www.femaledelhiescorts.com/call-girls-munirka.html ###
http://www.femaledelhiescorts.com/call-girls-east-of-kailash.html ###
http://www.femaledelhiescorts.com/call-girls-hauz-khas.html ###
http://www.femaledelhiescorts.com/call-girls-pitampura.html ###
http://www.femaledelhiescorts.com/call-girls-mayur-vihar.html ###

December 13, 2020 at 2:03 AM  
Blogger Unknown said...

chirag delhi escorts ***
dlf cyber city escorts ***
crossings republik escorts ***
ghaziabad escorts ***
gurgaon escorts ***




January 9, 2021 at 9:30 PM  
Blogger Gauri Sen said...

Those Russian Escort In Delhi can be reached directly via their website. You can hire those ladies for adult enjoyments as well for other purposes. You can hire those dashing ladies to enjoy your weekend at any nearby place where you can enjoy for a long time.

$$ Independent Escorts Delhi
$$ Vip Call Girls Delhi
$$ Escorts In Delhi
$$ Independent Escorts Chanakyapuri
$$ Independent Escorts Connaught Place
$$ Independent Escorts Defence Colony
$$ Independent Escorts Ghaziabad
$$ Independent Escorts Gurgaon
$$ Independent Escorts Noida
$$ Independent Escorts Greater Noida

January 17, 2021 at 1:38 AM  
Blogger Isika Patel said...

This comment has been removed by the author.

February 27, 2021 at 11:53 PM  
Blogger Goa Babes said...

Goa has consistently been a fascination for some, who come to goa for work and different purposes. Goa remains at the bank of the ocean. This thin gated section is encircled by a thick timberland and private properties. The Goa Escorts works on a 24 hour premise and has a few get and drop-off objections in and around goa.
call girls calangute
[]
call girls arpora
[]
call girls pernem
[]
call girls canacona
[]
call girls baga beach
[]
call girls candolim beach
[]
call girls cavelossim beach
[]
call girls colva beach
[]

August 29, 2021 at 11:15 PM  

Post a Comment

Subscribe to Post Comments [Atom]

<< Home