B4J Tutorial UI apps packaging - self contained installers

Discussion in 'B4J Tutorials' started by Erel, Aug 2, 2015.

Thread Status:
Not open for further replies.
  1. alienhunter

    alienhunter Active Member Licensed User

    Hi
    is there a way to update the java component ? example you original deployed with 8_40 now you need to update the installation with 8_60 java without running a new setup
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    No. The embedded JRE becomes part of your app.

    You can update it with a new setup file.
     
  3. alienhunter

    alienhunter Active Member Licensed User

    thank you
     
  4. Firpas

    Firpas Active Member Licensed User

    Hi to everybody:

    Here is my cuestión:

    How create a shortcut as part of the installation?

    Thanks in advance
     
  5. Erel

    Erel Administrator Staff Member Licensed User

  6. Firpas

    Firpas Active Member Licensed User

    Thanks Erel

    Only one question more ...

    How can i add an editor/autor name??
     
  7. Erel

    Erel Administrator Staff Member Licensed User

  8. Firpas

    Firpas Active Member Licensed User

    Ok.
    Thanks again
     
  9. welu1805

    welu1805 Active Member Licensed User

    Hi Erel, I get the following error:

    App identifier: de.wedersoft.MusicBookTransfer.main
    Success: true
    StdOut: Using base JDK at: D:\Program Files\Java\jdk1.8.0_45\jre
    StdErr: java.io.IOException: Exec failed with code 2 command [[D:\Programme\Inno Setup 5\iscc.exe, /oD:\Users\Lutz\AppData\Roaming\B4JPackager\bundles, D:\Users\Lutz\AppData\Local\Temp\fxbundler1569188900774224640\images\win-exe.image\MusicBookTransfer.iss] in D:\Users\Lutz\AppData\Local\Temp\fxbundler1569188900774224640\images\win-exe.image
    at com.oracle.tools.packager.IOUtils.exec(IOUtils.java:165)
    at com.oracle.tools.packager.IOUtils.exec(IOUtils.java:138)
    at com.oracle.tools.packager.IOUtils.exec(IOUtils.java:132)
    at com.oracle.tools.packager.windows.WinExeBundler.buildEXE(WinExeBundler.java:680)
    at com.oracle.tools.packager.windows.WinExeBundler.bundle(WinExeBundler.java:356)
    at com.oracle.tools.packager.windows.WinExeBundler.execute(WinExeBundler.java:172)
    at com.sun.javafx.tools.packager.PackagerLib.generateNativeBundles(PackagerLib.java:506)
    at com.sun.javafx.tools.packager.PackagerLib.generateDeploymentPackages(PackagerLib.java:471)
    at com.sun.javafx.tools.packager.Main.main(Main.java:474)
    Error: Bundler "EXE Installer" (exe) failed to produce a bundle.
    ExitCode: -1

    What is wrong? (Win 10, Inno Setup 5 is installed)

    Thanks
    Lutz
     
  10. Erel

    Erel Administrator Staff Member Licensed User

  11. welu1805

    welu1805 Active Member Licensed User

    Now I run B4J as administrator:

    Program started.
    App identifier: de.wedersoft.MusicBookTransfer.main
    Success: true
    StdOut: Using base JDK at: D:\Program Files\Java\jdk1.8.0_45\jre
    StdErr: java.io.IOException: Exec failed with code 2 command [[D:\Programme\Inno Setup 5\iscc.exe, /oD:\Users\Lutz\AppData\Roaming\B4JPackager\bundles, D:\Users\Lutz\AppData\Local\Temp\fxbundler5172231196875092326\images\win-exe.image\MusicBookTransfer.iss] in D:\Users\Lutz\AppData\Local\Temp\fxbundler5172231196875092326\images\win-exe.image
    at com.oracle.tools.packager.IOUtils.exec(IOUtils.java:165)
    at com.oracle.tools.packager.IOUtils.exec(IOUtils.java:138)
    at com.oracle.tools.packager.IOUtils.exec(IOUtils.java:132)
    at com.oracle.tools.packager.windows.WinExeBundler.buildEXE(WinExeBundler.java:680)
    at com.oracle.tools.packager.windows.WinExeBundler.bundle(WinExeBundler.java:356)
    at com.oracle.tools.packager.windows.WinExeBundler.execute(WinExeBundler.java:172)
    at com.sun.javafx.tools.packager.PackagerLib.generateNativeBundles(PackagerLib.java:506)
    at com.sun.javafx.tools.packager.PackagerLib.generateDeploymentPackages(PackagerLib.java:471)
    at com.sun.javafx.tools.packager.Main.main(Main.java:474)
    Error: Bundler "EXE Installer" (exe) failed to produce a bundle.
    ExitCode: -1
    Mär 13, 2016 1:26:19 PM com.sun.javafx.css.StyleConverterImpl getInstance
    SEVERE: StyleConverterImpl : converter Class is null for : com.sun.javafx.scene.layout.region.CornerRadiiConverter
    Mär 13, 2016 1:26:19 PM com.sun.javafx.css.StyleConverterImpl readBinary
    SEVERE: could not deserialize com.sun.javafx.scene.layout.region.CornerRadiiConverter
    could not deserialize com.sun.javafx.scene.layout.region.CornerRadiiConverter
     
  12. Erel

    Erel Administrator Staff Member Licensed User

    Try to update to the latest Java JDK.

    If it still doesn't work then test it with a new empty project.
     
  13. welu1805

    welu1805 Active Member Licensed User

    The icon file was not correct. It was a renamed png.
    Now I have a correct icon file and it works great!
     
  14. swissmade

    swissmade Active Member Licensed User

    Hi all
    Try to use the Packager but with no result.:(

    Inno Setup is installed latest version.
    In the log of B4J i get following.

    Waiting for debugger to connect...
    Program started.
    App identifier: tcp.server.main
    Success: true
    StdOut: Using base JDK at: C:\Program Files\Java\jdk1.8.0_66\jre
    Using base JDK at: C:\Program Files\Java\jdk1.8.0_66\jre
    Detected [iscc.exe] version 0 but version 5 is required.
    Bundler EXE Installer skipped because of a configuration problem: Can not find Inno Setup Compiler (iscc.exe).
    Advice to fix: Download Inno Setup 5 or later from http://www.jrsoftware.org and add it to the PATH.
    StdErr:
    ExitCode: 0


    Thanks for any Help.
     
  15. Erel

    Erel Administrator Staff Member Licensed User

    Have you tried to add it to Windows PATH?
     
  16. swissmade

    swissmade Active Member Licensed User

    I had done this but seems to be wrong.
    Set PATH again works.
    Thanks Erel
     
  17. ToolboxZX

    ToolboxZX Member Licensed User

    Has anyone run into the issue of downloading the Windows example, running the install, and after it installs, when it attempts to run, it errors out with the message "Google Maps Example.exe is not a valid Win32 application." ? I tried to redownload the example, have turned off all anti virus software and still no go. I am testing this on Windows XP.
     
  18. Erel

    Erel Administrator Staff Member Licensed User

    It is a 64 bit program. It will not work on Windows 32 bit.

    You need to build the installer on a 32 bit computer if you want to create a 32 bit installer.
     
  19. ToolboxZX

    ToolboxZX Member Licensed User

    Thank you Erel that was it :)

    Are there any particular arguments that can be added (adjusted) to change the default path the application is installed in?
     
  20. Erel

    Erel Administrator Staff Member Licensed User

Thread Status:
Not open for further replies.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice