Usage for Windows

Version 26.1 by Pascal Robert on 2007/12/30 07:08

Warning

Work in progress

Moving the WebObjects frameworks from a Mac to a Windows machine

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.

  • 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.
  • Mount, on a Mac, the DMG file.

cp /Volumes/Xcode\ Tools/Packages/Packages/WebObjectsRuntime.pkg/Contents/Archive.pax.gz /tmp
cd /tmp
unzip Archive.pax.gz
pax -r -f Archive.pax
tar cf WebObjectsRuntime.tar Library System
cp WebObjectsRuntime.tar -> Windows

Create the file structure on your Windows machine

1) Create the structure:
C:pple
C:ppleocalibraryrameworks (equivalent to /Library/Frameworks on the Mac)
C:ppleibraryrameworks (equivalent to /System/Library/Frameworks on the Mac)

2) Copy all the frameworks from /System/Library/Frameworks on a Mac that are named Java except for JavaScriptCore and JavaVM to C:ppleibraryrameworks

Warning

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.

4) Create a wobuild.properties file in C:ocuments and Settingsyour user>ibrary with the contents:
wo.woroot=C:/Apple
wo.wolocalroot=C:/Apple/Local
wo.wosystemroot=C:/Apple
wo.homeroot=C:/Temp
eclipse.home=C:/Programs Files/eclipse
wo.dir.library.frameworks=C:/Apple/Library/Frameworks

Install Eclipse and WOLips

5) Install eclipse 3.3.1.1

6) Install WOLips nightly from http://webobjects.mdimension.com/wolips/nightly

Notes

That should be it, I think?  The things that are problematic right now on Windows:
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
2) Couple images have backgrounds that should not
3) Outline view in component editor is not right
4) AutoOpenInBrowser doesn't work unless you override Application.isSupportedDevelopmentPlatform to return true

I THINK that was it, but there might have been a couple other misc items .. I'll have to go back through and doublecheck.