Comments (3)
I think it might be a bug.
Please show me more details; logs, operating histories, etc.
from appbundle-maven-plugin.
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.
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)
- Open associated file and Splash Files HOT 2
- How to package resources in to "Contents/Resources"? HOT 1
- appbundle-maven-plugin/build.sh: clang: not found HOT 5
- Can't start app on OSX HOT 3
- NPE with version 1.2.0 HOT 4
- passing arguments to the application HOT 1
- Version 1.2.1 release? HOT 2
- Cannot run app bundler as part of maven module build HOT 2
- Doesn't handle genisoimage or mkisofs under Windows
- NPE throwed when setting the <javaLauncherName> HOT 1
- Enhancement: Symlink doesn't work under Linux
- Missing documentation about executable permissions HOT 1
- Doesn't build the DMG on macOS 10.12.6 HOT 3
- Use specific JVMVersion
- Skip missing HOT 3
- Java 9+ non-compatibility HOT 3
- Update for JDK 11 Needed HOT 3
- JVM options issue with macOS dark mode key/value
- Adding multiple JVMOptions app cannot start
- App won't run when compiled on a different computer HOT 2
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 appbundle-maven-plugin.