Comments (5)
Please note that my branch isn't widely tested yet. So far I tested with some small samples, and a build of our own Steam game. That said, if the JAR itself runs, it's unlikely that the new Java code to create the build did break anything.
What version of packr did you use before? The current master branch, or one before the native launcher rewrite?
from packr.
@code-disaster thanks and sorry for the delay.
I don't remember which version did I use in the past, though I have some records from 03/june/15 ( I have not tested it today because json won't parse but I might look for the structure in older commits when I have time)
I just tried building latest build from libgdx and same thing happened. Also tested on other windows 10 and windows 7 pcs. Here is the config I used: http://i.imgur.com/VMIJs7V.png
I must be doing something wrong but I can't figure out what it is, sorry for that.
from packr.
Please run the executable with "-c -v --console" parameters. This should show you some console output on Windows which might give a hint what's wrong.
from packr.
@code-disaster Ok that really helped me finding the cause of the issue.
Dependencies seem to be the issue here. I am using a java swing "look and feel" called WebLaf, and somehow I can't get it to work with packr.
I changed the way I am invoking the methods, I replaced the one I had with:
UIManager.setLookAndFeel
( "com.alee.laf.WebLookAndFeel" );
And now it started showing gui. However it still does not load dependencies, and no theme appears. It can't find the class of my ./lib folder and this message appears:
http://i.imgur.com/lmJzqcw.png
I am using same config as show above, is there anything I must do for /lib folder to be set on the classpath? Well.. I even tried packing my app and dependencies on same big .jar file and same thing happens.
It might not be fully related to packr, but it works in all cases executing with system java -jar, and even with attached jre/bin/java.exe (using -cp "path to app jar" main.class)
Thanks again for your time, an advice is welcome and I'll keep testing.
from packr.
Hm, that's odd indeed. Maybe java.exe does some additional classpath voodoo to discover your dependencies in the lib/ folder.
You can try adding your libs to the "classpath": [] section in config.json. In your case with WebLaf you probably need to list all the "lib/*.jar" files individually.
Also, make sure all those jars are truly copied to the output folder by packr, and that the relative paths are preserved.
from packr.
Related Issues (20)
- please help me HOT 1
- Splash screen in Packr on macOS HOT 7
- XstartOnFirstThread hangs forever on OSX HOT 1
- LWJGL3 crashes on OSX HOT 4
- Packr cannot recognise `jrePath` Temurin JRE and JDK zips for Windows HOT 8
- Load configuration file relative to executable location, not working directory HOT 1
- Can you create Linux binary that makes use of installed Java on Linux instead of packaging one with packr?
- How to make generated app to use current working dir as its working dir instead of app's dir?
- FEATURE REQUEST HOT 1
- Consulting: Complicated packaging methods
- Packing with Oracle JDK causes error HOT 2
- Mac keeps throwing permission denied HOT 1
- Error 503 from https://artifactory.nimblygames.com while building HOT 1
- Version 4.0.0 missing from artifactory HOT 2
- Error when execute .exe file
- classpath is empty when retrieving it.
- Frame blurry when starting with bundled launcher
- Can you add an option to remove the previous out directory if it exists?
- Generated .exe does nothing HOT 8
- packr repo seems not to work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packr.