You will be handing in project 2 through turnin as a single JAR file called proj2.jar. This JAR file should contain ALL files needed to compile and run your program. This includes source files, class files, and any other auxiliary files. You do not need to include the ANTLR, CUP, or JFlex JAR files.
You must submit your project through turnin before the deadline specified by the professor. The turnin facility will be disabled after the deadline passes. You must also submit a printout of your source files in class. Please put your UTCS username on the first page of the printout so I can find your turnin directory.
Your program should run without requiring any external JARs other than the ANTLR, CUP, and JFlex JAR files (Please contact me if your submission needs other JAR files).
It is very important for the JAR file to have the right directory structure because this affects the classpath. If you have the wrong directory structure, I will be unable to compile or run your program. For this assignment, the main class will be Semantics, which is the main class used in the Clite student source. All your source files should be in the default package (a bad idea in the real world, but makes grading easier). Since your source files are in the default package, all your source and class files should be at the top-level of the JAR. Please check the contents of your JAR file before handing it in!
You may package the JAR file through Eclipse. Be sure to include source files, class files, and resource files. You do not need to include the eclipse configuration files such as .project, .classpath, etc. Please note that eclipse will create the right directory structure IF you specified the source folders for the project correctly.
java -classpath antlr-2.7.6.jar:proj2.jar Semantics helloworld.cppI should also be able to compile your program as follows:
jar xvf proj2.jar javac -classpath antlr-2.7.6.jar *.javaIf you are not using ANTLR 2.7.6, replace the antlr-2.7.6 with all the JARs needed by your program.