Wiki source code of Working with the Jars in WebObjects Extensions
Version 25.1 by chuckhill on 2007/01/29 22:16
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | The jar files in ##/Library/WebObjects/Extensions## are automatically added to the classpath when a WebObjects application is launched from JavaMonitor or the command line. They are also added to the classpath by Xcode. To make running an application in Eclipse more closely match these other situations, create a **User Library** to match the jar files in **/Library/WebObjects/Extensions**. | ||
| 2 | |||
| 3 | To do this, go to Window - Preferences. No, I don't know why they put it under the Window menu. You may get an error the first time you do this. If this happens, close the Preferences window and open it again. Expand the tree on the left like this: | ||
| 4 | [[image:UserLibraries.jpg]] | ||
| 5 | |||
| 6 | |||
| 7 | \\Click **New** and enter **WebObjectsExtensions** as the library name: | ||
| 8 | [[image:LibraryName.jpg]] | ||
| 9 | |||
| 10 | |||
| 11 | \\Click **OK**, select **WebObjectsExtensions**, and click **Add Jars**. Select all the jars in **/Library/WebObjects/Extensions**. The result should look like this (you may not have this exact same set of jars but if you have followed the other instructions you should have the ones that are needed): | ||
| 12 | [[image:FinalLibraries.jpg]] | ||
| 13 | |||
| 14 | {{warning title="Watch for Updates"}} | ||
| 15 | |||
| 16 | This is a *static* list of jars. If anything is added to or modified in */Library/WebObjects/Extensions*, you will need to manually edit this User Library. | ||
| 17 | |||
| 18 | {{/warning}} |