![]() |
|
|||||||
| Programming C, bash, Python, Perl, PHP, Java, you name it. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|||
|
i run a simple helloworld program but the output shows some square characters. what is it? why i cannot see the print message?
|
|
||||
|
Looks like a font problem, have you tried different fonts?
__________________
"The basic tool for the manipulation of reality is the manipulation of words. If you can control the meaning of words, you can control the people who must use the words." -Philip K. Dick |
|
|||
|
I think there are a couple issues going on here:
First, when you declare this class you might want to retrieve data stored in the class from an accessor method. So you would define your class, your class-level attributes, and some methods and you would define a class to test this that would call a method to retrieve your string. Otherwise use something like this: public class HelloWorld { public static void main( String[] args ) { String s = "Hello World!"; System.out.println( s ); } } Second, I would agree that your font might be screwed up. I'm not sure which IDE you're using, but you should be able to change it to support your character map. However, be aware that a class is not something that should be run standalone in most implementations - if I were you I'd define a class like this: public class HelloWorld { public String getHello() { String s = "Hello World!"; return s; } } and define a class to evaluate this class like this: public class TestHelloWorld { public static void main( String[] args ) { HelloWorld hw = new HelloWorld(); System.out.println( hw.getHello() ); } } That's not 100% accurate, but it should give you enough to start from. I'd also recommend checking out the Java Docs in your IDE - most IDEs have decent documentation built in. Last edited by dk_netsvil; 8th April 2009 at 07:56 PM. |
|
|||
|
Just in case anyone is (re)searching NetBeans compatibility on OpenBSD, other reports have been posted to misc@ about similar square characters being displayed in the output window:
http://marc.info/?t=124471991100002&r=1&w=2 Remember, http://marc.info/ is a wonderful resource for the Open Source community. OpenBSD users should consider this as an authoritative resource on par with the manpages. Use them both, & use them often. ...& flossing after every meal is good too.
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem getting php running | badguy | OpenBSD General | 7 | 22nd July 2009 03:34 PM |
| Java SE and Netbeans on OpenBSD? | SunSpyda | OpenBSD Packages and Ports | 7 | 17th May 2009 09:45 PM |
| Best Web Application Language | JMJ_coder | Programming | 24 | 25th November 2008 11:25 AM |
| netbeans 6.0.1 not run | cuongvt | FreeBSD General | 5 | 6th June 2008 03:13 PM |
| [java] netbeans 6.0.1 and applets not work | Mak-Di | FreeBSD General | 1 | 12th May 2008 06:04 PM |