Re: Strange Compiling Error
are you writing your codes in DOS editor?
always check the EXACT file that you are compiling when using javac
Re: Strange Compiling Error
Yes, I was.
I was compiling the right files.
I used the console in Notepad++ and cmd stopped giving me an error.
But I still have no idea what was going on because I am absolutely sure, and I tried with lots of different files and I kept getting the same error.
Some kind of bug maybe?
Or am I just clueless? :P
Re: Strange Compiling Error
I think you're compiling the wrong Java class file... if you want to get rid of many of the mundane things of coding, I'd really recommend getting an IDE. The two best Java IDE's are Eclipse and NetBeans. From what I've heard, they're pretty much on equal footing, it's mostly personal preference. For example, I prefer Eclipse because it's fast and let's you get on with the important coding stuff, but NetBeans has a powerful GUI designer, and is backed by Sun. Both are completely free, and offer a wide variety of helpful tools, many of which you probably won't use unless you're developing large projects.
Re: Strange Compiling Error
dont forget this..
always remember that the java code that you are editing in DOS MUST be SAVED at the 'bin' folder...
BIN.
it looks like the error is pointing on a particular program.... does that program still exist in one of your folders?
Re: Strange Compiling Error
I agree with what hellowolrd have said... i think you should use a better compiler
ECLIPSE or NETBEANS... most of the java programmers here are using Eclipse.. but im using netbeans.. coz
thats where i Started.
BUT!!!!
you have so many advantages using NOTEPAD or DOS, why?
think of this..
what if you encounter a PRE-HISTORIC personal computer ,(e.g windows 1990 (if theres something like that)) a very low specs? expect that there's no any full blown IDE..so what are you going to do?
as far as i experienced using DOS.. that is the LAST RESORT of a programmer.. (just a personal idea)
you just need a java library..
I encountered this kind of scenario in my school
theres an IDE 'blue J' but! i dont know how to compile or write on that version of 'blue j' , (the version of blue j that were using was not a user friendly one).
so my proffesor asked us if its ok for us to use DOS to compile java programms...
at first it was peculiar.. coz you need to compile the program step-by-step..
but later on.. i found the benefits of using DOS.... 1 is the reason that,what if I encounter a computer without an IDE?
you can also learn on how to do the classpaths stuffs. (that I never encountered)..