Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Computer Discussion > Software > Java Error: java.lang.ClassFormatError: oracle/jdbc/ttc7/TTC7Protocol

Reply
Thread Tools

Java Error: java.lang.ClassFormatError: oracle/jdbc/ttc7/TTC7Protocol

 
 
Shalz Shalz is offline
Junior Member
Join Date: Feb 2008
Posts: 2
 
      03-08-2008
Hi all,

I am very new to java and facing a very strange issue.

I have written some code in java to connect to oracle database. The problem is that when I run the code in eclipse it runs fine with desired results but when create a FAt jar of the code and execute that jar then it gives me the below error:

java.lang.ClassFormatError: oracle/jdbc/ttc7/TTC7Protocol (Code segment has wrong length)
and some more lines---------------------

Well I am totally confused why its coming.
I am connecting to databases with load balancer. maube that's causing problem. Iam making connection through jdbc thin driver.

So, can you please guide me how to resolve this issue? its really urgent....
or can you guide me how to connect to database with loadbalancer......any driver etc.

Plz help..
Thanks.....
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hot Requirements: 1.Sr Java Developer,2.Java Developer (Java with EJB) Isaac Java 0 01-20-2011 08:41 PM
hey i am just started java,, can anyone tell me the use ,application, why java , importance of java.. manish sahu Java 3 02-14-2008 12:00 AM
[JAVA] [EVALUATION] - The Java Failure (Sorry: The Java(tm) Failure) Ilias Lazaridis Java 0 02-01-2005 10:32 AM
JAVA VIRTUAL MUCHINE OR SUN JAVA Fernando Kohan Firefox 1 11-14-2004 02:04 AM
Job to convert Java App 1.3.1 to Java Newest of Java Michael Kintner Java 0 11-30-2003 04:42 AM



Advertisments