Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add JVM arguments to Tomcat?

I am using Tomcat 7 and I want to add the following JVM argument:

-Xbootclasspath/p:PrintServiceFixer.jar

I added the aforementioned JVM argument in the tomcat windows application but it didn't work. I received the following error message:

WARNING: Bootstrap: command "-Xbootclasspath/p:/Path to Jar file/PrintServiceFixer.jar" does not exist.

Why isn't this working?

SOLUTION: I added Startup VM parameter "-Xbootclasspath/p:C:\Program Files\Apache Software Foundation\Tomcat 7.0\lib\PrintServiceFixer.jar" to Tomcat 7 from tomcats windows application and it works now.

enter image description here

like image 239
Davit Mumladze Avatar asked Oct 20 '25 13:10

Davit Mumladze


1 Answers

You provided simple value

-Xbootclasspath/p:PrintServiceFixer.jar

Are you sure that PrintServiceFixer.jar is in the home directory of Tomcat? Where is this home directory?

To be sure and avoid misunderstanding better provide full pathname to your jar file. Something like

-Xbootclasspath/p:/etc/allJars/PrintServiceFixer.jar

This boot class path may contain multiple jars and directories where classes reside. Just use full path name to the each jar or location.

like image 185
Izold Tytykalo Avatar answered Oct 23 '25 05:10

Izold Tytykalo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!