Version 1.1 by Pascal Robert on 2012/02/05 06:18

Show last authors
1
2 \\This page is designed to be a ground floor installation procedure for installing Project Wonder, including: Eclipse, WebObjects and the WOlips plugin.  This guide assumes OSX Lion (10.7), the instructions are the same for Snow Leopard (10.6).
3
4 There are four sections to this installation process.
5
6 == **Step 1:  Install the latest version of Eclipse** ==
7
8 {{note}}
9 If you already have Eclipse installed, you may skip this step.
10 {{/note}}
11
12 Head over to the Eclipse Foundation and [[download>>http://eclipse.org/downloads/]] the latest version of Eclipse suitable for your OS X version.  
13
14 Eclipse does not install as a package, rather it is simply a compressed archive.  Installation is as simple as extracting the Eclipse folder, entering it and running the Eclipse executable.  In this context, it is important to remember where the folder resides on your system for future use.
15
16 {{note}}
17
18 It is important to run the Eclipse executable at this time.  Lion will prompt you to install Java Runtime (if it is not already installed), which is required for the next step.  Snow Leopard comes with Java runtime installed
19 \\
20
21 {{/note}}
22
23 **{+}Video of Step 1:+**
24
25 {{multimedia name="WOInstallPart1.mov"}}{{/multimedia}}
26
27 == **Step 2:  Install WOlips plugin and the WebObjects Framework** ==
28
29 1. h5. Install WOLips Plugin
30
31 Currently you have a stock Eclipse installation which will allow you to do normal Java development, but it does not contain any of the WOLips plugins, so you will not have any of the WebObjects development tools. To begin your WOLips installation, from within Eclipse, select **Help** => **Install New Software...**
32 [[image:InstallNewSoftware.png||border="1"]]
33 This opens the "Install" panel where you can specify sites for Eclipse to download new software features. This dialog allows you to add/inspect any software features you have downloaded or were included in your default install of Eclipse. You can click "Available Software Sites" to see what was included by default.
34 [[image:InstallPanel.png||border="1"]]
35
36 1.
37 11. To install WOLips you will need to add the WOLips update site to Eclipse. You do this by clicking the "Add" button.  In the Name field you can enter a name for your update site. The name is arbitrary but since you could have multiple similar update sites you should give it a name that leaves no doubt about what it is.
38 [[image:AddWOLipsSite.png||border="1"]]
39 In the Location field, enter one of the following URLs:
40 11*. **Stable**: (For Eclipse 3.6) [[http://webobjects.mdimension.com/hudson/job/WOLips36Stable/lastSuccessfulBuild/artifact/site/]]
41 11*. **Current**: (For Elipse 3.7) [[http://webobjects.mdimension.com/hudson/job/WOLips37Current/lastSuccessfulBuild/artifact/site/]]
42 11. You are returned to the "Install" panel, the WOLips site having been added to the list, and fully expanded to display all its offerings. Select features you want. If you're just getting started with WOLips you should select "WOLips" and "WOLips Goodies." Leave the other options until you are more familiar with Eclipse and WOLips and decide that you need them. (Here are some [[WO:Other WOLips Install Options]].)  After selecting the options you want, click "Next." You'll briefly see a progress bar while Eclipse "calculates requirements and dependencies."
43 [[image:SelectFeatures.png||border="1"]]
44 11. You'll see an "Install" panel, asking you to Review and Confirm selected items to be installed.
45 [[image:InstallConfirm.png||border="1"]]
46 11. Click **Next >**. The next dialog contains the license agreements for the selected features. After reviewing the agreements (you DO review your license agreements, right :-)  ), select "I accept the terms of the license agreement." Selecting this radio button will accept the license agreements for **all** of the features listed. Click **Finish** to continue. You may also get a warning about "unsigned content." Click "OK" to dismiss that dialog and continue the install.
47 [[image:LicenseConfirm.png||border="1"]]
48 11. Eclipse will now download and install all the selected features and plugins. When it has completed, it will prompt you to restart Eclipse. Select "Restart Now."
49 [[image:restart.png||border="1"]]
50
51 ===== 2.  Install the WebObjects Framework =====
52
53 Once the WOlips plugin is installed, perform the following terminal commands:
54
55 {{code}}
56
57 $ sudo mkdir -p /Developer/Versions/WebObjects543
58 $ curl -O http://webobjects.mdimension.com/wolips/WOInstaller.jar
59 $ sudo java -jar WOInstaller.jar 5.4.3 /Developer/Versions/WebObjects543
60
61 {{/code}}
62
63 **{+}Video of Step 2:+**
64
65 {{multimedia name="WOInstallPart2.mov"}}{{/multimedia}}
66
67 == **Step 3:  Link the Framework to WOlips through the properties configuration file** ==
68
69 {{note}}
70 Prerequisite: Eclipse with the WOlips plugin installed, and the WebObjects framework via step 2.
71 {{/note}}
72
73 This is the most intricate step in the installation process.  The configuration file found in the WOlips preferences must correctly reference the framework directory structure.  Failure to successfully complete this step will result in broken libraries.
74
75 Running the script from step 2 installs the WO framework to the /Developer/WebObjects543 directory on your system. Below is the contents for a configuration file that matches this setup.  Create a new file called wolips.543.properties.  Copy the code below (after modification) into that file.
76
77 {{note}}
78
79 You must replace <YOUR_USER_NAME_HERE\!> with your the username which installed the framework.
80
81 {{/note}}
82
83 {{code}}
84
85 wo.system.root=/Developer/Versions/WebObjects543/System
86 wo.user.frameworks=/Users/<YOUR_USER_NAME_HERE!>/Library/Frameworks
87 wo.system.frameworks=/Developer/Versions/WebObjects543/System/Library/Frameworks
88 wo.bootstrapjar=/Developer/Versions/WebObjects543/System/Library/WebObjects/JavaApplications/wotaskd.woa/WOBootstrap.jar
89 wo.network.frameworks=/Network/Library/Frameworks
90 wo.api.root=/Developer/ADC%20Reference%20Library/documentation/WebObjects/Reference/API
91 wo.network.root=/Network
92 wo.extensions=/Developer/Versions/WebObjects543/Library/WebObjects/Extensions
93 wo.user.root=/Users/<YOUR_USER_NAME_HERE!>
94 wo.local.frameworks=/Developer/Versions/WebObjects543/Library/Frameworks
95 wo.dir.local.library.frameworks=/Developer/Versions/WebObjects543/Library/Frameworks
96 wo.apps.root=/Developer/Versions/WebObjects543/Library/WebObjects/Applications
97 wo.local.root=/Developer/Versions/WebObjects543
98 wo.dir.user.home.library.frameworks=/Users/<YOUR_USER_NAME_HERE!>/Library/Frameworks
99
100 {{/code}}
101
102 Place this file in /Library/Application Support/WOLips, this directory should already exist and contain the default wolips.properties file.
103
104 The second part of this step is to link the WOlips plugin with the WO framework installed on your system. &nbsp;This is done through the tab found at Eclipse menu > Preferences > WOlips.
105
106 [[image:Properties.png||border="1"]]
107
108 {{note}}
109 It is important to realize that if you change the WOlips Properties File to "wolips.543.properties" and then hit "apply" it will write out the (now stale) field values to that file. &nbsp;This could potentially clobber your new wolips.543.properties file with the default&nbsp;values. &nbsp;If you suspect this has happened, close the WOlips preferences and inspect the wolips.543.properties file.
110
111 {{/note}}
112
113 Change the "WOlips Properties File" to wolips.543.properties and click OK.&nbsp;
114
115 At this point, you should have a functioning WebObjects platform to work with, visit <hello world link> to test your first WebObjects application.
116
117 **{+}Video of Step 3:+**
118
119 {{multimedia name="WOInstallPart3.mov"}}{{/multimedia}}
120
121 == Step 4: &nbsp;Import Project Wonder into your Eclipse workspace ==
122
123 &nbsp;Please follow this guide: &nbsp;[[Getting the Wonder Source Code>>http://wiki.objectstyle.org/confluence/display/WONDER/Getting+the+Wonder+Source+Code]], which includes the page for [[importing the Project Wonder source>>http://wiki.objectstyle.org/confluence/display/WONDER/Working+with+Wonder+source+in+Eclipse]]&nbsp;into your Eclipse workspace.
124
125 {{note}}
126
127
128 Project Wonder is a significant part of the WebObjects experience. &nbsp;Where the previous step seems to give new users the most grief now, this step will give you the most pleasure when working with WebObjects.
129
130 {{/note}}
131
132 **{+}Video of Step 4:+**
133
134 {{multimedia name="WOInstallPart4.mov"}}{{/multimedia}}
135
136 \\
137
138 At the end of this step, you will have Project Wonder imported into Eclipse under its own working set. &nbsp;If you are unfamiliar with working sets in Eclipse, the following video will help clarify. &nbsp;This video also demonstrates a "Hello World" project creation to validate proper installation.
139
140 {{multimedia name="WOInstall_WorkspaceAndHelloWorld.mov"}}{{/multimedia}}
141
142
143 \\&nbsp;&nbsp;