Giter Club home page Giter Club logo

Comments (3)

federkasten avatar federkasten commented on May 24, 2024

I think it might be a bug.

Please show me more details; logs, operating histories, etc.

from appbundle-maven-plugin.

lorenberg avatar lorenberg commented on May 24, 2024

Hi,

thank you for your reply. Quickly done, the situation is the following: as I told you, I compiled the .app directly on a MAC (OSx 10.10.5 Yosemite) with JVM 1.8u65 JDK installed (the latest available), and the JVM is in fact packaged in the .app. When I try to run it, it works perfectly while the JVM is still installed on the MAC (runs smoothly and the GUI starts without any kind of problem). If I remove the JVM 1.8 from the MAC (I still leave installed the JVM 1.6, which was already there from the beginning, but I don't think this changes a lot, since I tried on other MACs as well), I got an UnsupportedClassVersionError when Java 1.6 is installed (indicating, to me, that the system tries to use the installed Java instead of the embedded one). When I try running on a MAC without any Java (I tested on a MAC with OSx 10.11, ElCapitan), I simply got a prompt telling me that I should download and install a JRE.

On both systems, if I go from the terminal and I run from command line the JVM embedded in the app package, everything works fine again.

So, my guess is that when the JavaAppLauncher executable is built, somehow it does not point to the embedded JRE, but it defaults to the system installation, even if the JRE is correctly embedded.

Thank you for your time, and if you need any other information please ask.

from appbundle-maven-plugin.

lorenberg avatar lorenberg commented on May 24, 2024

If this could be of any help, I think the problem could be here (code is taken from your native main.m):

const char *libjliPath = NULL;
if (runtime != nil && [runtime length] > 0) {
    NSString *runtimePath = [[[NSBundle mainBundle] builtInPlugInsPath] stringByAppendingPathComponent:runtime];
    libjliPath = [[runtimePath stringByAppendingPathComponent:@"Contents/Home/jre/lib/jli/libjli.dylib"] fileSystemRepresentation];
} else {
    libjliPath = LIBJLI_DYLIB;
}

Apparently, there is something wrong with the defined path.I am not really sure how I can change the code since it is a maven plugin, so I will wait for your reply.

from appbundle-maven-plugin.

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.