• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Common library, how to
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Common library, how to


  • Subject: Common library, how to
  • From: Dev WO <email@hidden>
  • Date: Mon, 23 Jan 2006 12:08:50 +0100

Hi list,
this is really a beginner question...most probably because I'm still a beginner;)


I'd like to share some code between different applications, so I was thinking about creating "something" that would holds my shared code.
So here's a few question if someone can point me to the correct resource or give me the answer:
-Which type of project should I choose: a "WebObject Framework" or an "Ant-based Java Library"? I'm pretty sure there's different goal using one or the other, but I don't actually get all of them
-Where could I found a beginner "how to" about this?


Here's what I tried so far, creating an ant-based java library:
I wanted to use some of Apache Commons Lang method, so I imported "import org.apache.commons.lang.*;"
but when I try to use the method, it doesn't compile saying the method doesn't exist...But I'm actually using them directly in my WO application and it works.


So I tried copying the entire method inside my own code to see if it would work, but it won't compile!
If I add the entire Java file from Commons Lang, it fails compiling only on my own class, and not on the Apache one...I only copied and pasted!



So I may not doing it the correct way:(

Can someone point me to some resources about creating java libraries (ideally using Xcode;))?

Thanks a lot

Xavier

_______________________________________________
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


  • Follow-Ups:
    • Re: Common library, how to
      • From: Gavin Eadie <email@hidden>
    • Re: Common library, how to
      • From: "Jerry W. Walker" <email@hidden>
  • Prev by Date: Re: Database handling in Deployment
  • Next by Date: Implementing an ordered tree
  • Previous by thread: Re: Database handling in Deployment
  • Next by thread: Re: Common library, how to
  • Index(es):
    • Date
    • Thread