Comments (8)
Thank you @fvarrui ! Sorry I did not get around to formally opening a PR. Glad you found these changes useful.
from javapackager.
So these VM args are being set in a parent POM via a property. I've fixed my usage to properly use the array of arguments and that fixes it!
<vmArgs>
<vmArg>-Xmx${application.maxHeapMB}M</vmArg>
<vmArg>${application.vmArgs}</vmArg>
</vmArgs>
I'll have to deal with it on my end if I want to put more than one argument into ${application.vmArgs}
. Thank you for your help- false alarm.
from javapackager.
Fixed in v0.8.8.
from javapackager.
@fvarrui this appears not to work with the new release as the VM args aren't passed through the new startup
and stub. I'll look at it myself when I get the chance but it means my SWT app doesn't work (since I need to pass -XstartOnFirstThread
). thanks!
from javapackager.
Now, using stub, it takes VM args from Info.plist. Please, could you share this file?
from javapackager.
You're right! I do see them here:
<key>JVMOptions</key>
<array>
<string>-Xmx1024M -XstartOnFirstThread</string>
</array>
I think the problem is that it may be ignoring that because it's space-separated instead of a separate <string>
entry.
Do you think we should split on space in the mojo when filling out the template? or is that too opinionated?
The space separated args worked for the old stub and work for Launch4j and https://github.com/brianm/really-executable-jars-maven-plugin which are the other two plugins I'm using (I'm only using this one for Macs right now- that might change in the future!)
from javapackager.
Ok @jdimeo, how are you specifying VM args in your POM? And ... can you try this?
Edit Info.plist and modify as follows:
<key>JVMOptions</key>
<array>
<string>-Xmx1024M</string>
<string>-XstartOnFirstThread</string>
</array>
and run your app.
from javapackager.
You’re welcome @jdimeo! I’ll be here for whatever you need!!
from javapackager.
Related Issues (20)
- How to exclude certain jars from copyDependencies task (duplicate handling strategy) HOT 9
- mis/exe installation package custom installation path HOT 3
- Fat Jar doesn't seem to work as expected HOT 13
- How to make a clean terminal app for MacOS? HOT 5
- How can I set the singleInstance property of launch4j through a plugin HOT 3
- About GraalVM HOT 2
- when I try tro execute the .exe file, it repots "The application requires a java Runtime Environment" HOT 21
- How can I package for macOS with the demo ? https://github.com/fvarrui/JavaPackager/issues/409 HOT 1
- Erro “require java runtime environment......” in 1.7.6-SNAPSHOT HOT 8
- Question (or bug) about PKCS11 keystore type HOT 13
- How to keep old data files when upgrading? HOT 10
- Resource loading exception HOT 5
- javapackager packaging and security HOT 1
- Plugin searches for some library `tool.jar` on Mac under hard coded, non-existing path and fails right away HOT 12
- I need help about that HOT 1
- Path resolution causes bundled jre to not be found on linux when building from windows HOT 15
- Incomplete set of modules for customized JRE HOT 4
- Duplicate symbol 'File:default_local.policy' found. This typically means that an Id is duplicated. HOT 7
- edu.sc.seis.launch4j:launch4j:jar:2.5.2 was not found in https://repo.maven.apache.org/maven2 HOT 3
- exe icon 不更新 HOT 4
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 javapackager.