Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Ready to Program Java IDE and Unicode?
Index -> Programming, Java -> Java Help
Goto page 1, 2, 3  Next
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
FileFantasy




PostPosted: Mon Nov 20, 2006 9:33 pm   Post subject: Ready to Program Java IDE and Unicode?

Hey there, I'm trying to get unicode characters to display, but I'm pretty sure I'm missing a lot of coding. I currently don't have a comp sci course, so I don't have a teacher to ask for now... So here's my current code:

code:
import java.awt.*;
import hsa.Console;
public class A
{
    static Console c;   
    public static void main (String[] args)
    {
        c = new Console ();
        c.print("\u4e00");
    }
}


(The Console basically works as System.out.print)

But when I run this code, I either get a question mark (with System.out.print), or I get a rectangular box (with c.print)

So, I really need some help with this, thanks.
Sponsor
Sponsor
Sponsor
sponsor
wtd




PostPosted: Tue Nov 21, 2006 11:46 am   Post subject: (No subject)

If you're not in a class that requires it, I would personally recommend using something other than RTP, such as the standard tools. You'll find there's a lot more support available.

I will be sure to test something comparable using standard Java 1.5 the next time I have access to a decent Java setup. Or in other words, when the wife lets me reboot into Edgy. Smile
FileFantasy




PostPosted: Wed Nov 22, 2006 10:02 pm   Post subject: (No subject)

I personally don't like RTP, but my school uses it for both Gr11 and Gr12 Comp Sci, so I'm kinda forced to use it... Bleh...
ericfourfour




PostPosted: Wed Nov 22, 2006 10:41 pm   Post subject: (No subject)

It sucks that schools use RTP. I'm trying to convince my teacher to get NetBeans. It is on "the" Java website, it is free, it can run programs with the press of one button, it is up to date (!!!!), there are various shortcuts, it has syntax highlighting, it even has error underlining, it gives you better feedback on errors, the list goes on. The only positive thing RTP has is a simple UI.

The fact that it is free is a big point. If I remember correctly is costs around $1000 to put RTP on 200 computers. Let alone the ignorant students being sucked into buying it from the teacher's false advertisement (ex. saying "other Java compilers don't give feedback on errors") and saying "you get a discount if you purchase it through the school" (it only costs $40 now).

It is ridiculous how the citizens pay their taxes and $1000 of that goes into a piece of garbage Java IDE instead of textbooks or *gasp* programming teachers who actually know how to teach Java (mainly not using Holt Softs library).

/rant
FileFantasy




PostPosted: Sat Dec 02, 2006 1:43 pm   Post subject: (No subject)

Anyone else want to share any info?
Aziz




PostPosted: Sat Dec 02, 2006 5:11 pm   Post subject: (No subject)

I'll also advise against RTP, try JCreator or NetBeans, Eclipse, etc. Even a good text editor (notepad++) and command-line works better than RTP. You should be using the Java 5 (1.5) or even pre-release 1.6.

Anyways, addressing your problem, I'm not sure of what to do, but try looking around the Java Tutorial: http://java.sun.com/docs/books/tutorial/index.html

google unicode in java
FileFantasy




PostPosted: Sun Dec 03, 2006 3:36 pm   Post subject: (No subject)

See, the thing is that I'm planning for my Gr12 Comp Sci ISU right now, and it involves using East Asian countries' languages (CJK)...

And because this is for school, I'm almost positive I have to do it in RTP, unless I can convince my teacher to teach the entire course in another IDE, which I doubt will happen.
ericfourfour




PostPosted: Sun Dec 03, 2006 4:58 pm   Post subject: (No subject)

There shouldn't be a problem programming in RTP as long as you stay away from that console library that holt soft made. RTP is out of date but chances are your teacher is not going to be teaching anything new. I think RTP uses Java 1.4 so I'd look into what 1.5 has that 1.4 doesn't (I know one of them is generics) so you could use your own IDE at home.
Sponsor
Sponsor
Sponsor
sponsor
Aziz




PostPosted: Tue Dec 05, 2006 9:15 am   Post subject: (No subject)

I would recommend using a different IDE at home and using an up-to-date JDK, such as 1.6 (you can get the pre-release now).

Also, check out the Java Tutorial's Internationalization trail. It might be able to help you in using different languages.
FileFantasy




PostPosted: Wed Dec 06, 2006 8:18 pm   Post subject: (No subject)

Good news. I talked to the tech teacher, and she agreed to not use RTP.

She says she's looking into an IDE called JScript or something, I forgot exactly.

Is that any good (if anyone knows what it is)?
[Gandalf]




PostPosted: Wed Dec 06, 2006 8:31 pm   Post subject: (No subject)

JCreator maybe?

Really, it doesn't much matter what IDE you use, as long as it's not RTP, and uses an updated Sun compiler. If you want to keep it simple, all you need to make Java programs is a text editor (like TextPad and WordPad) and the Java SDK.
Aziz




PostPosted: Wed Dec 06, 2006 10:55 pm   Post subject: (No subject)

Indeed. With JCreator you can use any JDK and add documentation to it. You can get a school license, too. www.jcreator.com
FileFantasy




PostPosted: Mon Dec 11, 2006 12:24 am   Post subject: (No subject)

--Ack, why is there no edit button?! I had to delete this post and repost it because I had more to talk about--

Yes, I asked again, it's JCreator.

I played around with NetBeans for a bit. I must say, I'm so used to RTP (used it for Gr. 11) that it seems quite confusing to me. But ya, still have no clue how to display CJK characters in a window. However, I can output CJK characters into an xml file, but that's not what I want.

Edit:
I just checked out the JCreator site and found out that there's Pro and LE, and LE is completely free. Do you think LE can be mass-used (like in a school) without any license or anything? And does it lack any features that are important when learning about the language? (More importantly, does it lack any features that RTP has other than the custom-made classes?)

Because if it's suitable for school use, it's easier to get them to change IDE if they know they don't have to pay a cent... You know how schools are...
Aziz




PostPosted: Mon Dec 11, 2006 8:45 am   Post subject: (No subject)

LE is light edition. It doesn't have as many features as pro (i've got pro, it's great), but none are essential to learning. No IDE is essential to learning, though, but it does make it easy and allows the students to focus more on coding than compiling. However, unlike RTP, in better IDEs such as JCreator, you still have to compile, it's just binded to a function in the program. LE's got syntax highlighting (though you may need to replace the file with and older one because its missing a bunch of J words) and i works great. Pro's got code completion and popup, but its more of a convience issue than anything. If your school wants to be cheap (like most) just have them install LE on the machines.
wtd




PostPosted: Mon Dec 11, 2006 9:34 am   Post subject: (No subject)

Aziz wrote:
If your school wants to be cheap (like most) just have them install LE on the machines.


Or Eclipse or Netbeans.
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 3  [ 32 Posts ]
Goto page 1, 2, 3  Next
Jump to:   


Style:  
Search: