forked from I2P_Developers/i2p.i2p
Notes and logging re: compiling with Java 8
This commit is contained in:
@ -285,6 +285,26 @@ class BuildExecutor implements Runnable {
|
||||
|
||||
public void run() {
|
||||
_isRunning = true;
|
||||
try {
|
||||
run2();
|
||||
} catch (NoSuchMethodError nsme) {
|
||||
// http://zzz.i2p/topics/1668
|
||||
// https://gist.github.com/AlainODea/1375759b8720a3f9f094
|
||||
// at ObjectCounter.objects()
|
||||
String s = "Fatal error:" +
|
||||
"\nJava 8 compiler used with JRE version " + System.getProperty("java.version") +
|
||||
" and no bootclasspath specified." +
|
||||
"\nUpdate to Java 8 or contact packager." +
|
||||
"\nStop I2P now, it will not build tunnels.";
|
||||
_log.log(Log.CRIT, s, nsme);
|
||||
System.out.println(s);
|
||||
throw nsme;
|
||||
} finally {
|
||||
_isRunning = false;
|
||||
}
|
||||
}
|
||||
|
||||
private void run2() {
|
||||
List<TunnelPool> wanted = new ArrayList<TunnelPool>(MAX_CONCURRENT_BUILDS);
|
||||
List<TunnelPool> pools = new ArrayList<TunnelPool>(8);
|
||||
|
||||
@ -423,7 +443,6 @@ class BuildExecutor implements Runnable {
|
||||
|
||||
if (_log.shouldLog(Log.WARN))
|
||||
_log.warn("Done building");
|
||||
_isRunning = false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user