B4J Tutorial My B4J Packager - an extended version

Discussion in 'B4J Tutorials' started by Starchild, Jul 26, 2018.

  1. Starchild

    Starchild Active Member Licensed User

    This "My B4J Packager" started as the B4Jpackager provided by Erel. I have added the text entry fields for the extra things like, Menu Group, JavaVM Options (to set memory requirements), System Property definition, and extended the Vendor text to set the Publisher/Company fields for the installed program in Windows.

    My B4J Packager also allows for multiple Projects. The settings for each project are stored individually. Changing the Project Name, (after 1 sec) the previously used settings for that project will be reloaded. Project settings are re-saved on a Build and program exit. Settings can be copied by simply entering a new project name.

    The Build button and Progress Bar have been stylised a little, just because I could.
    Also, added tool tips to help with text.

    Fixed the BROWSE button fault when a previously defined file path no longer points to a valid path (things were moved). This was causing a program crash.

    Hope people find it useful.
    And, thanks to the great support provided by Erel and other in sorting out the little issues I had extending the B4J packager.

    Updated to v2.01
    - now supports "Create a Desktop Shortcut" option.
     

    Attached Files:

    Last edited: Aug 5, 2018
  2. appie21

    appie21 Active Member Licensed User

    Have you also a jar file?
     
  3. Starchild

    Starchild Active Member Licensed User

    Just open the supplied code in B4J and RUN for Release.
    The JAR file will then be created in the sub folder "Objects".
     
  4. Starchild

    Starchild Active Member Licensed User

    Updated to v2.01
    Download new source from the top post.

    - now supports "Create Desktop Shortcut" for windows.
     
    inakigarm and Erel like this.
  5. appie21

    appie21 Active Member Licensed User

    I missed the archive library (that is why I ask for jar )

    I can't wait to test (and use)
     
    Last edited: Aug 5, 2018
  6. appie21

    appie21 Active Member Licensed User

    Can you tell me where i can find it?
     
  7. Erel

    Erel Administrator Staff Member Licensed User

  8. DavideV

    DavideV Active Member Licensed User

    [SOLVED]
    Hello Starchild,
    nice work, but it creates the installer only at the very first run (both the old and the new version 2.01) taking a minute or more, correctly. At the second attempt it finishes in few seconds saying 'Package built successfully' , then it opens the folder where the package should be located, but it is empty. No way to create a new package also cleaning all fields. Win 10 64bit , b4j V6.30

    Edit 29/08/2018:
    It works fine running your app from the source code, the package is created every time I hit the button to build it.
    It doesn't work (in my case) running your app from the Jar inside 'object' folder.
    I think the problem is the JDK installed on my PC, B4J points to java 8 installation while the standalone jar uses the java 10 installation

    thanks
    Davide
     
    Last edited: Aug 29, 2018
  9. Starchild

    Starchild Active Member Licensed User

    I have not experienced any problem like this for myself.
    I suggest running "My B4J Packager" in DEBUG and observing the actual log report given by the JAVA packager itself.
    This log info may point you in the right direction to resolving this.
     
    DavideV likes this.
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