B4J Tutorial UI apps packaging - self contained installers

Status
Not open for further replies.

Erel

Administrator
Staff member
Licensed User
Put any additional file in the Files folder and copy it at runtime to a different folder.
 

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 :



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

 
Last edited:

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.
 

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.
 

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:

Erel

Administrator
Staff member
Licensed User
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...?
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.
 

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!
 
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?
 

Lahksman

Active Member
Licensed User
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?
You need to get the B4A archiver library as stated in the first post.
The source code depends on the following additional libraries: Archiver (B4A library) and jControlFX
 
Status
Not open for further replies.
Top