B4J Question [SOLVED] .jar File not naming as the project name

Peter Lewis

Well-Known Member
Licensed User
Longtime User
Hi All,

I followed this information and renamed all the required parts and still I get result.jar. Here is what Google AI told me
In B4J, the output .jar file name is determined by the project name. The only direct way to change the name of the compiled .jar file through the IDE is to rename your entire project file (.b4j file) and project folder.
Alternatively, you can manually rename the result.jar file after it is generated in the Objects folder of your project directory.

Renaming the Project
This method changes both the project file name and the resulting .jar file name.
  1. Close the B4J IDE.
  2. Navigate to your project's root folder using your computer's file explorer.
  3. Rename the main project file (yourprojectname.b4j) to the desired new name (e.g., mynewapp.b4j).
  4. Optionally, rename the entire project folder to match the new name for consistency.
  5. Reopen the B4J IDE and open the newly renamed project file.
  6. When you compile in Release mode, the generated .jar file in the Objects folder will have the new name (e.g., mynewapp.jar).

1769849490093.png


I even did the Packager code for the name

B4X:
    #PackagerProperty: ExeName = ledposter-player


Of course I could just rename it, but i have seen it work before so how come on this app it is not working ?

Thank you
 

aeric

Expert
Licensed User
Longtime User
Yes
 
Upvote 0
Top