But basically, it has to do with how the HelloJavaWorld.java was encoded (Text-Wise), what did you utilize to make the java file?

I'd recommend you an IDE or a text-editor like Notepad++ and ensure the encoding is either "UTF without BOM" or "ANSI"

02-13-2012, 04:30 AM

rtkwar

Thank You

iwrite java file with notepad itry change encoding to UTF-8 but iget 2 error
but ichange encoding to ANSI its work good now ,thank you

02-13-2012, 11:54 PM

welsh

Quote:

Originally Posted by rtkwar

iwrite java file with notepad itry change encoding to UTF-8 but iget 2 error
but ichange encoding to ANSI its work good now ,thank you

I'm glad that helped, Straight UTF-8 would not of worked (I believe), it would of need to be "UTF without BOM"

12-05-2012, 11:16 PM

Silvia_Y

I am also learning Java. A very typical example. Thanks for the link. It's useful.

12-06-2012, 09:58 PM

Pam_Y

Keep learning Java. I am also very intereated in Java.

12-27-2012, 03:15 PM

justinbellaa03

Hello,
I have visited this forum. I am also beginner in java.this section is very beneficial for me and it gives me lots of information about programming that will be very useful to me in the future and i am also giving you this expert link for your queries.
thanks.
-------------------ATI RADEON HD 5670 – SERIES GRAPHICS CARDS FROM AMD