Wiki source code of Usage for Windows

Version 27.1 by Quinton Dolan on 2008/04/11 02:07

Hide last authors
Gavin Eadie 17.1 1 {{warning}}
2
3 Work in progress
4
5 {{/warning}}
6
Pascal Robert 23.1 7 {{toc}}{{/toc}}
8
Gavin Eadie 17.1 9 = Moving the WebObjects frameworks from a Mac to a Windows machine =
10
Quinton Dolan 27.1 11 The WebObjects frameworks are part of the Xcode tools distribution (available on the Mac OS X DVD, or as a download from Apple, see below) which cannot be installed on a Windows (or any Linux/UNIX variant) machine directly. So, before developing on Windows, you will need to get access on a Mac, make a archive of the frameworks and move this archive to your Windows machine. You can extract the frameworks from XCode without having to install them on the intermediate Mac.
Gavin Eadie 17.1 12
Quinton Dolan 27.1 13 * Obtain Xcode 2.5 (if you want to work with WebObjects 5.3), or Xcode 3.0 (if you want to work with WebObjects 5.4) at [[ADC>>http://developer.apple.com/tools/download/]] ~-~- these are in the form of large (about 1 GB) disk images. Note that you will need to sign up for an ADC membership, but the "online" membership is free.
Gavin Eadie 17.1 14
Quinton Dolan 27.1 15 * Mount, on a Mac, the DMG file. Then, for XCode 2.5 / Mac OS X Tiger:
Gavin Eadie 17.1 16
17 {{code}}
18
19 cp /Volumes/Xcode\ Tools/Packages/Packages/WebObjectsRuntime.pkg/Contents/Archive.pax.gz /tmp
20 cd /tmp
Pascal Robert 23.1 21 unzip Archive.pax.gz
Gavin Eadie 17.1 22 pax -r -f Archive.pax
23 tar cf WebObjectsRuntime.tar Library System
24 cp WebObjectsRuntime.tar -> Windows
25
26 {{/code}}
27
Quinton Dolan 27.1 28 ... and for XCode 3.0 / Mac OS X Leopard (since Installer packages are created differently in Leopard):
29
30 {{code}}
31
32 mkdir -p /tmp/wo ; cd /tmp/wo
33 xar -vxf "/Volumes/Xcode Tools/Packages/WebObjectsRuntime.pkg" ; pax -rzf Payload
34 tar cf WebObjectsRuntime.tar Library System
35 cp WebObjectsRuntime.tar -> Windows
36
37 {{/code}}
38
Pascal Robert 23.1 39 = Create the file structure on your Windows machine =
40
Gavin Eadie 17.1 41 1) Create the structure:
42 C:pple
43 C:ppleocalibraryrameworks (equivalent to /Library/Frameworks on the Mac)
44 C:ppleibraryrameworks (equivalent to /System/Library/Frameworks on the Mac)
45
46 2) Copy all the frameworks from /System/Library/Frameworks on a Mac that are named Java except for JavaScriptCore and JavaVM to C:ppleibraryrameworks
47
Quinton Dolan 27.1 48 {{code}}
49
50 mv WebObjectsRuntime.tar/Library/* C:\Apple\Local\Library\Frameworks
51 mv WebObjectsRuntime.tar/System/Library/* C:\Apple\Library\Frameworks
52
53 {{/code}}
54
Pascal Robert 23.1 55 {{warning}}
56
Gavin Eadie 17.1 57 3) If you copied a 5.2, you will need to put a Windows License.key in JavaWebObjects.framework/Resources.  If you copied a 5.3, I think it's a universal license key.
58
Pascal Robert 23.1 59 {{/warning}}
60
Gavin Eadie 17.1 61 4) Create a wobuild.properties file in C:ocuments and Settingsyour user>ibrary with the contents:
62 wo.woroot=C:/Apple
63 wo.wolocalroot=C:/Apple/Local
64 wo.wosystemroot=C:/Apple
65 wo.homeroot=C:/Temp
66 eclipse.home=C:/Programs Files/eclipse
67 wo.dir.library.frameworks=C:/Apple/Library/Frameworks
68
Pascal Robert 23.1 69 = Install Eclipse and WOLips =
Gavin Eadie 17.1 70
Quinton Dolan 27.1 71 Install [[Eclipse and WOLips>>http://wiki.objectstyle.org/confluence/display/WOL/Install+WOLips+with+Eclipse+Update+Manager]]
Pascal Robert 23.1 72
73 = Notes =
74
Gavin Eadie 17.1 75 That should be it, I think?  The things that are problematic right now on Windows:
Quinton Dolan 27.1 76 1) The ##woproject/.patternset## don't work quite right on Windows with older versions of WOLips. If you don't have subfolders in your Resources/Components/etc, you can work around it by converting ##Components~/~//etc/## to ##Components/##**, same w/ Resources and WebServerResources. Alternatively you can use a recent nightly build of WOLips where this bug has been fixed.
Gavin Eadie 17.1 77 2) Couple images have backgrounds that should not
78 3) Outline view in component editor is not right
Quinton Dolan 27.1 79 4) AutoOpenInBrowser doesn't work unless you override Application.//isSupportedDevelopmentPlatform to return true//**
Gavin Eadie 17.1 80
81 I THINK that was it, but there might have been a couple other misc items .. I'll have to go back through and doublecheck.