-
changing user.dir at runtime
Hello,
I have the following problem:
I'm starting my java application as a daemon (onlinux). In my setup this means my user.dir is set to /root. However, I need to run an external program (with the Runtime->Process).
To be able to run this process, I need to have a user.dir that points to the same dir as where my external prgram resides.
Is there a way to change your user.dir at runtime?
Mark
-
Have u tried e.g. the Runtime method exec(String command, String[] envp, File dir) where dir becomes the working directory used to execute the process?
-
yeah, that should work. But I already fixed it in a different way (changed the program I was calling to not need a user.dir in the first place)
Similar Threads
-
Replies: 5
Last Post: 12-22-2009, 07:35 AM
-
By premartha in forum ASP.NET
Replies: 1
Last Post: 11-19-2005, 01:13 AM
-
By lucbrunet in forum VB Classic
Replies: 5
Last Post: 04-21-2005, 04:02 PM
-
Replies: 8
Last Post: 04-03-2002, 06:41 PM
-
By Ed Marquez in forum VB Classic
Replies: 0
Last Post: 05-10-2000, 04:33 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks