• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: pure EOF in RCP
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: pure EOF in RCP


  • Subject: RE: pure EOF in RCP
  • From: "Ruenagel, Frank" <email@hidden>
  • Date: Wed, 17 Oct 2007 16:29:53 +0200
  • Thread-topic: pure EOF in RCP

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: webobjects-dev-bounces+webobjects=email@hidden
> [mailto:webobjects-dev-bounces+webobjects=symposion.de@lists.a
> 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.
>
> Georg
> >
> > On 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 EOF
> working inside
> >> an RCP Application.
> >> So I added the relevant WebObjects jars to lib (eoacess,
> eocontrol,
> >> javafoundation, javaxml, javajdbcadaptor) and compiled
> successfully.
> >> But on runtime the application always fails with:
> >>
> >> java.lang.ExceptionInInitializerError
> >>    at
> >>
> com.moleque.pas.checklist.Application.loadModel(Application.java:65)
> >>    at
> com.moleque.pas.checklist.Application.run(Application.java:36)
> >>    at
> >>
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Plat
> formActivator.java:78)
> >>
> >>    at
> >>
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.r
> unApplication(EclipseAppLauncher.java:92)
> >>
> >>    at
> >>
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.s
> tart(EclipseAppLauncher.java:68)
> >>
> >>    ...
> >> Caused by: java.lang.NullPointerException
> >>    at
> >>
> com.webobjects.foundation.NSBundle.LoadUserAndBundleProperties
> (NSBundle.java:313)
> >>
> >>    at
> com.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@hidden
> >> / \ http://www.moleque.com.br   Niterói - Rio de Janeiro - Brasil
> >
> > This 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      (email@hidden)
> > Help/Unsubscribe/Update your Subscription:
> >
moleque.com.br
>
>
> This email sent to email@hidden
>


--
\o/ Georg von Bülow, Moleque de Idéias Educação e Tecnologia Ltda
  |  Phone: 55-21-2710-0178 E-mail: email@hidden
/ \ 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      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: pure EOF in RCP
      • From: Georg von Bülow <email@hidden>
References: 
 >Re: pure EOF in RCP (From: Georg von Bülow <email@hidden>)

  • Prev by Date: Weird problem ...
  • Next by Date: Re: pure EOF in RCP
  • Previous by thread: Re: pure EOF in RCP
  • Next by thread: Re: pure EOF in RCP
  • Index(es):
    • Date
    • Thread