Giter Club home page Giter Club logo

Comments (4)

andytill avatar andytill commented on September 28, 2024

Interesting that you mentioned the manifest does not have the Class-Path attribute, does it work on OpenJDK if you set it to the jar name in the META-INF/MANIFEST.MF manually?

I am only testing using the Oracle JDK and don't want to test on multiple JDKs for every change. I'd be more than happy to have OpenJDK support via contributions though.

from erlyberly.

lucafavatella avatar lucafavatella commented on September 28, 2024

Interesting that you mentioned the manifest does not have the Class-Path attribute, does it work on OpenJDK if you set it to the jar name in the META-INF/MANIFEST.MF manually?

I tried to set it to the jar name Class-Path: erlyberly-0.6.7-runnable.jar - same result. I tried to set it to . - same result. I tried to set it to erlyberly - same result.

(Main commands I used:

  • jar -xf erlyberly-0.6.7-runnable.jar META-INF/MANIFEST.MF
  • jar ufm erlyberly-0.6.7-runnable.jar META-INF/MANIFEST.MF
    )

from erlyberly.

lucafavatella avatar lucafavatella commented on September 28, 2024

Maybe OpenJDK does not support javafx package? Or maybe my OpenJDK installation is broken.

$ java -verbose -Xdiag -jar erlyberly-0.6.7-runnable.jar
...
Error: Could not find or load main class erlyberly.ErlyBerly
...
java.lang.NoClassDefFoundError: javafx/application/Application
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495)
Caused by: java.lang.ClassNotFoundException: javafx.application.Application
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 13 more
...

from erlyberly.

lucafavatella avatar lucafavatella commented on September 28, 2024

It looks like I have a version of OpenJDK without JavaFX - so my bad. Apologies for the noise.

Ref https://stackoverflow.com/questions/18547362/javafx-and-openjdk

from erlyberly.

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.