logic: handle java not found on windows and mac

* implemented java will not be used if it is not found on system
* add jni libraries weak linked for Mac
* use dlopen for lazy library loading
* added java path to preferences
This commit is contained in:
malte_langkabel
2016-08-22 14:24:53 +02:00
parent 98eb3f124d
commit 858364b385
9 changed files with 154 additions and 37 deletions
+3 -3
View File
@@ -20,7 +20,7 @@ public class JavaIndexer
{
public static void processFile(int address, String filePath, String fileContent, String classPath)
{
System.out.println("indexing file: " + filePath);
// System.out.println("indexing file: " + filePath);
try
{
@@ -33,8 +33,8 @@ public class JavaIndexer
{
try
{
JarTypeSolver jarTypeSolver = new JarTypeSolver(path);
typeSolver.add(jarTypeSolver);
JarTypeSolver solver = new JarTypeSolver(path);
typeSolver.add(solver);
}
catch (IOException e)
{