Changes for page WO 5.4 Getting Started
Last modified by D Tim Cummings on 2013/06/14 16:27
From version 56.1
edited by Pascal Robert
on 2007/11/29 13:44
on 2007/11/29 13:44
Change comment:
There is no comment for this version
To version 58.1
edited by Pascal Robert
on 2007/11/29 13:45
on 2007/11/29 13:45
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -2,7 +2,7 @@ 2 2 3 3 Apple has converted their WebObjects examples in the Eclipse format, but no documentation is provided on how to import them into Eclipse. The examples are in ///Developer/Examples/JavaWebObjects//. 4 4 5 -The first step is: install Eclipse and WOLips :-) 5 +The first step is: install Eclipse and WOLips :-) 6 6 7 7 Some examples needs Derby, an embedded Java database (OpenBase is not included with WO anymore). To install the databases, you have to do: 8 8 ... ... @@ -14,26 +14,39 @@ 14 14 {{/code}} 15 15 16 16 Now, you can import the examples into Eclipse. Start Eclipse, select //File// > //Import//, 17 - [[image:ImportMenu.png]] 18 - 17 + 18 +[[image:ImportMenu.png]] 19 + 19 19 and select //General// > //Existing Projects// into Workplace. 20 20 21 21 [[image:ImportGeneral.png]] 22 - 23 -On the next page, select //Select root directory// and browse your disk to ///Developer/Examples/JavaWebObjects//. You should see a list of projects to import. Deselect the second //javaeoutil// project, or else you won't be able to import the projects. [[image:ImportProjectsList.png]] 24 24 25 -After the importation is done, you should see the projects in the WO Package Explorer. If you see the projects in Package Explorer (without "WO" in the name), that means that you are using the Java perpective instead of the WOLips perpective. Switch the perpective to WOLips. [[image:PackageExplorer.png]] 26 - 27 -Now, you need to fix the examples, because the build path is pointing to the source projects of the WO frameworks, source that nobody outside Apple has access to :-)For each project, right-click on each project, select //Build Path// > //Configure Build Path...// [[image:BuildPathMenu.png]] 28 - 29 -Click on the //Projects// tab, select the references to the WO frameworks that have the Warning icon and click //Remove//. [[image:ConfigureBuildPath.png]] 30 -Click on the //Libraries// tab, click the //Add Library// button. Select //WebObjects Frameworks// and click //Next//. [[image:AddLibrary.png]] 31 - 24 +On the next page, select //Select root directory// and browse your disk to ///Developer/Examples/JavaWebObjects//. You should see a list of projects to import. Deselect the second //javaeoutil// project, or else you won't be able to import the projects. 25 + 26 +[[image:ImportProjectsList.png]] 27 + 28 +After the importation is done, you should see the projects in the WO Package Explorer. If you see the projects in Package Explorer (without "WO" in the name), that means that you are using the Java perpective instead of the WOLips perpective. Switch the perpective to WOLips. 29 + 30 +[[image:PackageExplorer.png]] 31 + 32 +Now, you need to fix the examples, because the build path is pointing to the source projects of the WO frameworks, source that nobody outside Apple has access to :-)For each project, right-click on each project, select //Build Path// > //Configure Build Path...// 33 + 34 +[[image:BuildPathMenu.png]] 35 + 36 +Click on the //Projects// tab, select the references to the WO frameworks that have the Warning icon and click //Remove//. 37 + 38 +[[image:ConfigureBuildPath.png]] 39 + 40 +Click on the //Libraries// tab, click the //Add Library// button. Select //WebObjects Frameworks// and click //Next//. 41 + 42 +[[image:AddLibrary.png]] 43 + 32 32 Click //System//, open the triangle next to //System// and make sure that //JavaEOAccess//, //JavaEOControl//, //JavaFoundation//, //JavaWebObjects//, //JavaWOExtensions// and //JavaXML// are selected. For //SchoolToolsClient//, you also need to add //JavaWebServicesSupport// and //JavaWebServicesClient// to the build path. For the //SchoolToolsServer//, you need to add //JavaWebServicesSupport//. 33 33 34 34 After you corrected the build path on a project, the project will rebuild itself and the errors shoud dissapear. 35 35 36 36 //JavaBusinessLogic// and //RelatedLinks// requires Apache Derby, but the path to Derby's JAR is wrong. Remove the JAR from the build path, click //Add External JARs...//, browse your disk up to ///Developer/Examples/JavaWebObjects/Databases/db-derby-10.2.2.0-bin/lib// and select //derby.jar//. The build path should look like this: 49 + 37 37 [[image:GoodDerbyPath.png]] 38 - 51 + 39 39 VoilĂ You finally can run the examples.