Last modified by Pascal Robert on 2010/09/19 10:26

From version 13.1
edited by Pascal Robert
on 2007/12/22 21:28
Change comment: There is no comment for this version
To version 12.1
edited by Pascal Robert
on 2007/12/22 20:32
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,20 +1,34 @@
1 -{{warning}}
1 +== Third Party Jars with Eclipse/WOLips ==
2 2  
3 +=== Problem ===
3 3  
4 -First, a word of warning: DO NOT PUT YOUR JARS INTO /Library/WebObjects/Extensions/ !. You're heading for deployment and classpath problems if you do that.
5 +You're using Eclipse, and you'd like to use one or more third party JAR files in your project.
5 5  
7 +=== Solution ===
8 +
9 +{{warning}}
10 +
11 +First a word of warning: DO NOT PUT YOURS JARS INTO _/Library/WebObjects/Extensions/_!. You're heading for deployment and classpath problems if you do that.
12 +
6 6  {{/warning}}
7 7  
8 -== Third Party Jars with Eclipse/WOLips ==
15 +It's really easy to add third party jars into your WOLips project. Add your third party JARs by dragging the JARs from the Finder to the //Libraries// folder of your Eclipse project.
9 9  
10 -=== Problem ===
17 +Next step: right-click on the JAR in Eclipse and select //Build Path// -> //Add To Build Path//. The JAR should now be visible in //Referenced Libraries//.
11 11  
12 -You're using Eclipse, and you'd like to use one or more third party JAR files in your project.
19 +This solves the problem of adding JARs for development. For deployment, what do you need to do ? If you put your JARs into the //Libraries// folders, the Ant build system will put the JARs into your .woa (or .framework). If you put your JARs in another folder, you need to modify the //build.xml// file. Locate this part:
13 13  
14 -=== Solution ===
21 +{{code}}
15 15  
16 -Check out the [[tutorial>>http://wiki.objectstyle.org/confluence/display/WOL/Add+a+Jar+Dependency]] on how to do it with WOLips.
23 + <lib dir="Libraries">
24 + <include name="*.jar"/>
25 + <exclude name="**/*.woa/**"/>
26 + </lib>
17 17  
28 +{{/code}}
29 +
30 +Copy and paste this action and replace //Libraries// with the folder containing your JARs.
31 +
18 18  == Third Party Jars with Xcode ==
19 19  
20 20  === Problem ===