| View previous topic :: View next topic |
| Author |
Message |
meltim
Joined: 31 Jul 2009 Posts: 6
|
Posted: Fri Jul 31, 2009 5:55 pm Post subject: Need help finding the text created by “System.out.print” when using the Blackberry Emulator |
|
|
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 |
|
 |
tylerdurden45
Joined: 03 Apr 2009 Posts: 15
|
Posted: Fri Jul 31, 2009 6:15 pm Post subject: Need help finding the text created by “System.out.print” when using the Blackberry Emulator |
|
|
Hi;
You should share screenshot, code of midlet, etc.
I am not magic man.
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 |
|
 |
meltim
Joined: 31 Jul 2009 Posts: 6
|
Posted: Fri Jul 31, 2009 6:28 pm Post subject: |
|
|
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 |
|
 |
tylerdurden45
Joined: 03 Apr 2009 Posts: 15
|
Posted: Fri Jul 31, 2009 6:49 pm Post subject: Need help finding the text created by “System.out.print” when using the Blackberry Emulator |
|
|
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 |
|
 |
meltim
Joined: 31 Jul 2009 Posts: 6
|
Posted: Sat Aug 01, 2009 3:35 pm Post subject: |
|
|
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 |
|
 |
eugenedw
Joined: 02 Aug 2009 Posts: 1
|
Posted: Sun Aug 02, 2009 3:10 pm Post subject: |
|
|
| 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 |
|
 |
meltim
Joined: 31 Jul 2009 Posts: 6
|
Posted: Sun Aug 02, 2009 7:17 pm Post subject: |
|
|
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.
| Description: |
|
| Filesize: |
120.37 KB |
| Viewed: |
870 Time(s) |

|
_________________ Tim |
|
| Back to top |
|
 |
|