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

Discussion in 'Software' 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 help..
    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. javaguy@sbcglobal.net
    Replies:
    1
    Views:
    2,417
    Walter Roberson
    Dec 9, 2004
  2. emerald
    Replies:
    3
    Views:
    12,799
    The Modfather
    May 14, 2006
  3. Stanly1
    Replies:
    0
    Views:
    2,460
    Stanly1
    Sep 22, 2006
  4. prakash.nmsp@gmail.com

    Exception in thread "main" java.lang.NoClassDefFoundError:

    prakash.nmsp@gmail.com, Jun 29, 2007, in forum: Software
    Replies:
    0
    Views:
    1,506
    prakash.nmsp@gmail.com
    Jun 29, 2007
  5. gopinath511
    Replies:
    0
    Views:
    2,055
    gopinath511
    Jan 7, 2009
Loading...

Share This Page