LinuxAnswers DiscussionThis forum is to discuss articles posted to LinuxAnswers.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have just skimmed the article, and it looks great. I will go through it in more detail later.
As someone who has been starting with Java only recently, these suggestions may come in handy to other beginners such as I:
1. By all means get a sophisticated IDE such as Netbeans or Eclipse, play around with it, and build a few apps, THEN PUT IT AWAY. It only gets in the way of learning the basics.
2. Download DrJava, which is a very simple, yet very supportive learning environment, and much easier to be productive in than using 'just' a text editor. It is open source, free, and is written in Java.
3. Download the full documentation from Sun. The API is here
4. Download, and work through Thinking in Java which is a free download, and will teach you tons.
It might be worthwhile to include a link to Blackdowns' site to download Java Linux stuff from. The site has links to loads of useful sounding programs too
I can say, it is good for beginers, but it lacks important fact, like what the command one should issue to compile these codes on Linux, and how one can see the output? It would be better if you include such topics.
Yah, most know how to compile java source file with javac filename.java and run the compiled class file with java filename, but I was looking for different thing. I have installed Red Hat Linux 9, and with that there is free GNU, compiler and class file interpretor. After hard try, I found out how to use gcj and gij. So here is the command how to compile java on RedHat9.
To compile source file(filename.java) gcj -C filename.java
To run calss file (filename.class) gij filename
I hope this will help people like me, but I am still looking for how to run Applet on RedHat 9, I don't want to use Mozilla, because there is no plug-in installed and to install all these another headache for me as I know very less about linux.
Have you typed this up the code yourself or have you tried copying and pasting into the .java file? Some times there can be typos that have an effect of the compilation of the programs. I'll check that out though.
darin3200 -- I tried again, thus time using Gentoo, I get the same result.
Last time I used Fedora Core 2. I'm using j2sdk1.4.2_04 on
both systems. -- Thanks for the reply -- Larry
Originally posted by lmellen darin3200 -- I tried again, thus time using Gentoo, I get the same result.
Last time I used Fedora Core 2. I'm using j2sdk1.4.2_04 on
both systems. -- Thanks for the reply -- Larry
Sorry it took so long to reply, I just saw this post today. I'm not sure what is going wrong, I am currently emerging j2sdk on my fresh gentoo install but I tried compiling it on j2sdk1.4.2_04 under Windows 2000 Pro and it worked fine. I'll try compiling it again under Gentoo once j2sdk is installed and get back to you.
True, nice article, but the formatting is confusing - especially for beginners. We should be teaching them to correclty format and indent code as this will serve them throughout their careers as programmers.
I also think that it is usually easier to read if you create one instance of the BufferedReader and re-use this.
so
Code:
BufferedReader keyboardInput = new BufferedReader(new InputStreamReader(System.in)))
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.