JDBC exception


Hii …
I installed JDBC … but when i try to run the example (java -classpath example.jar:$CLASSPATH org.scidb.JDBCExample)
I got this error :

the SSH and SciDB is running…

I am using scidb 14.12, ubuntu 12.04 protobuf-java-2.6.1



What is your Java version:
java -version
14.12 oficially supports java 1.6 only.


Hello, Thank you for the quick reply

I am using java version "1.7.0_75"
OpenJDK Runtime Environment (IcedTea 2.5.4) (7u75-2.5.4-1~precise1)
OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)

Sooo … Do u think i have to remove the java 1.7 to and install 1.6 ?


You may not necessarily need to remove java 1.7. It is possible to have both java versions on the machine. You just need to ensure that when you type “java” or “javac” on your command prompt, the correct version of java gets invoked.



I changed my java alternatives :

java version "1.6.0_34" OpenJDK Runtime Environment (IcedTea6 1.13.6) (6b34-1.13.6-1ubuntu0.12.04.1) OpenJDK 64-Bit Server VM (build 23.25-b01, mixed mode)

but still have the same problem!!!

Do u think that there is a conflict with protobuf ??


I just checked - we use protobuf version 2.4.1-2:

protobuf.x86_64 2.4.1-2 @scidb3rdparty
protobuf-compiler.x86_64 2.4.1-2 @scidb3rdparty
protobuf-devel.x86_64 2.4.1-2 @scidb3rdparty
protobuf-java.noarch 2.4.1-2 @scidb3rdparty

The above is for CentOS. Here is Ubuntu 12.04 data:

ii libprotobuf-dev 2.4.1-1ubuntu2 protocol buffers C++ library (development files)
ii libprotobuf-java 2.4.1-1ubuntu2 Java bindings for protocol buffers
ii libprotobuf-lite7 2.4.1-1ubuntu2 protocol buffers C++ library (lite version)
ii libprotobuf7 2.4.1-1ubuntu2 protocol buffers C++ library
ii protobuf-compiler 2.4.1-1ubuntu2 compiler for protocol buffer definition files


I used the protobuf-java-2.4.1 and it works perfectly
Thank u very much :smiley: