Cool How To Find Java Home Directory References. If you already have java installed on your path, you can make java_home your default. Web you can determine the current directory your java application is started in using system.getproperty () method and the user.home property, like this:

Web to set java_home on a windows system: String getproperty(string key) above, the key is the name of the system. Now click advanced system settings and then environment variables.