4 12:49 AM
To: OJB Users List
Subject: RE: FW: NetBeans and OJB
Hi,
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
I really strongly suggest you make a module using an ANT build file.
There are lots of docs on the netbeans site and templates in the
OpenAPIs Support module. Otherwise it will just get messier and messier
every time you try to do something.
Once you have a module, use nice netbeans-style pat
OJB.properties");
And in OJB.properties:
file:///c:/work/test/repository.xml
Is there any way to get rid of this ?
Thanx a lot!
Aamir
-Original Message-
From: Coup, Robert Muir [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 13, 2004 12:49 AM
To: OJB Users List
Subject: RE: F
Hi,
> No Success! :( I've mounted a directory c:\work\test and
> OJB.properties is in it. What should I type after nz/ ?
Ah. By nz/... I meant your path to the OJB properties file relative to
the mount point
It needs to be in a subfolder under the mountpoint otherwise NB won't
resolve it.
Has more details? The stack trace, as example?
Richter
- Original Message -
From: Muhammad Aamir
To: OJB Users List
Sent: Monday, January 12, 2004 10:28 AM
Subject: RE: FW: NetBeans and OJB
Yes Edson you are right and I've already done it and in this way
OJB.prope
Sent: Monday, January 12, 2004 7:22 PM
To: OJB Users List
Subject: Re: FW: NetBeans and OJB
You can try to put OJB .jar files in nb-home/lib/ext, as the JDBC
driver. I think this because the DatabaseExplorer, as sample, allow you
to work with some driver only if it is in ./lib/ext of netbeans.
T
- Original Message -
From: Muhammad Aamir
To: OJB Users List
Sent: Monday, January 12, 2004 9:39 AM
Subject: RE: FW: NetBeans and OJB
No Success! :( I've mounted a directory c:\work\test and OJB.properties
is in it. What should I type after nz/ ?
What about repositor
ut my own application classes ?
Thank you v. much.
Aamir
-Original Message-
From: Coup, Robert Muir [mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 1:28 AM
To: OJB Users List
Subject: RE: FW: NetBeans and OJB
Hello,
Sorry about the late reply.
We're using Netbeans to deve
> 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
>
Or alternatively, the pinnacle of nastiness, build a jar file with all
t
aturday, 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") )
ng is the first line of my main method:
>>
>> System.setProperty("OJB.properties", "c:/work/test/OJB.properties");
>>
>>
>> Following is the line from OJB.properties:
>>
>> repositoryFile=c:/work/test/repository.xml
>>
>>
>> Fol
ecution 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 t
e thing is to remember that it goes well when Executor is External.
I am will be thankful if someone gives me a solution. I have also used
Oracle TopLink and was really happy with that. I am really disappointing
to think that I've wasted 1 week just to setup that small application.
Regards
Aam
> Did you try this?
>
> System.setProperty("OJB.properties", "/OJB.properties");
>
Well, I just read Edson's post and it looks like you should disregard my
suggestion. I'll go back to my work in shame.
Dave
-
To unsubsc
From: Muhammad Aamir [mailto:[EMAIL PROTECTED]
> Problem only occurs when I changed the execution type to
> Internal execution. And as far as I understood so far,
> NetBeans have custom class
> loader(s) and that might be the reason. But I am not sure.
Excuse my ignorance if you already know
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
I guess there might be one way of manipulating the working directory
which is to set the system property "user.dir" at the start of the
program.
Tom
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [
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
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
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 PROTEC
ry 09, 2004 4:55 PM
To: OJB Users List
Subject: Re: FW: NetBeans and OJB
Looks ok so far. Does it work when you run it from the commandline (not
from within the IDE) in directory c:\work\easy ?
If so, then you probably have a mistake in the IDE setting for the
directory where the app is executed.
I
Looks ok so far. Does it work when you run it from the commandline (not
from within the IDE) in directory c:\work\easy ?
If so, then you probably have a mistake in the IDE setting for the
directory where the app is executed.
If not then you should check that in OJB.properties the repository.xml
fil
Moreover, I've set property as: System.setProperty("OJB.properties",
c:/work/easy/OJB.properties");
Aamir
-Original Message-
From: Muhammad Aamir
Sent: Friday, January 09, 2004 4:35 PM
To: OJB Users List
Subject: RE: NetBeans and OJB
Thank you for your quick
riginal Message-
From: Thomas Dudziak [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 4:26 PM
To: OJB Users List
Subject: Re: NetBeans and OJB
Could you post the directory layout of your project, what type of
project
(application, webapp etc.) it is, and with what values you use
System.set
Could you post the directory layout of your project, what type of project
(application, webapp etc.) it is, and with what values you use
System.setProperty ?
Tom
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comma
I've develop a small application to test OJB. It works fine, but when I
change Execution Type (in NetBeans IDE) to 'Internal Execution' from
'External Execution' it gives an error like OJB.properties not found.
I used System.setProperty() to tell OJB specifically that where my
OJB.properties
26 matches
Mail list logo