Packr not working

Anything libgdx related goes here!

Packr not working

Postby Redkin » Wed Jul 24, 2019 10:01 pm

I used Packr to create an exe from a jar but it creates the exe with a json a copy of jre and the jar,
i think he is not packing all inside the exe, someone knows how it works????

I used this on the command line:

Code: Select all
java -jar packr.jar --classpath desktop-1.0.jar --platform windows64 --jdk jdk1.8.0_101 --executable angrymapache --mainclass es.redbluewolvegames.angrymapache.desktop.DesktopLauncher --output hola


Thanks in advance!
Redkin
 
Posts: 109
Joined: Sat Apr 22, 2017 7:21 pm

Re: Packr not working

Postby shatterblast » Sat Jul 27, 2019 9:52 pm

It is better to use a config.json file or similar. One of mine looks like the following:

Code: Select all
{

    "platform": "windows64",
    "jdk": "zulu8.38.0.13-ca-jdk8.0.212-win_x64",
    "executable": "START_HERE",
    "classpath": [
        "sylveria_ss_-_desktop-13.jar"
    ],

    "mainclass": "com.weslange.desktop.DesktopLauncher",

    "output": "Sylveria_SS_-_Windows_x64_2019-05-22/"

}


In that way, you can just do like the following in your shell / command prompt:

Code: Select all
java -jar packr.jar config.json


I recommend avoiding the options to shrink the JRE, especially with the Zulu JDK.
shatterblast
 
Posts: 414
Joined: Sun Jul 06, 2014 1:14 pm

Re: Packr not working

Postby markcowell23 » Mon Sep 09, 2019 7:15 am

Facing Same issue
markcowell23
 
Posts: 2
Joined: Mon Sep 09, 2019 7:13 am

Re: Packr not working

Postby shatterblast » Mon Sep 09, 2019 11:08 am

markcowell23 wrote:Facing Same issue

Clarify, please? The answer is literally right there. How are you missing it?
shatterblast
 
Posts: 414
Joined: Sun Jul 06, 2014 1:14 pm


Return to Libgdx

Who is online

Users browsing this forum: No registered users and 1 guest