Questions tagged [packr]

Packages your JAR, assets and a (minimized) JVM for distribution on Windows (ZIP), Linux (ZIP) and Mac OS X (.app), adding a native executable file to make it appear like the app is a native app. Packr is most suitable for GUI applications.

Packr packages JAR files, assets and a JVM for distribution on Windows (ZIP), Linux (ZIP) and Mac OS X (.app). It also adds a native executable file to make it appear like the app is a native app. Packr is most suitable for GUI applications, such as games made with . It is able to minimize the packed JVM to decrease the size of the whole package.

The manual and downloadable versions can be found on GitHub.

12 questions
2
votes
0 answers

Why did the quality of the GUI deteriorate by half after creating the exe file with jpackage?

I'm using jpackage to convert the jar file to an exe, with the exe file provided by the internal JRE. As a result of the conversion, good results were obtained, the JRE weighs about 38.5 mb. When I run the exe, the GUI quality is twice as WORSE as…
2
votes
0 answers

How to store sqlite3 db file inside binary

What I want to do: I am developing a CLI app which has a read-only database (sqlite using mattn/sqlite3) which should not be exposed and the binary is just an API over the read-only database. I tried tools like packr but it gives File, string or…
ashishmohite
  • 1,120
  • 6
  • 14
2
votes
3 answers

How can I add a packr step to a maven build script?

I'm trying to adjust my build procedure to produce a standalone executable. There are a few tools that do this and Packr seems like the perfect one. Also as far as I can tell it is officially supported my maven. After spending roughly an epoch of…
kutuzof
  • 660
  • 1
  • 7
  • 22
2
votes
1 answer

packr TestApp build wont run

(Windows 8.1) This is how I build the .exe: Go here, https://github.com/libgdx/packr Download packr, and the .zip. I compile the TestApp source code with "javac -sourcepath $SRC -d $BIN". the class file is now in bin>com>badlogicgames>packr I go…
Dreamtime
  • 83
  • 6
1
vote
0 answers

How (why) can gobuffalo/packr run at build-time?

I am using gobuffalo/packr to embed template files into my golang binary. Consider this simplified example: package main import ( "github.com/gobuffalo/packr" ) func main() { foo, _ := packr.NewBox("./templates").FindString("text.tpl") …
1
vote
1 answer

Creating a Linux executable file for my Java application Jar file

I found that Packr is the best tool to use for creating an executable file for my Java application on Linux. The executable works perfectly on Linux, but i have a question about this tool: The tool forces me to embed JRE with the output folder…
Brad
  • 4,457
  • 10
  • 56
  • 93
1
vote
1 answer

Packr windows exe not working

Downloaded the packr from https://github.com/libgdx/packr & Packr json is { "platform": "windows64", "jdk": "C:/Program Files/Java/jdk1.8.0_72", "executable": "myapp", "classpath": [ "input/test-hello.jar" ], "mainclass": "Main", "vmargs": [ …
nashter
  • 1,181
  • 1
  • 15
  • 33
1
vote
1 answer

NoClassDefFoundError when making MacOS Application Bundle from .jar

i've been trying to solve this for hours and hours now. I have a java program which i exported as a .jar. The jar works fine, but i wanted to a) bundle it to a MacOS application (.app) b) include the JRE in the app. I used packr…
1
vote
0 answers

Get OpenJDK to work with Packr

Using the JSON config, I specify an opendjk prebuild, containing a JRE. (The exact one specified in packr's example in the readme, actually) It packs my JAR into a mac executable successfully. I run the executable, and it works as expected on my…
Dingredient
  • 2,191
  • 22
  • 47
1
vote
1 answer

Packr not working

I want to export my LibGDX game, but when I try to run packr with this config: { "platform": "windows", "jdk": "openjdk-1.7.0-u45-unofficial-icedtea-2.4.3-windows-i586-image.zip", "executable": "LibGDX", "appjar": "LibGDX5.jar", "mainclass":…
Vilda
  • 1,675
  • 1
  • 20
  • 50
0
votes
0 answers

Packaging LibGDX program to exe with Packr breaks code which opens URL stream

In my LibGDX program, I attempt to obtain the user's IP from https://api.ipify.org. When I run the jarfile directly it works as expected, but it breaks when I run the exe produced by Packr. I compiled the jar with JDK 11.0.1 and tried bundling it…
0
votes
1 answer

Can I compile a Java App to a single binary that runs on Linux?

There shouldn't be any additional requirements to configure a JRE or JAVA_HOME and all that. I'd like to bundle a jre (ideally the IBM JRE) within the binary. I've looked at the following tools: JWrapper: Seems to require a splash screen which I…
kutuzof
  • 660
  • 1
  • 7
  • 22