Hello,
Sorry about the late reply.
We're using Netbeans to develop an app which also uses OJB, so I've been
there and done this :)
Before initialisation (ie. Any ojb-calls )
...
System.setProperty("OJB.Properties",
"nz/ac/auckland/markit/ojb/OJB.properties")
...
ie. Using the netbeans-style resource referencing...
I also found if you wanted to set spy.properties/log4j.properties then
you needed to do the same thing
In OJB.properties
...
repositoryFile=nz/ac/auckland/markit/ojb/respository.xml
...
Now, here's the trick.
You need the ojb libraries in your classpath. This either means -
- make a module, declare dependencies and install the libs in
netbeans-dir/modules/ext
- do it the nasty way and install in netbeans-dir/lib/ext
Good luck.
Rob :)
> -----Original Message-----
> From: Muhammad Aamir [mailto:[EMAIL PROTECTED]
> Sent: Saturday, 10 January 2004 3:04 a.m.
> To: OJB Users List
> Subject: RE: FW: NetBeans and OJB
>
>
> Edson,
>
> Although I had tried to set complete path of OJB.properties
> (by System.setProperty("OJB.properties",
> "C:/work/easy/OJB.properties") ) and repository.xml (I've
> changed the repository.xml path in OJB.properties using
> file:///c:/work/easy/repository.xml) the problem had not been solved.
>
> But I'll try to apply this again. In the mean time I'll be
> appreciate if someone could give me a clue for this problem.
>
> Thank you v. much
> Aamir
>
> -----Original Message-----
> From: Edson Carlos Ericksson Richter
> [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 09, 2004 6:47 PM
> To: OJB Users List
> Subject: Re: FW: NetBeans and OJB
>
> Hi!
>
> I could answer you question. In NetBeans, go to
>
> Tools -> Options -> Debbuging and Executing -> Execution
> Types -> External Execution -> Expert -> Working Directory.
>
> Unfortunately, there is no equivalent option for Internal
> Execution (but the default execution for NetBeans apps is
> External Execution). In Internal Execution mode, the Working
> Directory is the NetBeans bin directory. So, if you need to
> use Internal Execution, you should set complete path for
> repository/ojb.properties.
>
> I sugest you to use External Execution, and set Working
> Directory (to avoid annoiances).
>
> I've collected these info in more than a year working with
> OJB inside NetBeans.
>
>
> Best regards,
>
> Edson Richter
>
> ----- Original Message -----
> From: Muhammad Aamir
> To: OJB Users List
> Sent: Friday, January 09, 2004 9:38 AM
> Subject: RE: FW: NetBeans and OJB
>
>
> NetBeans IDE is a wonderful modular application and you can
> develop your
> own application on top of NetBeans platform. I want to use NetBeans
> platform and my developed modules to build my application.
>
> The answer of your question that why I am using internal
> execution, is
> that I want to do some experiments with Open IDE API (an API to
> communicate with NetBeans IDE components). And internal
> execution uses
> the same virtual machine in which NetBeans IDE is running.
>
> Aamir
>
> -----Original Message-----
> From: Thomas Dudziak [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 09, 2004 5:20 PM
> To: OJB Users List
> Subject: RE: FW: NetBeans and OJB
>
> Well, I'm no expert when it comes to NetBeans (I prefer
> Eclipse). What
> is
> the benefit of internal execution vs. external execution ?
>
> Tom
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.558 / Virus Database: 350 - Release Date: 2/1/2004
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]