Cleaned up comments w.r.t. JNA

This commit is contained in:
nathan 2016-04-05 14:05:53 +02:00
parent 925394fd2e
commit 4c3c167a06
3 changed files with 3 additions and 17 deletions

View File

@ -20,7 +20,6 @@ import dorkbox.systemTray.MenuEntry;
import dorkbox.systemTray.SystemTray;
import dorkbox.systemTray.SystemTrayMenuAction;
import java.io.File;
import java.net.URL;
/**
@ -35,12 +34,7 @@ class TestTray {
public static
void main(String[] args) {
// ONLY if manually loading JNA jars.
//
// Not necessary if using the official JNA downloaded from https://github.com/twall/jna AND THAT JAR is on the classpath
//
System.load(new File("../../resources/Dependencies/jna/linux_64/libjna.so").getAbsolutePath()); //64bit linux library
// make sure JNA jar is on the classpath!
new TestTray();
}

View File

@ -28,7 +28,6 @@ import javafx.scene.control.Button;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;
import java.io.File;
import java.net.URL;
/**
@ -45,12 +44,7 @@ class TestTrayJavaFX extends Application {
public static
void main(String[] args) {
// ONLY if manually loading JNA jars.
//
// Not necessary if using the official JNA downloaded from https://github.com/twall/jna AND THAT JAR is on the classpath
//
System.load(new File("../../resources/Dependencies/jna/linux_64/libjna.so").getAbsolutePath()); //64bit linux library
// make sure JNA jar is on the classpath!
launch(TestTrayJavaFX.class);
}

View File

@ -24,7 +24,6 @@ import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;
import java.io.File;
import java.net.URL;
/**
@ -41,10 +40,9 @@ class TestTraySwt {
public static
void main(String[] args) {
// make sure JNA jar is on the classpath!
System.setProperty("SWT_GTK3", "0"); // Necessary for us to work with SWT
System.load(new File("../../resources/Dependencies/jna/linux_64/libjna.so").getAbsolutePath()); //64bit linux library
new TestTraySwt();
}