How I Learned to Stop Worrying and Love Eclipse

May 30, 2008 at 2:19 am 4 comments

How? I’m not here to tell you… because I don’t know yet, besides, this is not about Eclipse.

If you’ve spent the last week trying to make WebObjects+WOLips+Eclipse work on Ubuntu, like me, you’ve probably already tried following guides like this one, or this. After a while you find yourself staring at WOLips in Eclipse wondering why the frak does it not recognize all these delicious WebObjects frameworks you freshly extracted from XCode 2.5 with a 17″ Powerbook G4 that is still running good old 10.3.9. This might solve your problem…

This applies to: Ubuntu 8.04, Eclipse 3.3.2 w/ Java-1.5.0-sun, WOLips 3.3.5193, WebObjects 5.3.3 

If you open a few of the framework packages inside System/Library/Frameworks/ (they are really just folders), you’ll notice some of them have the directory:

DeliciousWebObjects.framework/Resources

DeliciousWebObjects.framework/WebServerResources

You might have noticed that these Are the frameworks that actually show up in WOLips. Now look at other ones, you see these have a different structure, instead of the above two folders, you got:

AtrociousJDBC.framework/Versions/A/

then within folder A/ you find the regular:

AtrociousJDBC.framework/Versions/A/Resources

AtrociousJDBC.framework/Versions/A/WebServerResources

Strange eh? Did the different structure confuse WOLips? Now if you are curious, go back to that powerbook and look at the original frameworks on OS X, you’ll see there are softlinks at root of framework folder that point to Resources and WebServerResources directly.

To what purpose Apple decided to package their frameworks this way I have little clue, but after you copied it from OS X (HFS+) to Ubuntu (ext3 I think), the softlinks are, after some file system shuffling, all gone, rendering the framework beyond recognition to WOLips. At this point the solution is obvious, move the resources folders back to the root of framework, or remake all the softlinks.

After you did that, WOLips will happily load the frameworks, and you can finally build WebObjects Hello World app, and go on resolving references in Web-CAT sources…

~ Qi

Advertisements

Entry filed under: WebObjects. Tags: , , , , .

Bitten by the Version Bug SVN, My best friend

4 Comments Add your own

  • 1. Geofrey  |  May 30, 2008 at 3:30 am

    I see what you did there with the numbers 😉

    Reply
  • 2. Qi  |  May 30, 2008 at 3:40 am

    But come come, what Do you Mean the numbers? what numbers?

    Reply
  • 3. Dmitri  |  May 30, 2008 at 4:48 am

    Bonus points for the Dr. Strangelove reference.

    Reply
  • 4. The Third Bit » Blog Archive » Three Weeks In  |  June 1, 2008 at 4:35 pm

    […] Flores and Qi Yang (Eclipse Web-CAT Plugin): whoo boy, isn’t WebObjects fun? And trying to get a compatible mix of versions of various packages? Woo […]

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Time Machine

May 2008
M T W T F S S
    Jun »
 1234
567891011
12131415161718
19202122232425
262728293031  

RSS Qi’s Utterances

  • An error has occurred; the feed is probably down. Try again later.

%d bloggers like this: