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 
  

Need help finding the text created by “System.out.print” when using the Blackberry Emulator

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



Joined: 31 Jul 2009
Posts: 6

PostPosted: Fri Jul 31, 2009 5:55 pm    Post subject: Need help finding the text created by “System.out.print” when using the Blackberry Emulator Reply with quote

Hello Everyone,

I’m sure this is going to be an easy answer for someone, but so far I have not been able to find what I am looking for. I am using NetBeans 6.5 and the Blackberry Plug-in found at [url]http://www.teesoft.info/content/view/36/36/#BlackBerryPlugin [/url] I am having an issue with a null pointer exception in my MIDP code, so I placed some “System.out.print” in strategic places to try to find the issue. However, the output does not appear in the NetBeans “Output” section like it does when running with the Sun Java Wireless Toolkit 2.5.2 emulators.

Can someone tell me where to find the text created by “System.out.print” when using the Blackberry Emulator?

Thank you in advance for your assistance.

_________________
Tim
Back to top
View user's profile Send private message
tylerdurden45



Joined: 03 Apr 2009
Posts: 15

PostPosted: Fri Jul 31, 2009 6:15 pm    Post subject: Need help finding the text created by “System.out.print” when using the Blackberry Emulator Reply with quote

Hi;
You should share screenshot, code of midlet, etc.
I am not magic man. Smile

2009/7/31 meltim <address-removed ([email]address-removed[/email])>
Quote:
Hello Everyone,



I’m sure this is going to be an easy answer for someone, but so far I have not been able to find what I am looking for.  I am using NetBeans 6.5 and the Blackberry Plug-in found at http://www.teesoft.info/content/view/36/36/#BlackBerryPlugin  I am having an issue with a null pointer exception in my MIDP code, so I placed some “System.out.print” in strategic places to try to find the issue.  However, the output does not appear in the NetBeans “Output” section like it does when running with the Sun Java Wireless Toolkit 2.5.2 emulators.



Can someone tell me where to find the text created by “System.out.print” when using the Blackberry Emulator?



Thank you in advance for your assistance.

------------------------
Tim






([email]address-removed[/email])
([email]address-removed[/email])




--
------
Eray
Back to top
View user's profile Send private message
meltim



Joined: 31 Jul 2009
Posts: 6

PostPosted: Fri Jul 31, 2009 6:28 pm    Post subject: Reply with quote

Thank you very much for the quick response, I greatly appreciate it.

However, I have no screen shots to share since I cannot find the output. And I was not really looking for help with the null pointer; I wanted to know where I could find the output, so the code won't help.

Thanks again.

_________________
Tim
Back to top
View user's profile Send private message
tylerdurden45



Joined: 03 Apr 2009
Posts: 15

PostPosted: Fri Jul 31, 2009 6:49 pm    Post subject: Need help finding the text created by “System.out.print” when using the Blackberry Emulator Reply with quote

code?

2009/7/31 meltim <address-removed ([email]address-removed[/email])>
Quote:
Thank you very much for the quick response, I greatly appreciate it.



However, I have no screen shots to share since I cannot find the output.  And I was not really looking for help with the null pointer; I wanted to know where I could find the output, so the code won't help.



Thanks again.


------------------------
Tim






([email]address-removed[/email])
([email]address-removed[/email])






--
------
Eray
Back to top
View user's profile Send private message
meltim



Joined: 31 Jul 2009
Posts: 6

PostPosted: Sat Aug 01, 2009 3:35 pm    Post subject: Reply with quote

Okay, is a sample of the code for print on System.out. First I turn on Logging with:

Code:
    private boolean useCusTabSize = false;
    private boolean setDefaults = false;
    private boolean logging = true;   // True will print to sysoutput
    int fixedWidth = 13;  // Number of Columns per Pixels
    int fixedHeight = 26; // Number of Rows per Pixels


Then as the program executes, I log like this:


Code:
    public WordFindMIDlet() throws RecordStoreException {
        if (logging) {
           System.out.print("Entered=WordFindMIDlet" + "\n");
        }
        display = Display.getDisplay(this);


Thanks again. I hope that helps.

_________________
Tim
Back to top
View user's profile Send private message
eugenedw



Joined: 02 Aug 2009
Posts: 1

PostPosted: Sun Aug 02, 2009 3:10 pm    Post subject: Reply with quote

When running the application (right-click in projects list and selecting run), do you get the tabs displaying the server and project output?
Back to top
View user's profile Send private message
meltim



Joined: 31 Jul 2009
Posts: 6

PostPosted: Sun Aug 02, 2009 7:17 pm    Post subject: Reply with quote

Thank you for your response.

When you say "the server and project output", I'm not sure what you are talking about. Here is the NetBeans Screen (I attached it, because I couldn't figure out how to paste it in the message.)

Thanks again.



NetBeansWithBlackberryEmulator8100.JPG
 Description:
 Filesize:  120.37 KB
 Viewed:  870 Time(s)

NetBeansWithBlackberryEmulator8100.JPG



_________________
Tim
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