Questions tagged [vmargs]
22 questions
33
votes
13 answers
Missing tools.jar when launching STS application
I have the latest STS4. I am using installed java-1.8 JDK not embedded as the execution environment. My project just runs fine without any issue.
However when I launch the STS application itself I have a pop up saying
"Missing tools.jar"
I have…

upHiller
- 936
- 2
- 9
- 14
17
votes
2 answers
How to add VM args using pom.xml plugin
I have tried below ways but nothing work...
i am trying to access jmx remotely from server.
-Dcom.sun.management.jmxremote.port=9999
…

Rahul sharma
- 399
- 1
- 5
- 14
7
votes
1 answer
vsCode java.test.config vmArgs not working
My project requires the following vmArgs to run :
"vmArgs": "-javaagent:lib/aspectjweaver-1.9.5.jar -javaagent:lib/spring-instrument-5.2.3.RELEASE.jar --module-path lib/javafx-sdk-13.0.2/lib --add-modules=javafx.controls"
Putting this in the…

Martin
- 1,977
- 5
- 30
- 67
3
votes
7 answers
Modify JVM args from inside the JVM
Is there a way to modify the jvm args from inside of the jvm? Specifically, I want to be able to change the maximum heap size of the jvm from inside of it. Is this possible?
Edit: I guess I should add the reason I wanted to do this. I have a few…

Laplie Anderson
- 6,345
- 4
- 33
- 37
3
votes
1 answer
what is the character encoding used in eclipse vm arguement?
We read an important parameter as vm argument and it is a path to a file. Now, users are using vm argument with some korean characters (folders have been named with korean characters) and the program started to break since the korean characters are…

Senthilkumar Annadurai
- 412
- 1
- 4
- 17
3
votes
2 answers
Run C# Application in Different Language using Visual Studio
I have an application which has several resource files for different languages depending on the machines culture/language. This works fine if i set the Culture using code, but I am wanting to specify the culture on the command line somehow.
I know…

pengibot
- 1,492
- 3
- 15
- 35
1
vote
1 answer
Set all spring boot properties inside .yml file into system properties
I am working on a spring boot project in which a lot of VM arguments are passed for the application to start i.e. cert location, specific profile types(not dev,qa, prod etc).
I am working on moving all the configuration in a default.yml…

Always a newComer
- 531
- 8
- 21
1
vote
1 answer
Eclipse VM arguments picking directory name without separator
I am setting the VM arguments in eclipse as -DFilePath="C:\file\txt"
But while calling this #FilePath# in java it is giving output as C:filetxt instead of C:\file\txt. This is resulting in file not found exception. Can anyone please help me on…

Gowri Sundar
- 669
- 1
- 7
- 15
1
vote
1 answer
Maven: vm args in MAVEN_OPTS arent working, but they are if specified in the command line
I have a particular test case that is run by surefire which fails when this vm arg is not set.
I am able to get the test to successfully pass if i run:
mvn test -Dtest=TestClass -Djava.net.preferIPv4Stack=true
This works great. Now I want to…

user321605
- 846
- 2
- 7
- 20
0
votes
1 answer
Escape String issue for a Spring Boot Application vmargs in Visual Studio Code
I am trying to run Spring Boot Application in a Visual Studio Code with the RedHat Java extension. I am adding JVM args as shown below in the launch.json.
{
"configurations": [
{
"type": "java",
"name": "Application",
…

Sudip Subedi
- 55
- 7
0
votes
1 answer
Eclipse 2023-03 crashes with old eclipse.ini +UseZGC
When running eclipse 2023-03 with old eclipse.ini (or after upgrading 2022-03) eclipse doesn't start anymore and nothing is found in workspace/.metadata/log, or in console.
The old eclipse.ini had the following vmargs that…

raisercostin
- 8,777
- 5
- 67
- 76
0
votes
0 answers
What is this used for "-Ddep-type=local" in eclipse VM agrs?
recently i was in an interview in an MNC. There they have shown me this piece of line -Ddep-type=local in eclipse's vmargs section and asked what exactly this is used for.Though i am working on eclipse and java for couple of years, i have no idea on…

Kranthi.Gogikar
- 31
- 5
0
votes
1 answer
Failed on starting Spring Tool Suite when I change XMx
I am trying to change and increase the default -Xmx768m to -Xmx1024 in STS.ini. However, on startup I get an error saying "Failed to create the JVM".
If I revert it back to 768 it works fine. Any idea as to what am I doing wrong and how can I…

Nilesh
- 4,137
- 6
- 39
- 53
0
votes
1 answer
MULE - order of precedence for application properties vs VM Args vs env variables
I need to know the order of precedence of application properties, VM arguments and system environment variables in mule application whenever we have same property defined in all the 3 places
I referred few documentations and articles. It is…

pri05
- 75
- 1
- 11
0
votes
0 answers
MULE - Change precedence of variables from application properties and VM arguments
Is there a way to change the precedence of application of properties file to VM arguments in Mule application?
If not, how should we implement so that code checks for VM args first if not available then check application.properties file?
something…

pri05
- 75
- 1
- 11