Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

how to point JAVA_HOME to jdk?

843798Dec 18 2009 — edited Dec 18 2009
Trying to use Ant, and apparently one requirement is to have your java.home pointing to my jdk..

currently its pointing to my JRE so i've tried to set it programmatically like:
System.setProperty("java.home", "C:/Program Files (x86)/Java/jdk1.6.0/");
it didnt work.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 15 2010
Added on Dec 18 2009
4 comments
272 views