aspose file tools
The moose likes Java in General and the fly likes run application Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "run application" Watch "run application" New topic
Author

run application

Ariffin Ahmad
Ranch Hand

Joined: Aug 16, 2001
Posts: 84
i noticed, when i read tomcat's startup script, they include something when they run the 'java' commnad, likes, -Djava.endorsed.dirs,
-Dcatalina.base, -Dcatalina.home,
-Djava.io.tmpdir. what does it mean? is there more and if is, then, what are they?....
if i have, perhaps more than 10 jar's files, do i must specified each jar files in '-classpath', or there is something else i can do?
and, how can i do something like tomcat, which allow me to specify, classes in some folder/s can/can't be access by my child class?.....
[ May 06, 2002: Message edited by: Ariffin Ahmad ]
John Dale
Ranch Hand

Joined: Feb 22, 2001
Posts: 399
The java -Dname="value" option specifies a system property, which you can retrieve as
String value = System.getProprety("name");
See the documentation for the java command and the System method. You can define your own, or override standard settings. See System.getProperties() for the standard list.
Moving on. If the jar files are not application-specific, you might put them in the JRE's lib\ext directory (or the JDK's jre\lib\ext).
I've done little with security policy, so I'll not try to answer that.
Ariffin Ahmad
Ranch Hand

Joined: Aug 16, 2001
Posts: 84
Originally posted by John Dale:

I've done little with security policy, so I'll not try to answer that.

about the jar's file access, i dont need any security on it. i only want to copy tomcat style.
i will have 2 folder, one for the main app, and the other for the child thread. whatever jars i want to use with my main app, i will put it in the main folder. and whatever jars i wanna use wil the child thread, i will put it in child folder. and, on runtime, they don't need to specify the classpath. any idea?....
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: run application
 
Similar Threads
storage of files in website
Just getting started, need help
java.awt.xs:base64Binary for pdf
apache doesn't run jsp
I am brand new to EJB