Code Monkey home page Code Monkey logo

Comments (5)

code-disaster avatar code-disaster commented on July 24, 2024

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.

jaimehrubiks avatar jaimehrubiks commented on July 24, 2024

@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.

code-disaster avatar code-disaster commented on July 24, 2024

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.

jaimehrubiks avatar jaimehrubiks commented on July 24, 2024

@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.

code-disaster avatar code-disaster commented on July 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.