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. Erel

    Erel Administrator Staff Member Licensed User

    Put any additional file in the Files folder and copy it at runtime to a different folder.
     
  2. Aristide

    Aristide Member

    @Erel

    I use your packager. All is ok for building exe on Windows 7 - 64.
    When i use this install on Windows 10 32, there is an error :

    [​IMG]

    The install seems to be ok, but the program abort.

    Ps : I use the link of your packager in the first page.


    Add : I execute the installer on the same PC where I build it. And it's OK.


    Plus : When i try to execute with the java command on the same pc that abort install

    [​IMG]
     
    Last edited: Feb 8, 2017
  3. Erel

    Erel Administrator Staff Member Licensed User

    1. Please don't limit your questions to a single member.

    2. Please start a new thread for this in the questions forum.
     
  4. Aristide

    Aristide Member

    OK.Thanks I start a new thread ...
     
  5. juvanum

    juvanum Active Member Licensed User

    with baj packager can I enter the author's name?
    Cattura.PNG
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    No, it is not possible.

    See post #130.
     
    Last edited: Feb 27, 2017
    juvanum likes this.
  7. swissmade

    swissmade Active Member Licensed User

    Why you don't use Launch4j is working perfect if you like to create Exe Files.
     
  8. Erel

    Erel Administrator Staff Member Licensed User

    B4J Packager solves a bigger problem. It embeds the JRE together with your app so the client doesn't need to deal with Java at all. Just needs to install and run.
     
    themr23 likes this.
  9. swissmade

    swissmade Active Member Licensed User

    Ok that's a reason to use it.
     
  10. Lahksman

    Lahksman Active Member Licensed User

    I solved this by using the parameter "-Bvendor=author"
     
  11. m4.s

    m4.s Member

    Hello Erel,

    I have downloaded the B4JPackager.jar (many times over) but I always just get a blank/empty window/form when it executes/opens - as shown below:

    upload_2017-3-16_0-8-58.png


    I also always get the same after I install and run your GoogleMaps Example [JRE bundled] application EXE:

    upload_2017-3-16_0-9-27.png


    Do you have any explanation for this? I'm on Windows 10 Home (64-bit), with jre1.8.0_111 (and jdk1.8.0_102) 64-bit Java installed.


    Further, when I extract your provided B4JPackager.zip, I can open the B4J project code file but am immediately advised that I'm missing the Archiver library; which only seems available if one has purchased a B4A license; which I've not as I don't develop Android apps. That does not seem right, or is that true? {You don't explicitly state that one page 1 of this thread.}


    Thanks, as always, for your assistance.
     
  12. Erel

    Erel Administrator Staff Member Licensed User

    I've uploaded a new jar. It will fix this issue.
     
  13. m4.s

    m4.s Member

    Thanks Erel. Your new jar fixed my blank/empty B4J Packager window problem; and I was then able to bundle my application with the JRE files successfully.

    As expected though, even after downloading and installing again, your packaged GoogleMaps example application still opens to a blank/empty window. I suspect maybe you'd need to repackage it with the [Windows 10-specific?] fix you made to the jar...? There's certainly no urgency/rush re: this if so (just wanted to report).

    However, I still need to know if I must purchase a B4A license just to get the Archiver library -- so that I can modify and run the B4J Packager project code in the B4J IDE, in order for me to pass the javapackager parameters necessary for my application's custom packaging and installer requirements.
     
    Last edited: Mar 19, 2017
  14. Erel

    Erel Administrator Staff Member Licensed User

    You are correct. However it is only an example of the installer.

    It should be simple to remove the dependency on Archiver library. It is only used to extract the manifest file and find the package name. You can explicitly set appClass instead.
     
  15. m4.s

    m4.s Member

    Thank you Erel. As always, you're right (and I should have tried that first).

    My locally edited B4J Packager project is compiling and running fine from IDE for me now!
     
  16. AndreiCibo

    AndreiCibo Member

    I try to run the code but it tells me :
    B4J version: 5.51
    Parsing code. Error
    Error parsing program.
    Error description: Unknown type: archiver
    Are you missing a library reference?
    Occurred on line: 112 (Main)
    Dim archiver As Archiver
    What should I do?
     
  17. Lahksman

    Lahksman Active Member Licensed User

    You need to get the B4A archiver library as stated in the first post.
     
  18. Erel

    Erel Administrator Staff Member Licensed User

  19. AndreiCibo

    AndreiCibo Member

    But how can I add this library if I want to?
     
  20. Erel

    Erel Administrator Staff Member Licensed User

    You need to purchase a B4A license.
     
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