Hello,
So, not sure how you did try to compile the examples and which operating system you are using but I will try to answer
assuming you tried to compile the file in the command line using a Linux or Mac shell.
You cannot compile the class because there is a CLASSPATH problem. The classpath environment variable does tell java
where to find sources or binaries classes. You have to put in the classpath the folders and jar files that are necessary to run the class.
In the case of the Melting examples, you have to put the 'src' folder that contain the examples package, the melting5 jar and if you
are using the recent source repository, the jar file htsjdk-2.3.0.jar located in the lib folder.
You have to be at the root of the melting files for the following examples command to work:
To compile the example classes:
javac -classpath ./src:executable/melting5.jar:./lib/htsjdk-2.3.0.jar src/examples/MainTest.java src/examples/MainTestAzobenzene.java
To run the class:
java -classpath ./src:executable/melting5.jar examples.MainTestAzobenzene
As a side note, the examples are included in the melting5 jar file, so you could just run:
java -classpath executable/melting5.jar examples.MainTestAzobenzene
to execute the MainTestAzobenzene example, no need to compile it.
Hope this help, don't hesitate to as kif you have any problems.
cheers,
Nico