An incompatible Java version has been detected
When we start-up smartsvn, we got the foolowing response from the smartsvn.sh script: selfbank@debian:~/dl/smartsvn-7_0_7/bin$ export SMARTSVN_JAVA_HOME=/usr selfbank@debian:~/dl/smartsvn-7_0_7/bin$ ./smartsvn.sh Disabling SSE42Intrinsics to work around bug 6875866. An incompatible Java version has been detected which has been reported to cause strange bugs. Aborting now. To force SmartSVN to use this Java version, set the VM property smartsvn.checkIncompatibleJava to false (use at your own risk). Please install the latest release of the SUN Java SE Runtime Environment (JRE) from: http://java.sun.com/javase/downloads/ or if it is already installed, make sure it is used. selfbank@debian:~/dl/smartsvn-7_0_7/bin$ which java /usr/bin/java selfbank@debian:~/dl/smartsvn-7_0_7/bin$ java -version java version "1.6.0_24" OpenJDK Runtime Environment (IcedTea6 1.11.4) (6b24-1.11.4-3) OpenJDK Server VM (build 20.0-b12, mixed mode) Like you see Java version "1.6.0_24" and openjdk-6-jre is installed and active. What can be wrong? Best Regards, Johan Vermeire Belgium
Johan, I've encountered this on other Linux distros, too, in using SmartSVN. As noted in the message generated when you attempt to start SmartSVN, it doesn't like the OpenJDK JRE. You have a couple of choices -- again, as noted in the message SmartSVN generates: 1. Install the Sun Java JRE and make sure the smartsvn.sh script used to start SmartSVN is pointed at it for its JRE. 2. Modify the smartsvn.sh script to set the smartsvn.checkIncompatibleJava=false I've run SmartSVN against the OpenJDK JRE in the recent past, and can offer at least anecdotal evidence that it works OK. That being said, however, I'd be very cautious about using it in a production environment given the warning against it. I'm sure Syntevo (as this dates back to prior to the current proprietors of SmartSVN) would not have included the logic to force this check without good reason. More recently, I've installed the Sun JRE for use as one of the Java alternatives specifically for SmartSVN (but I specifically do not enable the Web browser plugin -- another story altogether). Hope this helps. -- /ron
Ron, I've downloaded and installed the latest java jre package version "1.7.0_09". I've also ponted the JAVA_HOME environment variable to this java version. Now I can use the smartsvn.sh script to start up SmartSVN and it works. Thanks for your help, Johan Vermeire Belgium
JAVA_HOME environment variable Ron, I've downloaded and installed the latest java jre package version "1.7.0_09". I've also pointed the JAVA_HOME environment variable to this java version. Now I can use the smartsvn.sh script to start up SmartSVN and it works. Thanks for your help, Johan Vermeire Belgium
1-4 of 4
Reply to this discussion
You cannot edit posts or make replies: You should be logged in before you can post.