How To Enforce a JDK Installed In a Specific Directory Be Used In ANT Build Script
(Doc ID 382934.1)
Last updated on FEBRUARY 13, 2024
Applies to:
Oracle Containers for J2EE - Version 10.1.2.0.0 and laterInformation in this document applies to any platform.
Goal
ANT scrips frequently include at least one target to compile java classes.
What "javac" executable is picked up for compilation is normally controlled by naming its directory as one of the execute directories in the PATH environment variable.
For example: <ORACLE_HOME>/jdk/bin:<ORACLE_HOME>/bin:<ORACLE_HOME>/opmn/bin:<ORACLE_HOME>/dcm/bin:<ORACLE_HOME>/OPatch:/usr/bin:/bin:/usr/sbin
But the goal of this note is to show an alternative way to accomplish this.
Solution
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Goal |
Solution |