Move MSG and SimDag examples out of the sight of users
Use cmake's JAVA_EXECUTABLE to run Java tests.
Update copyright lines with new year.
Somehow fix the killing of actors in Java Things are somehow fixed, as all tests seem to pass, but the situation is still very messy after this commit. Contents: - Reimplement ContextJava as subclass of ContextThread to reduce duplication. - Don't send the StopRequest exception on host failure if we are in Java because *some* of the actors don't catch it well, resulting in simulation failure. - Forcefully kill the process ("exit(0)" in C) after MSG_run() because dead actors are sometimes not completely killed, preventing the simulation from ending. See the comment in ActorImpl for a better understanding of this mess and how to fix it in the future.
Update copyright headers. Simplify year ranges; end by 2018. Starting year was kept as-is. Shall it be changed to 2003?
[#!] #! tesh -> #!/usr/bin/env tesh find . \ -type f \ -not -iwholename '*.git*' \ -exec sed -i -e 'sW#!\s*teshW#!/usr/bin/env teshWg' {} \;
for some reasons, the PID was sometimes not inited correctly in Java It is supposed to be inited during actor creation, but I've seen during the SUD'17 a machine where it remained at -1. So, if the PID is negative, java will ask again to the C for a fixup. We could have fixed the problem, but chasing down JNI issues is really hard. I prefer to play nasty and safe here. Or let's call it the belt and brace approach instead.
Rename Java examples. Add prefix "java-" to target names, and s/_/-/.