JDBC exception


#1

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

Regards
Oraib


#2

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


#3

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 ?


#4

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.


#5

hello

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 ??


#6

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


#7

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