Clean up.

This commit is contained in:
Rob Greene 2022-01-19 19:04:45 -06:00
parent 6e654734cd
commit ca75e61ec8

View File

@ -37,74 +37,3 @@ BUILD SUCCESSFUL in 554ms
104 actionable tasks: 104 executed
## Older notes..
Just keeping these for the short-term...
$ tools/ build/libs/AppleCommander-ac-<version>.jar
Retrolambda 2.5.6
Repackaging to build/libs/AppleCommander-ac-<version>-java5.jar
This will:
1. Create the `build` directory and populate with uber-jars in `build/libs`.
2. Create a Java 5 variant of the `ac` tool in `AppleCommander-ac-<version>-java5.jar`. (Replace `<version>` with version.)
To run the command-line version of AppleCommander, use the following:
* All platforms:
`java -jar build/libs/AppleCommander-ac-VERSION.jar`
* Java 5:
`java -jar build/libs/AppleCommander-ac-VERSION-java5.jar`
To launch the GUI version of AppleCommander, use the following:
* Linux:
`java -jar build/libs/AppleCommander-linux64-gtk-VERSION.jar`
* Windows:
`java -jar build/libs/AppleCommander-win64-VERSION.jar`
* Mac OS X:
`java -XstartOnFirstThread -jar build/libs/AppleCommander-macosx-VERSION.jar`
## Raspberry Pi Notes
Available versions found are: `3.8` and `4.6`. `4.6` failed with a JNI issue.
Retrieve libraries:
$ sudo apt install libswt-gtk-3-java libswt-gtk-3-jni
Combine into one JAR (`-j` drops the directories from `*.so` files in the zip file):
$ cp /usr/lib/java/swt-gtk-3.8.2.jar org.eclipse.swt.gtk.linux.arm-3.8.2.jar
$ zip -j org.eclipse.swt.gtk.linux.arm-3.8.2.jar /usr/lib/jni/libswt-*3836*.so
Preserve JAR file in `rpi-lib`! If the file name is incorrect, the build process will show the expected filename in the error message...
Error for 4.6:
** (SWT:12220): CRITICAL **: 15:12:55.506: JNI method ID pointer is NULL for method atkObject_get_role
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at com.webcodepro.applecommander.ui.AppleCommander.launchSwtAppleCommander(
at com.webcodepro.applecommander.ui.AppleCommander.main(
Caused by: java.lang.NoSuchMethodError: atkObject_get_role
at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(
at org.eclipse.swt.widgets.Display.readAndDispatch(
at com.webcodepro.applecommander.ui.swt.SwtAppleCommander.launch(
at com.webcodepro.applecommander.ui.swt.SwtAppleCommander.launch(
... 6 more