I want to run my java code from any of the folder i want ..->
1. What to write in Environment variable ?
2. who to create .bat file & where to store ?
Printable View
I want to run my java code from any of the folder i want ..->
1. What to write in Environment variable ?
2. who to create .bat file & where to store ?
1.Look for posts on how to set your PATH (if on Windows)
2.Use an editor to create a .bat file. Put it in a folder that is on the PATH.
Java doesn't depend on any platform, the user directory can be found by in the system properties. Look at system.getProperty(String property) on how to do this.
You can make the bat-file in this directory from within your project.