I am a beginning Java student. I am supposed to program a payroll program, and now I am getting two types of errors on 76 different occasions:
#1- Illegal Character\92\par
and
#2- ; expected.....However, I am including the ; in my programming. I have no idea what to do now. Can someone help? I am using JDK 1.6.0_16. I am using wordpad to create.
Here's the best first hint I can give you: Please be sure to use code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please read this for more information.
You can go back and change your post to add code tags by clicking the button on your post.
putting together all those snippets, it compiled and ran OK fo me.
Kevin Quarles
Greenhorn
Joined: Sep 07, 2009
Posts: 26
posted
0
Michael Dunn wrote:putting together all those snippets, it compiled and ran OK fo me.
My command prompt just comes up with 76 errors. Most are illegal character\92\par
a few says ; expected
What do I do?
If someone could tell me how to copy and paste the command prompt on this, I will show you
Kevin Quarles
Greenhorn
Joined: Sep 07, 2009
Posts: 26
posted
0
Michael Dunn wrote:putting together all those snippets, it compiled and ran OK fo me.
These are the errors I am getting:
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\froman\fprq2\fcharset0 Ti
mes New Roman;}{\f1\fswiss\fcharset0 Arial;}}
^
PayrollProgram.java:1: illegal character: \92
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\froman\fprq2\fcharset0 Ti
mes New Roman;}{\f1\fswiss\fcharset0 Arial;}}
^
PayrollProgram.java:1: illegal character: \92
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\froman\fprq2\fcharset0 Ti
mes New Roman;}{\f1\fswiss\fcharset0 Arial;}}
^
PayrollProgram.java:1: illegal character: \92
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\froman\fprq2\fcharset0 Ti
mes New Roman;}{\f1\fswiss\fcharset0 Arial;}}
^
PayrollProgram.java:1: illegal character: \92
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\froman\fprq2\fcharset0 Ti
mes New Roman;}{\f1\fswiss\fcharset0 Arial;}}
^
^
PayrollProgram.java:1: class, interface, or enum expected
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\froman\fprq2\fcharset0 Ti
mes New Roman;}{\f1\fswiss\fcharset0 Arial;}}
Make sure that you tell WordPad to save the file as a text file -- or better yet, use a text editor instead. The java compiler seems to be choking on the formatting data -- as you seemed to have saved the program in some sort of rich text format.
when you saved the document originally, the editor put in all the formatting characters...i.e. bold, centered, fonts, etc. when your editor displays the document, it doesn't display them, it uses them to figure out HOW to display it.
When you save your file as plain text, you're saying "only save the actual characters I type", so that extra stuff isn't in there.
Never ascribe to malice that which can be adequately explained by stupidity.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.