Qt-jambi-interest Archive, February 2008
Netbeans, mac osx, jambi
Message 1 in thread
Hi,
I am new to the Mac, netBeans, Jambi :) Though I am not new to
programming and can follow the examples easily.
Basically I am having trouble getting Netbeans to recognise any of the
imports. Is there a step by step guide anywhere for setting up Jambi
within Netbeans, or perhaps can anyone tell me how. Once its all set
up I am good to go :)
Thanks in advance
Peter
Message 2 in thread
Peter Dove wrote:
> Hi,
>
> I am new to the Mac, netBeans, Jambi :) Though I am not new to
> programming and can follow the examples easily.
>
> Basically I am having trouble getting Netbeans to recognise any of the
> imports. Is there a step by step guide anywhere for setting up Jambi
> within Netbeans, or perhaps can anyone tell me how. Once its all set up
> I am good to go :)
Hi Peter,
I'm not a netbeans user, so this may not be the most direct approach to
making this work, but here's what I did to get Qt Jambi to work in
Netbeans / Mac OS X.
The things you need are
- 1. make netbeans recognize the qtjambi.jar file
- 2. make netbeans execute Qt Jambi apps with -XstartOnFirstThread
(and possibly -Djava.library.path=where/you/installed/qtjambi/lib)
1. When you have your project created the application has a "library"
section in the project view.
* Left click on this to bring up a context menu where you select "add
library".
* This brings up a "Add Library" dialog where, naturally, Qt Jambi is
not present, but it has a "Manage Libraries..." button that you should
click to bring up the Library Manager
* In the library manager dialog, click the "New Library..." button
and give your new library a name, say "QtJambi-4.3.3_01". In the
libraries list on the left you should now see your new library.
* Select your new library and use the right side of the panel to add
/path/to/qtjambi.jar to the library. You can also add the doc/html
directory to get javadoc etc..
* Now go back to your application, select "Add Library" and pick
"QtJambi-4.3.3_01" from the library list and you should be all set
2. Setting up the proper runtime flags...
* Right-click on the "libraries" part of the appliction in the
project view again and select "properties"
* In the treeview on the left, select "Run"
* This brings up a few start options for the jvm in the right panel.
Under "VM Options" add "-XstartOnFirstThread"
You should be all set!
Hope this helps,
best regards,
Gunnar
PS, If jambi still fails to run, you might have to set
-Djava.library.path=/path/to/qtjambi/lib next to the
-XstartOnFirstThread under VM Options, but you really shouldn't have to
and it ran for me without.