Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using jvm_args without changing executable? #230

Open
MonkaKokosowa opened this issue Aug 4, 2024 · 1 comment
Open

Using jvm_args without changing executable? #230

MonkaKokosowa opened this issue Aug 4, 2024 · 1 comment

Comments

@MonkaKokosowa
Copy link

Would it be possible to use env.jvm_args with custom JVM args such as -Xmx3G without needing to set a JVM executable path in the first argument? I need to change ram allocation, but would rather avoid writing unnecessary JVM handling code when portablemc already has it.

@mindstorm38
Copy link
Owner

The JVM exec path is always the first in jvm_args, so you just have to ignore it and modify subsequent arguments. What is your code leading to the creation of env?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants