[opensuse] Java version on OpenSuse 12.3
I am trying to compile Apache's OFBiz on a virtual machine running OpenSuse 12.3. When I type 'java -version' into bash, I am told that the java version is OpenJDK java version 1.7.0_17. But, when I try to run ant in the ofbiz directory, to build it, it is claiming that it detected java 1.5, which is not supported and so the build dies. Is there any chance there is some remnant of Java 1.5 hiding somewhere in this VM? How would I examine any environment variables related to java that may have been defined when Java was installed (it would have to be the installer as I did not define any). Thanks Ted -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Am 01.05.2013 05:03, schrieb Ted Byers:
I am trying to compile Apache's OFBiz on a virtual machine running OpenSuse 12.3. When I type 'java -version' into bash, I am told that the java version is OpenJDK java version 1.7.0_17. But, when I try to run ant in the ofbiz directory, to build it, it is claiming that it detected java 1.5, which is not supported and so the build dies.
Is there any chance there is some remnant of Java 1.5 hiding somewhere in this VM? How would I examine any environment variables related to java that may have been defined when Java was installed (it would have to be the installer as I did not define any).
Thanks
Ted For compiling the version of javac (not java) matters, if you have it not installed go and install openjdk-devel (java-1_7_0-openjdk-devel). The 1.5 you see is probably a version of gcj. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 05/01/2013 02:21 PM, Martin Helm wrote:
Is there any chance there is some remnant of Java 1.5 hiding somewhere
- on my openSUSE 12.3 : response to command : # rpm -qa java* is : ___ java-1_7_0-openjdk-1.7.0.6-8.8.1.i586 java-ca-certificates-1-21.1.1.noarch java-1_7_0-openjdk-devel-1.7.0.6-8.8.1.i586 ............... however, response to command : # locate java | grep 1.5 is : ___ /usr/lib/java-1.5.0 /usr/lib/jvm-exports/java-1.5.0-gcj-4.5-1.5.0.0 /usr/lib/jvm-exports/java-1.5.0-gcj-4.5-1.5.0.0/jaas-1.5.0.0.jar .......... best regards -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Thanks Martin and ellanios82, I had assume d that installing openjdk gave me the JDK, and had not read the description, which I now see says that it gives you only the JRE. I have now installed the openjdk-devel, and now all seems OK. Thanks Ted -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
ellanios82
-
Martin Helm
-
Ted Byers