aspose file tools*
The moose likes Java in General and the fly likes Changing the system property java.io.tmpdir Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Changing the system property java.io.tmpdir" Watch "Changing the system property java.io.tmpdir" New topic
Author

Changing the system property java.io.tmpdir

Biju moozhikkara
Greenhorn

Joined: Oct 21, 2005
Posts: 20
We are using System.getProperty("java.io.tmpdir") in our application running at Sun solaris box and it returns the value "var/tmp".Is there any way i can change the system property so that System.getProperty("java.io.tmpdir") returns "/tmp".


I am looking for an option other than System.setProperty("java.io.tmpdir", "/temp");

Thanks and Regards
Biju M
[ February 12, 2008: Message edited by: Biju muzhikara ]
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19762
    
  20

You can specify it on the command line when you start Java:


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
 
subject: Changing the system property java.io.tmpdir