FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

VM Options not being recognized in NB 6.7 (Ubuntu)

 
Post new topic   Reply to topic    NetBeans Forums -> Java ME Users
View previous topic :: View next topic  
Author Message
hak



Joined: 29 Jun 2009
Posts: 6

PostPosted: Tue Jun 30, 2009 9:52 pm    Post subject: VM Options not being recognized in NB 6.7 (Ubuntu) Reply with quote

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
View user's profile Send private message
shche123



Joined: 19 May 2009
Posts: 41

PostPosted: Wed Jul 01, 2009 4:09 pm    Post subject: Reply with quote

Sounds like it needs to be reported to:
http://www.netbeans.org/community/issues.html
as an bug.
Back to top
View user's profile Send private message
hak



Joined: 29 Jun 2009
Posts: 6

PostPosted: Wed Jul 01, 2009 7:12 pm    Post subject: Reply with quote

It seems to be a defect, two duplicate reports on my problem. I have experienced this problem with Netbeans 6.7 on Ubuntu 8.04.

Issue 150436
Opened: Thu Oct 16 19:33:00 +0000 2008
http://www.netbeans.org/issues/show_bug.cgi?id=150436

Issue 156989
Opened: Sat Jan 17 17:37:00 +0000 2009
http://www.netbeans.org/issues/show_bug.cgi?id=156989
Back to top
View user's profile Send private message
hak



Joined: 29 Jun 2009
Posts: 6

PostPosted: Wed Jul 01, 2009 7:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
shche123



Joined: 19 May 2009
Posts: 41

PostPosted: Wed Jul 01, 2009 9:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
shche123



Joined: 19 May 2009
Posts: 41

PostPosted: Wed Jul 01, 2009 9:50 pm    Post subject: Reply with quote

Sorry, the jad is for the CLDC/MIDP platform.
Back to top
View user's profile Send private message
hak



Joined: 29 Jun 2009
Posts: 6

PostPosted: Mon Jul 27, 2009 7:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
hak



Joined: 29 Jun 2009
Posts: 6

PostPosted: Mon Jul 27, 2009 7:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java ME Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB