Category Image Beginning WebObjects on Windows


I do not develop WebObjects apps on Windows, so don't ask me to troubleshoot Windows installation issues, however this article (click Read More) outlines where to get instructions and information related to installation and development on Windows 2000 and XP .....

This page shows how to avoid getting the "unsupported platform" when launching apps on XP
http://wiki.objectstyle.org/confluence/display/WO/Web+Applications-Development-Development+on+Windows

Here is the WebObjects for Windows Getting Started tutorial:
http://developer.apple.com/documentation/WebObjects/WOGettingStarted/index.html

Here is the Windows Installation instructions . Note in particular the Obj-C/Java bridge is used on Windows for the EOModeler app, so it needs a JNDI 1.1.8 driver
http://developer.apple.com/documentation/WebObjects/WO_Install_Win_Sol/index.html

... and in particular note the instructions about 1.1.8 for WO Dev (necessary for EOModeler) ...
"Installing Third-Party JAR Files
WebObjects 5.2 includes some third-party JAR files that you need for applications that use Enterprise JavaBeans (EJB), JavaServer Pages (JSP), Java Servlet integration, Web services, or Java Database Connectivity (JDBC). These JAR files are provided in the ThirdPartyJars directory on your WebObjects 5.2 CD. The JDBC extensions and JTA JAR files should be put into the location specified in your JavaConfig.plist along with any of the necessary JDBC drivers. (If you are installing WebObjects Development, install the Java 1.1.8 JDBC driver, not the Java 2 JDBC driver.) Any other JAR files you need should be put into NEXT_ROOT\Local\Library\WebObjects\Extensions."

The WebObjects FREE license key (works on all platforms) can be found at connect.apple.com (register for free if necessary)

To get the Windows installation CD for WebObjects, send an email to webobjects@apple.com and they will send it to you for free, or just get a friend's Windows installation CD and use the demo license key from connect.apple.com

Finally, here is an excellent resource:
http://www.tetlabors.de/wo/setup_webobjects_on_windows.html


6/3/2005: Victor Tsang contributed this WO on WIndows FAQ document with more tips. I have not used or validated since I don't use WO on Windows. Thanks Victor, I hope this helps someone someday.
WebObjectsOnWindows FAQ.doc



7/11/2005: Shehryrar Khan provided these instructions for setting up WebObjects on Eclipse development on Windows:

A lot of people successfully use the following combination of software to develop on Windows

JDK 1.4.2
WebObjects 5.2.3
Eclipse 3.0
WOLips 1.1.0.102 RC 2

Here's a step by step guide on getting your environment setup to do WebObjects development on a Windows machine (from scratch) using the above tools

- install Windows XP
- upgrade Windows XP Patch Level (Windows XP Service Pack 2 installs a firewall - turn that off)

- install WinZip (download from www.winzip.com)

- install JDK 1.4.2 (download from www.javasoft.com - 1.4.2_07 is the latest version right now)

- install WebObjects 5.2 for Windows using the WebObjects 5.2 CD for Windows / Solaris
(when prompted for web server documents dir and scripts dir just select the default options)

- download and install Eclipse (download from www.eclipse.org - Eclipse SDK 3.0.2 is the latest version right now)
- I installed eclipse into C:\eclipse-3.0.2

- install WOLips
- download WOLips 1.1.0.102 RC 2 from woproject.sourceforge.net (this is the latest version certified for Eclipse 3.0.1)
- you might have to rename the resulting file to WOLips_1.1.0.102_RC_2.tar.gz (note the .tar.gz at the end - windows lameness)
- create a local WOLips folder (I used C:\WOLips)
- use WinZip to untar / unzip the file to the newly created folder above (C:\WOLips)
- launch eclipse
- select Menu Help -> Software Updates -> Find and Install...
- select Search for new features to install and click on Next
- click on New Local Site
- select directory that contains extracted wolips files (C:\WOLips)
- under "Sites to include in search:" select the newly added path
- click on Next
- under "Select the features to install:" the following should show up
- WOLips
- WOLips Profiling
- WOLips Tests
- check all of them and click on Next
- select "I accept the terms in the license agreements" and click on Next
- click on Finish
- in the Jar verification panel(s) that show up click on Install
- a panel will show up prompting you to restart eclipse - click on restart
- WOLips is now installed (you can delete C:\WOLips if you wish)

- create a new WebObjects application
- launch eclipse (if not already running)
- select File -> New > Project
- select WOLips WO 5.1 and 5.2 and select WOApplication, then click on Next
- use Test2 as the project name and click on Finish
- switch to the WOLips perspective
- select Window -> Open Perspective -> Other..
- select WOLips and click on OK
- Eclipse automatically compiles your application as you make changes
- use the built in code editor to edit your code, html, and wod files
- run the application (the following steps take you through the creation of a run "profile")
- select Run -> Run...
- select WOApplication click on New
- name the new configuration Test2
- in the "Main class" box click on Search... and then select Application in the resulting panel
(then click OK)
- click on Apply
- then click on Run
- your WebObjects application will launch

Hope this helps.

-shehryar


Chuck Hill provides this advice on jdbc drivers...
"The driver needs to go in C:\Apple\Library\Java. That is for JDK 1.1 which is only used by EOModeller. For you application to run, you also need to put the JDBC driver in the jre\lib\ext directory of the JVM being used to launch the app"



From the webobjects-dev mailing list
adding these methods in Application:

public boolean _isForeignSupportedDevelopmentPlatform() {
return (super._isForeignSupportedDevelopmentPlatform() || _isAdditionalForeignSupportedDevelopmentPlatform());
}

public boolean _isAdditionalForeignSupportedDevelopmentPlatform() {
String s = System.getProperty("os.name");
NSLog.out.appendln("System property: " + s);
return s != null && s.equals("Windows XP");
}




Posted: Friday - November 12, 2004 at 01:38 PM        


Published by