JAVA ERROR-URGENT: java.lang.ClassFormatError: oracle/jdbc/ttc7/TTC7Protocol

Discussion in 'Java' started by Shalz, Mar 8, 2008.

  1. Shalz

    Shalz

    Joined:
    Feb 25, 2008
    Messages:
    1
    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 reply..
    Thanks.....
     
    Shalz, Mar 8, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. vizlab
    Replies:
    3
    Views:
    7,410
    satya
    Aug 26, 2007
  2. hiwa
    Replies:
    1
    Views:
    595
    Ryan Stewart
    Dec 29, 2004
  3. Betty
    Replies:
    1
    Views:
    9,871
    Juha Laiho
    May 21, 2005
  4. arashamiri@hotmail.com
    Replies:
    3
    Views:
    2,559
    arashamiri@hotmail.com
    Nov 9, 2005
  5. gwinsor
    Replies:
    1
    Views:
    649
    timjowers
    Jul 2, 2007
Loading...

Share This Page