Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: java.lang.ExceptionInInitializerError



That's exactly the error David reported a few months ago. So, since he
figured out what to do I imagine it's solvable. He never said *exactly* what
he did but here is what he wrote (it sounds simple enough):
> After reviewing the old release notes for InstantDB I had noticed the comment
> "The Java Transaction API jar file is now included in the InstantDB download.
> ". The jar file was in the SDK and after adding it to the path everything
> works correctly with the latest version of InstantDB and WITHOUT having to
> download J2EE.

And it seems clear why this fails:
> But the other gets
> [localhost:~/Applications/idb3_26_0/Classes] mjh% javap -classpath
> jta-spec1_0_1.jar javax.transaction.xa.XAException.class
> Class 'javax.transaction.xa.XAException.class' not found
You need to lose the ".class" on the end AFAIK. If you look at your example
that worked, there is no .class:
> One looks good javap...
> [localhost:~/Applications/idb3_26_0/Classes] mjh% javap -classpath
> jta-spec1_0_1.jar javax.transaction.xa.XAResource
> Compiled from XAResource.java

How are you trying to package or run this? Scripts? Project Builder?

If this is major heartburn for you, tell me what you're trying to do in more
detail and I'll see if I can get it to work and give you some instructions.
You may have posted this early on but I don't have the info. You're probably
just making a simple mistake some where.

Ron
_______________________
Ronald Guest
Pepsan & Associates, Inc. Creating Pathways to Excellence
email@hidden
http://www.pepsan.com
_______________________

Knowing is not enough; we must apply. Willing is not enough; we must do -
Johann Wolfgang von Goethe

On 5/31/01 9:47 PM, "Michael Hall" <email@hidden> wrote:

> The errors I'm seeing seem related to this jar. I'll try to trim some of
> it. After other errors I could probably figure out I get this.
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> javax/transaction/xa/XAException
> at org.enhydra.instantdb.db.Database.dbOpen(Database.java:311)


References: 
 >Re: java.lang.ExceptionInInitializerError (From: Michael Hall <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.