Question re JAVA_HOME and JDK_HOME
Posted: Thu Mar 07, 2013 12:25 pm
When I execute OperatorsChar.d, for example, the DBrowser monitor gives me repetitions of this message:
NOTE: A 'tools.jar' or internal Java compiler can't be found.
Make sure JAVA_HOME or JDK_HOME point to a JDK installation.
Trying to find an external javac compiler as an alternative.
It's only a warning. Everything works fine, but with OperatorsNum.d, for example, it can take an age and I'm wondering if it's the "trying to find" bit that slows things down.
My environment variables do not include anything for JAVA_HOME or JDK_HOME, in either the user section or the system section. The installation instructions mention the need for JDK but are silent on environment variables apart from the mention of PATH.
My PATH variable includes an entry for C:\Program Files\Java\jdk1.6.0_06\bin. I found a tools.jar in C:\Program Files\Java\jdk1.6.0_06\lib, so I set JDK_HOME to C:\Program Files\Java\jdk1.6.0_06. That stopped the above message from appearing but then I got this instead, just once:
ERROR: Java error: warning: java\lang\Object.class(java\lang:Object.class): major version 51 is newer than 50, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.: in line -1 of: d:\Alldocs\All Rel Databases\test\Database\RelUserCode\op_IS_DIGITS__CHARACTER.java Java error: warning: java\lang\String.class(java\lang:String.class): major version 51 is newer than 50, the highest major version supported by this compiler. It is recommended that the compiler be upgraded.: in line -1 of: d:\Alldocs\All Rel Databases\test\Database\RelUserCode\op_IS_DIGITS__CHARACTER.java Java error: warning: java\lang\Character.class(java\lang:Character.class): major version 51 is newer than 50, the highest major version supported by this compiler. It is recommended that the compiler be upgraded.: in line -1 of: d:\Alldocs\All Rel Databases\test\Database\RelUserCode\op_IS_DIGITS__CHARACTER.java Line 3 In IS_DIGITS(CHARACTER) RETURNS BOOLEAN line 1
I do also have a Java installation in C:\Program Files\Java\jre7 but this is not JDK and there's no reference to this folder in my environment variables. Its last modified date is today, and I did get one of those annoyingly frequent Java updates from Oracle today.
Is there any action I can take to avoid this new message? Should the installation instructions give any advice on this matter?
Hugh
NOTE: A 'tools.jar' or internal Java compiler can't be found.
Make sure JAVA_HOME or JDK_HOME point to a JDK installation.
Trying to find an external javac compiler as an alternative.
It's only a warning. Everything works fine, but with OperatorsNum.d, for example, it can take an age and I'm wondering if it's the "trying to find" bit that slows things down.
My environment variables do not include anything for JAVA_HOME or JDK_HOME, in either the user section or the system section. The installation instructions mention the need for JDK but are silent on environment variables apart from the mention of PATH.
My PATH variable includes an entry for C:\Program Files\Java\jdk1.6.0_06\bin. I found a tools.jar in C:\Program Files\Java\jdk1.6.0_06\lib, so I set JDK_HOME to C:\Program Files\Java\jdk1.6.0_06. That stopped the above message from appearing but then I got this instead, just once:
ERROR: Java error: warning: java\lang\Object.class(java\lang:Object.class): major version 51 is newer than 50, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.: in line -1 of: d:\Alldocs\All Rel Databases\test\Database\RelUserCode\op_IS_DIGITS__CHARACTER.java Java error: warning: java\lang\String.class(java\lang:String.class): major version 51 is newer than 50, the highest major version supported by this compiler. It is recommended that the compiler be upgraded.: in line -1 of: d:\Alldocs\All Rel Databases\test\Database\RelUserCode\op_IS_DIGITS__CHARACTER.java Java error: warning: java\lang\Character.class(java\lang:Character.class): major version 51 is newer than 50, the highest major version supported by this compiler. It is recommended that the compiler be upgraded.: in line -1 of: d:\Alldocs\All Rel Databases\test\Database\RelUserCode\op_IS_DIGITS__CHARACTER.java Line 3 In IS_DIGITS(CHARACTER) RETURNS BOOLEAN line 1
I do also have a Java installation in C:\Program Files\Java\jre7 but this is not JDK and there's no reference to this folder in my environment variables. Its last modified date is today, and I did get one of those annoyingly frequent Java updates from Oracle today.
Is there any action I can take to avoid this new message? Should the installation instructions give any advice on this matter?
Hugh