NoClassDefFoundError - jar file in class path


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: NoClassDefFoundError - jar file in class path

Hybrid View

  1. #1
    Mxc Guest

    NoClassDefFoundError - jar file in class path


    Hi all,

    I have an app that makes use of the sun.jdbc.rowset.BaseRowset class via
    the CachedRowset class. In the ide I link the rowset.jar file as an external
    library that I use and the programme compiles and runs fine. When I create
    a jar file the jvm complains:

    NoClassFoundError: sun/jdbc/rowset/BaseRowset

    I have checked and recehced the classpath variable and it all looks OK. i.e.
    C:\eclipse\rowset.jar

    What else can I look for to solve this problem?

    Thanks
    Mark


  2. #2
    mxc Guest

    Re: NoClassDefFoundError - jar file in class path


    Oops that should be when I run the jar file it crashes. I can create the jar
    file just fine.


    "Mxc" <java.@127.0.0.1> wrote:
    >
    >Hi all,
    >
    >I have an app that makes use of the sun.jdbc.rowset.BaseRowset class via
    >the CachedRowset class. In the ide I link the rowset.jar file as an external
    >library that I use and the programme compiles and runs fine. When I create
    >a jar file the jvm complains:
    >
    >NoClassFoundError: sun/jdbc/rowset/BaseRowset
    >
    >I have checked and recehced the classpath variable and it all looks OK.

    i.e.
    >C:\eclipse\rowset.jar
    >
    >What else can I look for to solve this problem?
    >
    >Thanks
    >Mark
    >



  3. #3
    Luc Van Overveldt Guest

    Re: NoClassDefFoundError - jar file in class path


    I also had something like this but it failed on ArrayList in the jar.rt.
    I managed to trace it back to a mismatch ove java versions . My code used
    1.4 . The java link in the bin dir of the machine (it was a Sun) kicked off
    1.3 . I got a NoClassFoundError , that's it. I managed to solve it by referring
    to the correct java exe in the 1.4 JRE bin dir

    I may have seen a different problem but I just wanted to pass it on to you



    "Mxc" <java.@127.0.0.1> wrote:
    >
    >Hi all,
    >
    >I have an app that makes use of the sun.jdbc.rowset.BaseRowset class via
    >the CachedRowset class. In the ide I link the rowset.jar file as an external
    >library that I use and the programme compiles and runs fine. When I create
    >a jar file the jvm complains:
    >
    >NoClassFoundError: sun/jdbc/rowset/BaseRowset
    >
    >I have checked and recehced the classpath variable and it all looks OK.

    i.e.
    >C:\eclipse\rowset.jar
    >
    >What else can I look for to solve this problem?
    >
    >Thanks
    >Mark
    >



  4. #4
    MarkN Guest

    Re: NoClassDefFoundError - jar file in class path


    What is your OS? How are you running the jar file? I never trust the system
    classpath for anything.


    "mxc" <mxc@NOJUnkMail.co.za> wrote:
    >
    >Oops that should be when I run the jar file it crashes. I can create the

    jar
    >file just fine.
    >
    >
    >"Mxc" <java.@127.0.0.1> wrote:
    >>
    >>Hi all,
    >>
    >>I have an app that makes use of the sun.jdbc.rowset.BaseRowset class via
    >>the CachedRowset class. In the ide I link the rowset.jar file as an external
    >>library that I use and the programme compiles and runs fine. When I create
    >>a jar file the jvm complains:
    >>
    >>NoClassFoundError: sun/jdbc/rowset/BaseRowset
    >>
    >>I have checked and recehced the classpath variable and it all looks OK.

    >i.e.
    >>C:\eclipse\rowset.jar
    >>
    >>What else can I look for to solve this problem?
    >>
    >>Thanks
    >>Mark
    >>

    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center