File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes -server option.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "-server option.." Watch "-server option.." New topic

-server option..

Tonny Tssagovic
Ranch Hand

Joined: Dec 30, 2003
Posts: 226
Hello folks, I am using tomcat as a service and added the -server option to the registry. Is there a way to check if that has been taken in consideration, I can not really see changes right now, but was curious as how one could figure out if the JVM got it=
Thanks a lot.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
The java.lang.System class has the getProperties() method that returns a Properties object with lots of information on the current system. I think what you want is the "java.compiler" property, but you can look at all of the values with
System.getProperties().list( System.out );
(I think thats right)
Tonny Tssagovic
Ranch Hand

Joined: Dec 30, 2003
Posts: 226
Thanks for the reply William
I will try that!
I agree. Here's the link:
subject: -server option..
It's not a secret anymore!