Netbeans 7.4 How To package Native (windows)


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 ResourceVersion Required
NetBeans IDE7.4
Java Development Kit (JDK)7 update 25 or more recent
Inno Setup5.5 or more recent
WiX3.7 or more recent

To install Inno Setup:
  1. Download ispack-5.5.3.exe from the Inno Setup Downloads page.
  2. Double-click the file to launch the installer.
  3. Accept the Inno Setup license agreement and click Next.
  4. Follow the instructions in the install wizard for installing Inno Setup.
To install WiX:
  1. Download wix37.exe from the WiX Toolset - Download page.
  2. Double-click the file to launch the installer.
  3. Follow the instructions in the install wizard for installing WiX.
To add Inno Setup and/or WiX to the system Path variable:
  1. On Windows 7, select Start > Computer > System Properties > Advanced system settings.
  2. Select the Advanced tab and click the Environment Variables button.
  3. In the System Variables pane, double-click the Path variable.
  4. 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).
  5. 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.
Para personalizar el icono de la aplicacion, agregar el *.ico con el nombre del proyecto en un package que se llame:  "package/windows/${projectname}.ico"
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.:

Problemas de activación WIFI6 en LG_OLED55CXPSA

  Mi experiencia con este TV  ah sido impecable hasta ahora, llevaba un uso normal y no tenia que usar la conexión por wifi ya que tengo una...