| View previous topic :: View next topic |
| Author |
Message |
hak
Joined: 29 Jun 2009 Posts: 6
|
Posted: Tue Jun 30, 2009 9:52 pm Post subject: VM Options not being recognized in NB 6.7 (Ubuntu) |
|
|
When I specify the the java.library.path in VM Options for a new CDC Application project, the project is unable to recognize the java.library.path that I had set.
For example, I set the following in VM Options:
| Code: | | -Djava.library.path=/path/to/library |
In the code, I input in the following code just to see if the project recognizes it:
| Code: | | System.out.println(System.getProperty("java.library.path")); |
And it just displays the path to the CDC emulator that I selected for the project instead of the new java library path that I specified in VM Options. This works in Netbeans 5.5.1 on Ubuntu. |
|
| Back to top |
|
 |
shche123
Joined: 19 May 2009 Posts: 41
|
|
| Back to top |
|
 |
hak
Joined: 29 Jun 2009 Posts: 6
|
|
| Back to top |
|
 |
hak
Joined: 29 Jun 2009 Posts: 6
|
Posted: Wed Jul 01, 2009 7:31 pm Post subject: |
|
|
So can anybody suggest a workaround for this? psuchomel mentioned the following:
| Quote: | | This should be rather easy. Need to fix ant task. |
How would I exactly go about doing this? |
|
| Back to top |
|
 |
shche123
Joined: 19 May 2009 Posts: 41
|
Posted: Wed Jul 01, 2009 9:44 pm Post subject: |
|
|
| How about storing this property as an attribute in the application descriptor file, the jad file, and using getAppAttribute()? I know that it is a slightly different design... |
|
| Back to top |
|
 |
shche123
Joined: 19 May 2009 Posts: 41
|
Posted: Wed Jul 01, 2009 9:50 pm Post subject: |
|
|
| Sorry, the jad is for the CLDC/MIDP platform. |
|
| Back to top |
|
 |
hak
Joined: 29 Jun 2009 Posts: 6
|
Posted: Mon Jul 27, 2009 7:18 pm Post subject: |
|
|
Does anybody know the workaround for http://www.netbeans.org/issues/show_bug.cgi?id=150436?
I tried to use the nb-overrideproperty task (to set the run.jvmargs property) in the savaje-run target, but my program still isn't recognizing the VM Options when the program is executed. |
|
| Back to top |
|
 |
hak
Joined: 29 Jun 2009 Posts: 6
|
Posted: Mon Jul 27, 2009 7:23 pm Post subject: |
|
|
| It seems that the problem lies in the sunEmulatorExec, the property "run.jvmargs" is set to the correct value, but the sunEmulatorExec task somehow ignores that completely. |
|
| Back to top |
|
 |
|