$ curl -O https://cs.gmu.edu/~eclab/projects/ecj/ecj.tar.gz
$ tar -xzvf ecj.tar.gz
$ cd ecj
$ make
$ java ec.display.Console
$ curl -O https://cs.gmu.edu/~eclab/projects/ecj/libraries.tar.gz
$ tar -xzvf libraries.tar.gz
$ java -cp "jar/ecj.23.jar:libraries/*.jar" ec.display.Console
Exception in thread "main" java.lang.NullPointerException
at javax.swing.ImageIcon.<init>(ImageIcon.java:217)
at ec.display.Console.getPlayButton(Console.java:181)
at ec.display.Console.getJToolBar(Console.java:163)
at ec.display.Console.getJContentPane(Console.java:535)
at ec.display.Console.initialize(Console.java:508)
at ec.display.Console.<init>(Console.java:97)
at ec.display.Console.main(Console.java:494)
Hi.
At this point I'll be happy just to run make and not see errors. Please bear with me.
I see JAR files here. The jar command apparently works much like tar. I see a directory structure like a tar list function. The javac command has a -sourcefile option. The man page says this can be used to allow the accessing of JAR file content, like CLASSPATH but it will do JAR files as well.
If true then I need to point -sourcefile at the libraries directory where the jar files reside? Yes?
-sourcefile ~/ecj-base/libraries/*.jar
in my case?
Only experience I have with Java is as a SysAdmin having to maintain five or six old versions of JDK around. grumble
Did you install the two libraries (JFreeChart and iText) first? Use the versions in the support libraries distribution on the ECJ website. It should compile clean. Note: the GUI is old and not particularly useful at this point. Run from the command line! Sean
--
Chris Johnson [log in to unmask] Ex SysAdmin, now, writer Not a shred of evidence exists in favor of the idea that life is serious.
(Brendan Gill)