I try to compile a Java program but fails in the Import section of the code:
< Pre> import java.net *; Import java.io * *; Import java.util. *; Import java.text *; Import java.awt. *; // import java.awt.image. *; Import java.awt.event. *; // import java.awt.image.renderable *; Import javax.swing *; Import javax.swing.border. *; // import javax.swing.border.EtchedBorder; // import javax.media.jai *; // import javax.media.jai.operator *; // import com.sun.media.jai.codec *; // import java.lang.reflect *;
How can I fix the problem in a linux debian machine? Thanks
Java Compiler Compiler Version 4.1d1 (Parser Generator) (no argument to type "javacc" help) Read the file from SAVE.JSigpac.java. . . Org.javacc.parser.ParseException: alleged "import" "import" "at row 443, column 1. was expecting:" PARSER_BEGIN "... 1 errors detected and 0 warnings
javacc is not to compile Java source files, use javac !
Comments
Post a Comment