This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Please Help! Having problems with class program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

Please Help! Having problems with class program

Kevin Quarles
Greenhorn

Joined: Sep 07, 2009
Posts: 26
I am having problems with errors. I am using Wordpad and command prompt. I type in javac (my program name).java and I am getting 76 errors.

Here is a sample of the errors:

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fprq2\fcharset0 Ar
ial;}}
^
PayrollProgram.java:1: illegal character: \92
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fprq2\fcharset0 Ar
ial;}}
^
PayrollProgram.java:1: illegal character: \92
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fprq2\fcharset0 Ar
ial;}}
^
PayrollProgram.java:1: illegal character: \92
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fprq2\fcharset0 Ar
ial;}}

PayrollProgram.java:1: class, interface, or enum expected
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fprq2\fcharset0 Ar
ial;}}

PayrollProgram.java:3: illegal character: \92
{\*\generator Msftedit 5.41.21.2509;}\viewkind4\uc1\pard\cf1\f0\fs24 // PayrollP
rogram.java\par
^
PayrollProgram.java:5: illegal character: \92
\par
^
PayrollProgram.java:7: illegal character: \92
\par
^
PayrollProgram.java:8: illegal character: \92
public class PayrollProgram\par
^
PayrollProgram.java:9: illegal character: \92
\{\par
^
PayrollProgram.java:9: illegal character: \92
\{\par
^
PayrollProgram.java:9: ';' expected
\{\par
^
PayrollProgram.java:11: illegal character: \92
\par

Here is my code:


Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60741
    
  65

Please be sure to post a question only once.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
jQuery in Action, 2nd edition
 
subject: Please Help! Having problems with class program
 
Similar Threads
sql file problem
Where do the CLDC class files need to be placed?
Error problems
installing java
Replace unuseless characters in a String