File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes IDE and code standards problems. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "IDE and code standards problems." Watch "IDE and code standards problems." New topic
Author

IDE and code standards problems.

Michael Baca
Greenhorn

Joined: May 27, 2004
Posts: 17
I'm working through some tutorials from another post I made about a year ago and using both Netbeans and Emacs (text editor) under Linux. There seems to be a different code standard under Netbeans then when compiling on the console.

For example I can use "throws IOException" when compiling on the console, however with Netbeans I get an error about an unresolved symbol and after some expiremention I found I can use "throws Exception" instead. Another example is "aCharcter = (char)System.in.read();" works fine on the console, however in Netbeans it just skips to the next line without waiting for input from the keyboard..

So maybe the tutorials I'm using are out of date? Or does Netbeans just use a different coding standard? Makes no sense to me, but that's all I can come up with.

I've tried Eclipse also, but get random crashes and was told I should try another version of VM. I had one h*ll of a time getting an older version installed once before, and don't want to go through it again. I am running SDK 1.4.2 and 1.4.2 Java 3 Runtime Environment.


So anyway does anyone have some advice? I don't really mind coding on Emacs and compiling on the console, but I prefer the comfort and ease of use of an IDE.
Mike Gershman
Ranch Hand

Joined: Mar 13, 2004
Posts: 1272
The instructors at JavaRanch all suggest you delay using an IDE until later in the learning process.

It sounds to me like the autocomplete feature of NetBeans is acting up again. Does anyone know a more stable IDE we can use?


Mike Gershman
SCJP 1.4, SCWCD in process
Mike Gershman
Ranch Hand

Joined: Mar 13, 2004
Posts: 1272
BTW, did you remember to import java.io.IOException?
Michael Baca
Greenhorn

Joined: May 27, 2004
Posts: 17
Well that's good advice. Avoiding IDE's at first that is. Emacs has syntax highlighting but it's not all that great. Syntax highlighting is the main reason I wanted to use an IDE.The other features I've lived without for a long time, so no biggie there.

Actually any importing I tried gave me errors on the next line... ";" expected on the very next line (no matter what it was) was the error I got.

So I guess it's all just a Netbeans problem. I was going to try JEdit, however Suse 9.2 Pro has custom Java packages which cause dependency problems with some of the 'jpackages' so.. I guess I'll stick with Emacs for now, or until I get me Eclipse problem settled.
Michael Baca
Greenhorn

Joined: May 27, 2004
Posts: 17
I got Eclipse to work. I just switched over to Gnome (v. 2.6) and it works perfectly so far. The random crashes seem to have been just a KDE issue.
David Harkness
Ranch Hand

Joined: Aug 07, 2003
Posts: 1646
Eclipse is a great IDE, and nothing says you have to use all the whiz-bang features while you're starting out. Syntax highlighting is key and API lookup can be very nice for beginners and experts alike.

The error "; expected" can be very cryptic. I know this sounds crazy, but it means that the compiler expected to see a ";". Whacky, eh? You didn't happen to have a ";" at the end of your import line, did you?Welcome (back) to JavaRanch!
Michael Baca
Greenhorn

Joined: May 27, 2004
Posts: 17
Actually I'm not really sure what I did wrong. But it works fine in Eclipse for some reason. I have actually borrowed a book from a friend "Just Java 2 6th Edition" and working my way throught that. Not really sure however if this book is quite what I need, but I've learned quite a bit so far.

Problem is with most books is that there is just too much reading, and not enough actual coding. I learn better by just jumping in, and I get bored very quckly by having to read page after page about variables. I've done programming before, so all this is not new to me. Just new to Java.. Again.

Anyway thanks for the Welcome back. This is the first place that came to mind when I started back with Java. If only there was more sites like this one.
David Harkness
Ranch Hand

Joined: Aug 07, 2003
Posts: 1646
If you want some project ideas that you can use to get up to speed, check out the links in this post from beginning of February. I poked around briefly on some and they had a good collection of fun things to do to practice coding. Nothing helps motivate like a good diversion of writing a simple maze game instead of yet another ComplexNumber implementation.
Michael Baca
Greenhorn

Joined: May 27, 2004
Posts: 17
Thanks a ton. Those sites look more entertaining then reading for hours to write out a few lines. Bookmarked that post for future reference also.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IDE and code standards problems.