File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 19541
    
  16

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Changing the system property java.io.tmpdir
 
Similar Threads
Writing to a directory in a Unix environment
Get a temporary file name
System.getProperty();
Path for Temporary Directory
Picked up _JAVA_OPTIONS