Empaquetado Nativos se introdujo por primera vez como parte de JavaFX SDK 2.2 que permite empaquetar una aplicación como paquete nativo y luego instalar y ejecutar la aplicación sin ningún tipo de dependencias externas de un JRE sistema o JavaFX SDK.
| Software or Resource | Version Required |
|---|---|
| NetBeans IDE | 7.4 |
| Java Development Kit (JDK) | 7 update 25 or more recent |
| Inno Setup | 5.5 or more recent |
| WiX | 3.7 or more recent |
To install Inno Setup:
- Download ispack-5.5.3.exe from the Inno Setup Downloads page.
- Double-click the file to launch the installer.
- Accept the Inno Setup license agreement and click Next.
- Follow the instructions in the install wizard for installing Inno Setup.
To install WiX:
- Download wix37.exe from the WiX Toolset - Download page.
- Double-click the file to launch the installer.
- Follow the instructions in the install wizard for installing WiX.
To add Inno Setup and/or WiX to the system Path variable:
- On Windows 7, select Start > Computer > System Properties > Advanced system settings.
- Select the Advanced tab and click the Environment Variables button.
- In the System Variables pane, double-click the Path variable.
- In the Edit System Variable dialog box, add a semicolon followed by a new path to the Variable value field (for example, C:\Program Files (x86)\Inno Setup 5 or C:\Program Files (x86)\WiX Toolset v3.6\bin).
- Click OK to close all the open dialog boxes.
En el build-native.xml que genera Netbeans agregar las siguientes lineas:
// fx:preferences
var pref = deploy.createPreferences();
pref.setProject(project);
pref.setShortcut(true);
pref.setMenu(true);
Con esto se consigue primero crear un acceso directo en el escritorio y agregar el nombre de la aplicacion al menu inicio de windows.
El build de netbeans construye el archivo descriptor a punta de Java Script.
Lo siguiente es agregar el classpath al Ant y automaticamente tomara el icono.
Ahora nose como agregar la opcion de lo lenguajes que permite Inno 5 Setup. Por Ej:
[Languages] Name: "en"; MessagesFile: "compiler:Default.isl" Name: "nl"; MessagesFile: "compiler:Languages\Dutch.isl"No cacho como :( desde el fx no hay tag que lo permita.
Asique el instalador esta por defecto en ingles.
Ojo que el instalador y el ejecutable creado dependeran de la maquina en donde tienen instalado el netbeans, si tiene unstalado el netbeans en 64 bits les creara instaladores y en 64 bits y si compilan con una maquina virtual de java en 64 bits sus aplicaciones seran en 64 bits.
Para evitar esto editar el /etc/netbeans.conf
--locale language[[[:country[[:variant | [:country[[:variant]]]Ej:
# Options used by NetBeans launcher by default, can be overridden by explicit # command line switches: netbeans_default_options="-J-d32 -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m
-J-Dapple.laf.useScreenMenuBar=true -J-Dnetbeans.winsys.statusLine.in.menuBar=true -J-Dsun.java2d.noddraw=true" # Default location of JDK, can be overridden by using --jdkhome: netbeans_jdkhome="C:\Program Files\Java\jdk1.6.0_20"

No hay comentarios.:
Publicar un comentario