Wiki source code of Usage for Windows

Version 22.1 by Pascal Robert on 2007/12/30 07:02

Hide last authors
Gavin Eadie 17.1 1 {{warning}}
2
3 Work in progress
4
5 {{/warning}}
6
7 = Moving the WebObjects frameworks from a Mac to a Windows machine =
8
Pascal Robert 21.1 9 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 10
Pascal Robert 21.1 11 * 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 12
13 * Mount, on a Mac, the DMG file.
14
15 {{code}}
16
17 cp /Volumes/Xcode\ Tools/Packages/Packages/WebObjectsRuntime.pkg/Contents/Archive.pax.gz /tmp
18 cd /tmp
Pascal Robert 21.1 19 unzip Archive.pax.gz
Gavin Eadie 17.1 20 pax -r -f Archive.pax
21 tar cf WebObjectsRuntime.tar Library System
22 cp WebObjectsRuntime.tar -> Windows
23
24 {{/code}}
25
26 1) Create the structure:
27 C:pple
28 C:ppleocalibraryrameworks (equivalent to /Library/Frameworks on the Mac)
29 C:ppleibraryrameworks (equivalent to /System/Library/Frameworks on the Mac)
30
31 2) Copy all the frameworks from /System/Library/Frameworks on a Mac that are named Java except for JavaScriptCore and JavaVM to C:ppleibraryrameworks
32
33 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.
34
35 4) Create a wobuild.properties file in C:ocuments and Settingsyour user>ibrary with the contents:
36 wo.woroot=C:/Apple
37 wo.wolocalroot=C:/Apple/Local
38 wo.wosystemroot=C:/Apple
39 wo.homeroot=C:/Temp
40 eclipse.home=C:/Programs Files/eclipse
41 wo.dir.library.frameworks=C:/Apple/Library/Frameworks
42
Pascal Robert 21.1 43 5) Install eclipse 3.3.1.1
Gavin Eadie 17.1 44
45 6) Install WOLips nightly from [[http://webobjects.mdimension.com/wolips/nightly]]
46
47 That should be it, I think?  The things that are problematic right now on Windows:
48 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
49 2) Couple images have backgrounds that should not
50 3) Outline view in component editor is not right
51 4) AutoOpenInBrowser doesn't work unless you override Application.//isSupportedDevelopmentPlatform to return true//
52
53 I THINK that was it, but there might have been a couple other misc items .. I'll have to go back through and doublecheck.