Wiki source code of Usage for Windows

Version 23.1 by Pascal Robert on 2007/12/30 08:28

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
Pascal Robert 21.1 11 The WebObjects frameworks are available on the Xcode tools, which cannot be install on a Windows (or any other Linux/UNIX variant) machine. Before developing on Windows, you need to get access on a Mac, make a archive of the frameworks and move this archive to your Windows machine. You can fetch the frameworks without having to install them on the Mac.
Gavin Eadie 17.1 12
Pascal Robert 21.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/]].
Gavin Eadie 17.1 14
15 * Mount, on a Mac, the DMG file.
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
Pascal Robert 23.1 28 = Create the file structure on your Windows machine =
29
Gavin Eadie 17.1 30 1) Create the structure:
31 C:pple
32 C:ppleocalibraryrameworks (equivalent to /Library/Frameworks on the Mac)
33 C:ppleibraryrameworks (equivalent to /System/Library/Frameworks on the Mac)
34
35 2) Copy all the frameworks from /System/Library/Frameworks on a Mac that are named Java except for JavaScriptCore and JavaVM to C:ppleibraryrameworks
36
Pascal Robert 23.1 37 {{code}}
38
39 mv WebObjectsRuntime.tar/Library/* C:\Apple\Local\Library\Frameworks
40 mv WebObjectsRuntime.tar/System/Library/* C:\Apple\Library\Frameworks
41
42 {{/code}}
43
44 {{warning}}
45
Gavin Eadie 17.1 46 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.
47
Pascal Robert 23.1 48 {{/warning}}
49
Gavin Eadie 17.1 50 4) Create a wobuild.properties file in C:ocuments and Settingsyour user>ibrary with the contents:
51 wo.woroot=C:/Apple
52 wo.wolocalroot=C:/Apple/Local
53 wo.wosystemroot=C:/Apple
54 wo.homeroot=C:/Temp
55 eclipse.home=C:/Programs Files/eclipse
56 wo.dir.library.frameworks=C:/Apple/Library/Frameworks
57
Pascal Robert 23.1 58 = Install Eclipse and WOLips =
Gavin Eadie 17.1 59
Pascal Robert 23.1 60 5) Install eclipse Classic 3.3.1.1
61
Gavin Eadie 17.1 62 6) Install WOLips nightly from [[http://webobjects.mdimension.com/wolips/nightly]]
63
Pascal Robert 23.1 64 = Notes =
65
Gavin Eadie 17.1 66 That should be it, I think?  The things that are problematic right now on Windows:
67 1) The woproject/**.patternset don't work quite right on Windows.  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
68 2) Couple images have backgrounds that should not
69 3) Outline view in component editor is not right
70 4) AutoOpenInBrowser doesn't work unless you override Application.//isSupportedDevelopmentPlatform to return true//
71
72 I THINK that was it, but there might have been a couple other misc items .. I'll have to go back through and doublecheck.