Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Changing the system property java.io.tmpdir

 
Biju moozhikkara
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20667
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can specify it on the command line when you start Java:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic