ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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'm a first year programming student, so bear with me on this one.
I've been programming on Windows (JCreater) because that's what we mostly use in class. However, I wanted to try writing a program on Linux this time to see what it's like. So far, it's been going very smoothly compared to Windows (as you might expect), except javac/gij cannot seem to find the Scanner class:
Code:
*** Semantic Error: Type "Scanner" was not found.
I made sure that I had "import java.util.*;" in my file. So, what's wrong?
You might want to install the Sun's JDK instead of gcj-java. gcj-java is still very bad and as far as I know, it does not support Java 5 (and I think the Scanner is a Java 5 feature).
No problems vmlinuz.gz . I'm sure gcj will catch up though. Open-source projects are developed at amazing steps. I keep my fingers crossed for gcj though. Java is my preffered programming language, but I dislike it's portability (it will run only where Sun wants it to run, for example). If gcj reaches an usable stage, java could be used more widely, from operating systems such as BeOS up to, who knows, game/consoles programming.
However, the way gcj is today, it's better to stick with Sun Java SDK though :\ (but still keep an eye on gcj progresses )
Best of luck!
Last edited by Mega Man X; 04-05-2006 at 02:36 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.