_JAVA_OPTIONS confuses version check (original) (raw)

David Holmes david.holmes at oracle.com
Mon Feb 25 00:05:27 UTC 2013


On 24/02/2013 4:38 AM, Steven R. Loomis wrote:

For reason or reasons unknown (probably related to the old build system), I had this in my environment: JAVAOPTIONS=-Dfile.encoding=ASCII This causes the shiny new build system's "java -version" to read the java version as: "Picked up JAVAOPTIONS: -Dfile.encoding=ASCII" and fail version check.

I would consider this a "user error" not a bug in configure. At least it is clear what caused the problem. There are other environment variables (eg _JAVA_LAUNCHER_DEBUG) and files that can impact the way java behaves and we should not expect configure to be aware of all these and try to compensate.

David

configure: Found potential Boot JDK using well-known locations (in /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk) configure: Potential Boot JDK found at /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home is incorrect JDK version (Picked up JAVAOPTIONS: -Dfile.encoding=ASCII); ignoring configure: (Your Boot JDK must be version 7 or 8)

-s On 2/23/13 9:29 AM, Martin Buchholz wrote: I'm having fun with the shiny new build system. It took me a while to discover that "make help" was exceptionally helpful.

However, I was interested in passing a configuration to CONF= and was annoyed there was no clue what to provide. (I wasn't even sure exactly what a "configuration" was) After some trial and error, I discovered that make CONF=bogus would actually give me that precious list of supported configurations. It would be nice if "make help" always printed that list, even though by default it contains only one entry.



More information about the build-dev mailing list