WebObjects/Web 應用程式/開發/Windows 上的開發
外觀
以下是在 Windows 上安裝 WebObjects 的教程
http://www.tetlabors.de/wo/setup_webobjects_on_windows.html
問:大家好。我在列表中看到幾個人遇到了與之相同的問題,但還沒有看到解決辦法。在 Windows XP 上啟動 WO5.2.2 開發人員上的應用程式時,顯示此錯誤訊息
Your application is not running on a supported development platform. AutoLaunch will not work.
我可以手動將 URL 貼上到瀏覽器中,但我很懶,整天做這些“工作” :) 我嘗試了 WOAutoOpenInBrowser 設定,但沒有成功。我還嘗試將專案構建器和 WOOpenUrl 應用程式設定為 W2K 相容模式,但沒有成功。
答:在您的應用程式類中使用以下方法
/**
* Calls _isAdditionalForeignSupportedDevelopmentPlatform
*
* @see com.webobjects.appserver.WOApplication#_isForeignSupportedDevelopmentPlatform()
*/
public boolean _isForeignSupportedDevelopmentPlatform()
{
return (super._isForeignSupportedDevelopmentPlatform() || _isAdditionalForeignSupportedDevelopmentPlatform());
}
/**
* Check for Windows XP
* @return true if runs on XP
*/
public boolean _isAdditionalForeignSupportedDevelopmentPlatform()
{
String s = System.getProperty("os.name");
return ( s != null && s.equals("Windows XP") );
}
-- StefanKlein
B. 上面的方法對我不起作用。在應用程式類中新增以下內容起作用了。
public boolean _isSupportedDevelopmentPlatform() {
boolean result = super._isSupportedDevelopmentPlatform();
if(!result){
result = System.getProperty("os.name").equals("Windows XP");
}
return result;
}
-- Guillaume Luszack