Git Product home page Git Product logo

Comments (8)

jdimeo avatar jdimeo commented on September 5, 2024 1

Thank you @fvarrui ! Sorry I did not get around to formally opening a PR. Glad you found these changes useful.

from javapackager.

jdimeo avatar jdimeo commented on September 5, 2024 1

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.

fvarrui avatar fvarrui commented on September 5, 2024

Fixed in v0.8.8.

from javapackager.

jdimeo avatar jdimeo commented on September 5, 2024

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

fvarrui avatar fvarrui commented on September 5, 2024

Now, using stub, it takes VM args from Info.plist. Please, could you share this file?

from javapackager.

jdimeo avatar jdimeo commented on September 5, 2024

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.

fvarrui avatar fvarrui commented on September 5, 2024

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.

fvarrui avatar fvarrui commented on September 5, 2024

You’re welcome @jdimeo! I’ll be here for whatever you need!!

from javapackager.

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.