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 Please Help! Having problems with class program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
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: 61008
    
  65

Please be sure to post a question only once.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Please Help! Having problems with class program