B4J Tutorial UI apps packaging - self contained installers

Status
Not open for further replies.

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:

Swissmade

Well-Known Member
Licensed User
Longtime User
Why you don't use Launch4j is working perfect if you like to create Exe Files.
 

m4.s

Member
Licensed User
Longtime User
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:




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




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
Licensed User
Longtime User
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

B4X founder
Staff member
Licensed User
Longtime 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
Licensed User
Longtime User
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
Longtime User

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.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…