-
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
-
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
>
-
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
>
-
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
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks