Questions tagged [vmargs]

20 questions
32
votes
12 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
  • 834
  • 1
  • 8
  • 11
12
votes
1 answer

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
  • 309
  • 1
  • 5
  • 14
6
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,265
  • 2
  • 17
  • 48
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,039
  • 3
  • 31
  • 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…
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,422
  • 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…
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…
Vinoth
  • 479
  • 1
  • 5
  • 12
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
  • 836
  • 2
  • 7
  • 20
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…
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
  • 3,938
  • 6
  • 35
  • 52
0
votes
0 answers

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
  • 8
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
  • 8
0
votes
1 answer

Eclipse: How to Import VM Arg Variables?

I use custom variables for VM args when running my unit tests. Is there a way to export and import these from another Eclipse project?
ABC123
  • 957
  • 2
  • 15
  • 39
0
votes
0 answers

Ecilpse : 'VM arguments' vs 'Variables' (see image)

What is the difference between adding 'VM arguments' using text box and 'Variables' button in eclipse? Refer to pointers in image.
Vikash Yadav
  • 503
  • 5
  • 19
1
2