How do I get the location of rt.jar in my Ant script with NetBeans without editing my project.properties? ${java.home} is returning the location of the jre folder and not the jdk folder.
I know that I could easily add a value to project.properties but I don't want to. I also know that I could easily just modify the path whenever I switch computers but I would prefer not to do that either.
Edit: Maybe ${java.home} is the best solution and I should just fix my computers environment variables correctly.
Edit2: I just realized that java.home is not the same as JAVA_HOME. More information: http://javahowto.blogspot.com/2006/05/javahome-vs-javahome.html