Hi Frank, in my case that won´t work, as I want to build a RCP Eclipse Plugin. So instead of accessing the jars from the WebObjects Installation, everything is copied and included in my project. Meanwhile I could track down the problem to one certain point when NSBundle´s classloader calls getResources("/Resources/Info.plist"). In my application, this doesn´t return anything. Eclipse uses different classloaders, as I learnt now (see e.g. http://www.eclipsezone.com/articles/eclipse-vms/), so maybe this causes the whole trouble. Haven´t found out how to resolve it yet, though. Anyway, seems to be rather an RCP problem than WebObjects. Georg Hi, some years ago I coded a commandline java-program for EOF on win, I used this simple cmd to start it:java -classpath "D:\j2sdk1.4.0_01\jre\lib\ext\msutil.jar;D:\j2sdk1.4.0_01\jre\lib\ext\mssqlserver.jar;D:\j2sdk1.4.0_01\jre\lib\ext\msbase.jar;d:\apple\Library\Frameworks\JavaWebObjects.framework\Resources\Java\javawebobjects.jar;d:\apple\Library\Frameworks\JavaEOControl.framework\Resources\Java\javaeocontrol.jar;d:\apple\Library\Frameworks\JavaXML.framework\Resources\Java\javaxml.jar;;d:\apple\Library\Frameworks\JavaEOAccess.framework\Resources\Java\javaeoaccess.jar;d:\apple\Library\Frameworks\JavaWOExtensions.framework\Resources\Java\JavaWOExtensions.jar;.\JavaJDBCAdaptor.framework\Resources\Java\javajdbcadaptor.jar;d:\apple\Library\Frameworks\JavaFoundation.framework\Resources\Java\javafoundation.jar;." MyJavaProgram - the eof ".eomodeld"-folder was located in the current directory (I guess that's your point here...) - I also copied the "JavaJDBCAdaptor.framework"-folder to the current folder (I think this is not neccesary) - msutil.jar, mssqlserver.jar and msbase.jar are (old) sql-server jdbc driver jars, put your necessary jars in the classpath HTH Frank-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] pple.com]O n Behalf Of Georg von Bülow Sent: Wednesday, October 17, 2007 4:30 PM To: Ray Kiddy Cc: WebObjects (Group) Subject: Re: pure EOF in RCP Hi Ray and Florijan, thank you for your help, but I still couldn´t get it work. I tried to include the entire Frameworks in the classpath of my RCP app, not only the jars. Like this I maintain the directory structure /Resources/Java etc, but the error remains the same. So at runtime RCP finds WebObject classes, but NSBundle still doesn´t have a MainBundle. Not sure what is missing to set up Main Bundle correctly or where I should put the Frameworks, will keep on trying. GeorgOn Oct 16, 2007, at 6:53 AM, Georg von Bülow wrote:Hi, having read the stepwise article about 100% pure EOF Applications (http://www.stepwise.com/Articles/Technical/2001-07-01.01.html), I´m trying to figure out if it´s possible to get EOFworking insidean RCP Application. So I added the relevant WebObjects jars to lib (eoacess,eocontrol,javafoundation, javaxml, javajdbcadaptor) and compiledsuccessfully.But on runtime the application always fails with: java.lang.ExceptionInInitializerError atcom.moleque.pas.checklist.Application.loadModel(Application.java:65)atcom.moleque.pas.checklist.Application.run(Application.java:36)atorg.eclipse.core.internal.runtime.PlatformActivator$1.run(Plat formActivator.java:78)atorg.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.r unApplication(EclipseAppLauncher.java:92)atorg.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.s tart(EclipseAppLauncher.java:68)... Caused by: java.lang.NullPointerException atcom.webobjects.foundation.NSBundle.LoadUserAndBundleProperties (NSBundle.java:313)atcom.webobjects.foundation.NSBundle.<clinit>(NSBundle.java:2262)... 15 more The problem is that MainBundle cannot be resolved, that is already trying NSBundle.mainBundle() returns the above error. Has anyone got to work EOF with RCP? Or can point to me how to overcome this NSBundle problem? I´m using Eclipse 3.2.2, WebObjects jars 5.3.2, and Windows XP. Thanks for any hints in advance, Georg -- \o/ Georg von Bülow, Moleque de Idéias Educação e Tecnologia Ltda | Phone: 55-21-2710-0178 E-mail: [EMAIL PROTECTED] / \ http://www.moleque.com.br Niterói - Rio de Janeiro - BrasilThis looks like problems I have had while trying many different runtime configurations. An NSBundle is not just a jar file, but it is also the directory structure, with a '.framework' directory, a 'Contents' directory (sometimes), a 'Resources' directory, a 'Java' directory, and so on and so forth. The easiest way to unravel NSBundle problems is to try to use just directories, then use the directories inside a jar, then try moving the jar where you want it to go. Does this help? - ray _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription:http://lists.apple.com/mailman/options/webobjects-dev/georg%40moleque.com.brThis email sent to [EMAIL PROTECTED] -- \o/ Georg von Bülow, Moleque de Idéias Educação e Tecnologia Ltda | Phone: 55-21-2710-0178 E-mail: [EMAIL PROTECTED] / \ http://www.moleque.com.br Niterói - Rio de Janeiro - Brasil |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]