Changes for page Development on Windows
Last modified by Pascal Robert on 2012/07/21 14:37
From version 10.1
edited by Pascal Robert
on 2012/07/20 11:35
on 2012/07/20 11:35
Change comment:
There is no comment for this version
To version 2.1
edited by smmccraw
on 2007/07/08 09:45
on 2007/07/08 09:45
Change comment:
There is no comment for this version
Summary
-
Page properties (3 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 -Development on Windows 1 +Programming__WebObjects-Web Applications-Development-Development on Windows - Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. probert1 +XWiki.smmccraw - Content
-
... ... @@ -1,73 +1,46 @@ 1 - ==FixingAutoLaunch==1 +Here is a tutorial on installing WebObjects on Windows: 2 2 3 +http:~/~/www.tetlabors.de/wo/setup_webobjects_on_windows.html 4 + 5 +== Fixing Auto Launch == 6 + 3 3 //Q. Hi everyone. I've seen several people on the list with the same problem as this, but haven't seen it resolved yet. When launching an app on WO5.2.2 developer on Windows XP, this error message is displayed~:// 4 4 5 5 {{panel}} 6 6 7 -Your application is not running on a supported development platform. AutoLaunch will not work. 11 + Your application is not running on a supported development platform. AutoLaunch will not work. 8 8 9 9 {{/panel}} 10 10 11 -I can cut and paste the URL into a browser manually, but I'm too lazy to do all that 'work' all day long : -) I've tried the WOAutoOpenInBrowser setting with no luck. I've also tried setting W2K compatibilty mode for project builder and the WOOpenUrl application with no luck.15 +I can cut and paste the URL into a browser manually, but I'm too lazy to do all that 'work' all day long :) I've tried the WOAutoOpenInBrowser setting with no luck. I've also tried setting W2K compatibilty mode for project builder and the WOOpenUrl application with no luck. 12 12 13 13 A. use the following methods in your Application class: 14 14 15 -{{ code}}19 +{{panel}} 16 16 17 -/** 18 - * Calls _isAdditionalForeignSupportedDevelopmentPlatform 19 - * 20 - * @see com.webobjects.appserver.WOApplication#_isForeignSupportedDevelopmentPlatform() 21 - */ 22 - public boolean _isForeignSupportedDevelopmentPlatform() 23 - { 24 - return (super._isForeignSupportedDevelopmentPlatform() || _isAdditionalForeignSupportedDevelopmentPlatform()); 25 - } 26 - 27 - /** 28 - * Check for Windows XP 29 - * @return true if runs on XP 21 + /** 22 + * Calls _isAdditionalForeignSupportedDevelopmentPlatform 23 + * 24 + * @see com.webobjects.appserver.WOApplication#_isForeignSupportedDevelopmentPlatform() 30 30 */ 31 - public boolean _isAdditionalForeignSupportedDevelopmentPlatform() 32 - { 33 - String s = System.getProperty("os.name"); 34 - return ( s != null && s.equals("Windows XP") ); 35 - } 26 + public boolean _isForeignSupportedDevelopmentPlatform() 27 + { 28 + return (super._isForeignSupportedDevelopmentPlatform() || _isAdditionalForeignSupportedDevelopmentPlatform()); 29 + } 30 + 31 + /** 32 + * Check for Windows XP 33 + * @return true if runs on XP 34 + */ 35 + public boolean _isAdditionalForeignSupportedDevelopmentPlatform() 36 + { 37 + String s = System.getProperty("os.name"); 38 + return ( s != null && s.equals("Windows XP") ); 39 + } 36 36 37 -{{/code}} 38 - 39 - StefanKlein 40 - 41 -== Don't Use White Spaces for Path == 42 - 43 -//Q. Can someone explain why NSBundle seems have broken path on Windows, but work fine on other platforms? // 44 - 45 -// Example of an exception~:// 46 - 47 -{{panel}} 48 - 49 -java.lang.IllegalArgumentException: Attempt to insert null into an 50 -com.webobjects.foundation.NSMutableArray. 51 -at com.webobjects.foundation.NSMutableArray.addObject(NSMutableArray.java:239) 52 -at com.webobjects.eoaccess.EOModelGroup.modelGroupForLoadedBundles(EOModelGroup.java:700) 53 -at com.webobjects.eoaccess.EOModelGroup.globalModelGroup(EOModelGroup.java:306) 54 -at com.webobjects.eoaccess.EOModelGroup.defaultGroup(EOModelGroup.java:333) 55 - 56 56 {{/panel}} 57 57 58 -A. When using white spaces in the project, framework path or WAR deployment etc on Windows, the white space will turn into "%20" in the path. This will cause NSBundle.mainBundle returns null when it unable to load any bundles. For example: 43 +* 44 +** StefanKlein 59 59 60 -{{code}} 61 - 62 -Example path will not work: 63 -C:\Documents and Settings 64 - 65 -will turn into this wrong path: 66 -C:\Documents%20and%20Settings 67 - 68 -Therefore, this path will work: 69 -C:\DocumentsAndSettings 70 - 71 -{{/code}} 72 - 73 -Keep your files in path without white space seemed to be the first rule of thumb when development on Windows. Default location "C:ocuments and Setting" should not be used. 46 +Category:WebObjects