File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to set java option in tomcat

 
vikas mishra
Greenhorn
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i have jar (developed by me) for watermarking of image.
this jar is working fine
when i m running program form command line by giving switches
-Dsun.java2d.pmoffscreen=false and -Xmx128000000 but when i m trying
this jar with tomcat and jas it showing error

i want to set these 2 switches from tomcat how can i do this

i m useing tomact4 on linux8.0
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
look inside catalina.sh. It is heavily commented.

big hint: "JAVA_OPTS"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic