B4J Question Just curious: where is the app after B4jpackager11 ?

peacemaker

Expert
Licensed User
Longtime User
HI, All

If .jar compiled is around 20 MB, but after building a standalone package ... where are app's binaries located ?
 

peacemaker

Expert
Licensed User
Longtime User
Sorry, Erel, I did not understand where the files with my compiled code are placed
In subfolders: bin, legal, lib, conf....
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
modules inside lib folder
Yes, the biggest file indeed, thanks for searching result
Question was just curious how the contents looks like, open for any modifications....
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
Yes, the biggest file indeed, thanks for searching result
Question was just curious how the contents looks like, open for any modifications....
It is in machine byte code, not intended for human reading or editing. Someone needs to reverse engineering the byte code.
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
In which path should I execute this command?
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
%j% = java\bin folder

modules = the actual modules file.

You should run it in: <project>\Objects\temp\build\lib
I got:
B4X:
C:\B4X\Development\Web API Client 1.05\B4J\Objects\temp\build\lib>%j%\jimage extract --include regex:.*b4j/Files.* modules
The system cannot find the path specified.

C:\B4X\Development\Web API Client 1.05\B4J\Objects\temp\build\lib>
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
B4X:
C:\Java\jdk-14.0.1\bin\jimage extract --include regex:.*b4j/Files.* modules

 
Upvote 0

aeric

Expert
Licensed User
Longtime User
So, it's just asset files, no any code binaries.
You can use Java Decompiler or similar tool to extract Java classes from .jar file but I am not sure any tool can be use to extract them from modules file.
 
Upvote 0

teddybear

Well-Known Member
Licensed User
You can use Java Decompiler or similar tool to extract Java classes from .jar file but I am not sure any tool can be use to extract them from modules file.
As Erel said, the compiled classes are also there. just remove the restriction -- include regex:* b4j/Files.*
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…