Re: Problem running from Eclipse
Re: Problem running from Eclipse
- Subject: Re: Problem running from Eclipse
- From: Aaron Rosenzweig via Webobjects-dev <email@hidden>
- Date: Mon, 27 Jan 2020 13:34:10 -0500
Hi Valerio,
It’s that the error complained about not finding NSCoding which should be in
JavaFoundation. Oh… but you know… there is a WebServerResources version that
you do not want. Gotta be sure you got the right jar.
You want something like:
/Library/WebObjects/Versions/WebObjects543/System/Library/Frameworks/JavaFoundation.framework/Resources/Java/javafoundation.jar
AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/>
e: email@hidden <mailto:email@hidden> t: (301) 956-2319
> On Jan 27, 2020, at 1:29 PM, Valerio Luccio <email@hidden> wrote:
>
> Not sure what you're suggesting. I tried removing the JavaFoundation and add
> it back in the configure build path, didn't give me any errors in the
> build, but when I try to run it I got the same error.
>
> I thinks it's clear that the path is screwed up somehow, but I can't figure
> out where.
>
> On 1/27/20 10:35 AM, Aaron Rosenzweig wrote:
>
>> Hey Valerio,
>>
>> That sheds some light… did you upgrade to Catalina or other OS changes? Many
>> people got burned by Catalina moving directories under root to other
>> locations messing up your class path. It’s very possible that your beans
>> were arranged above your frank without you knowing… just by an OS upgrade.
>>
>> In other words, it can find the magic locations for your frameworks anymore.
>> “Configure build path” and see if things are read and need to be re-mapped.
>> AARON ROSENZWEIG / Chat 'n Bike
>> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.chatnbike.com&d=DwMFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=zZK0dca4HNf-XwnAN9ais1C3ncS0n2x39pF7yr-muHY&m=bRvHvGoIE939lB-I22_KxvKkW3ZMv0zUs8X5LpWJgJM&s=y3LkTL0h31RLWNB0rwny6icU-m6hISpKWjcsWFPJwcA&e=>
>> e: email@hidden <mailto:email@hidden> t: (301) 956-2319
>>
>>
>>> On Jan 27, 2020, at 10:31 AM, Valerio Luccio <email@hidden
>>> <mailto:email@hidden>> wrote:
>>>
>>> Thanks for the reply.
>>>
>>> I started that project about 15 years ago and the last time I fired it up
>>> successfully from Eclipse was in September. Then in December, without
>>> changing anything in the project, I could not do it anymore.
>>>
>>> The JavaFoundation.framework in my path is
>>> /Library/WebObjects/Versions/WebObjects543/System/Library/Frameworks and
>>> NSCoding is definitely there.
>>>
>>> I guess I'll have to try reinstalling Eclipse (sigh).
>>>
>>> On 1/23/20 11:17 PM, Aaron Rosenzweig wrote:
>>>
>>>> Sorry Valerio, 6 weeks is a long time indeed - you’ve been patient.
>>>>
>>>> JNI has to do with Java making calls to a C library. That’s the “native
>>>> method” part.
>>>>
>>>> If it were me, I’d trash Eclipse and start over. I know that’s not what
>>>> you want to hear but…
>>>>
>>>> Hmm… thinking some more…
>>>>
>>>> “NSCoding” lives inside the “JavaFoundation.framework” from Apple. Do you
>>>> have that framework included in your project? Can you find it when you
>>>> “configure build path” for your project?
>>>> AARON ROSENZWEIG / Chat 'n Bike
>>>> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.chatnbike.com&d=DwMFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=zZK0dca4HNf-XwnAN9ais1C3ncS0n2x39pF7yr-muHY&m=zNRTRtL2oKMEEiIf7TZw6uoVu7OjEorP2LTNGIVQQ8I&s=CJPoFIXrpAoGaeUPBMEl0iEevpJ6LnRfeG-05Aqm6VI&e=>
>>>> e: email@hidden <mailto:email@hidden> t: (301) 956-2319
>>>>
>>>>
>>>>> On Jan 23, 2020, at 2:24 PM, Valerio Luccio via Webobjects-dev
>>>>> <email@hidden <mailto:email@hidden>>
>>>>> wrote:
>>>>>
>>>>> 6 Weeks ago I sent this message, but got no replies. Really nobody has
>>>>> any clue ?
>>>>>
>>>>> btw: I get the same using a simple example app and trying from a clean
>>>>> workspace.
>>>>>
>>>>> On 12/9/19 2:23 PM, Valerio Luccio wrote:
>>>>>
>>>>>> Hello all,
>>>>>>
>>>>>> I have Eclipse Mars.2 running on a Mac with Mojave with JavaSE 1.8. I
>>>>>> hadn't fired up my web app from Eclipse in a couple of months and today,
>>>>>> without having any major changes to the O/S, when I tried I got:
>>>>>>
>>>>>> Error: A JNI error has occurred, please check your installation and try
>>>>>> again
>>>>>> Exception in thread "main" java.lang.NoClassDefFoundError:
>>>>>> com/webobjects/foundation/NSCoding
>>>>>> at java.lang.ClassLoader.findBootstrapClass(Native Method)
>>>>>> .....
>>>>>> I find this message terribly vague. What should I be looking for ?
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> --
>>>>>> Valerio Luccio (212) 998-8736
>>>>>> Center for Brain Imaging 4 Washington Place, Room 157
>>>>>> New York University New York, NY 10003
>>>>>>
>>>>>> "In an open world, who needs windows or gates ?"
>>>>>
>>>>>
>>>>> --
>>>>> Valerio Luccio (212) 998-8736
>>>>> Center for Brain Imaging 4 Washington Place, Room 157
>>>>> New York University New York, NY 10003
>>>>>
>>>>> "In an open world, who needs windows or gates ?"
>>>>> _______________________________________________
>>>>> Do not post admin requests to the list. They will be ignored.
>>>>> Webobjects-dev mailing list (email@hidden
>>>>> <mailto:email@hidden>)
>>>>> Help/Unsubscribe/Update your Subscription:
>>>>>
>>>>> <https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.apple.com_mailman_options_webobjects-2Ddev_aaron-2540chatnbike.com&d=DwMFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=zZK0dca4HNf-XwnAN9ais1C3ncS0n2x39pF7yr-muHY&m=zNRTRtL2oKMEEiIf7TZw6uoVu7OjEorP2LTNGIVQQ8I&s=tahru65z6JPxcM4IPpTjhtvuptpIVz_bLWVeh6Lhvfg&e=>
>>>>>
>>>>> This email sent to email@hidden <mailto:email@hidden>
>>>>
>>>
>>>
>>> --
>>> Valerio Luccio (212) 998-8736
>>> Center for Brain Imaging 4 Washington Place, Room 157
>>> New York University New York, NY 10003
>>>
>>> "In an open world, who needs windows or gates ?"
>>
>
>
> --
> Valerio Luccio (212) 998-8736
> Center for Brain Imaging 4 Washington Place, Room 157
> New York University New York, NY 10003
>
> "In an open world, who needs windows or gates ?"
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden