how to set Java classpath using java code
Can I set environment variables in java using java program. . With out going to properties->Advanced->Environment Variables and set the path.
cheers
mallik
Can I set environment variables in java using java program. . With out going to properties->Advanced->Environment Variables and set the path.
cheers
mallik
http://forum.java.sun.com/thread.jspa?threadID=5196002&tstart=0
Double post. Post replies in other thread.
use Runtime.
http://forum.java.sun.com/thread.jspa?threadID=780815&messageID=4441376
Pls. don't double post
Message was edited by:
Yannix
Thanks...
but the data in the bellow link not solve my problem.!!!!
http://forum.java.sun.com/thread.jspa?threadID=780815&messageID=4441376
cheers
mallik
> Thanks...
> but the data in the bellow link not solve my
> problem.!!!!
>
> http://forum.java.sun.com/thread.jspa?threadID=780815&
> messageID=4441376
>
> cheers
> mallik
then try this:
how to execute dos command
http://java.ittoolbox.com/groups/technical-functional/java-l/how-to-execute-dos-command-249513#
@Yannix: be aware that the variables you set using Runtime.exec() on are only valid for that special shell process and are by no means global. If the OP wants to set the classpath for his own program, it will get him nowhere. I'd suggest using UrlClassLoader so a classpath isn't needed, but then, I'd even more suggest that the OP should give us a usable description of his intents and problem.