I want to run javap command from an ant script. Javap command is located in the bin folder under JDK, but how do I access the JDK path in an ant script? ${java.home} is pointing to the JRE instead of JDK, so that doesn't help.
I'm, looking for a solution which does not require any configuration to the system such as modifying PATH or setting other environment variables like JAVA_HOME. A solution that works only in Windows is fine.