[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Running AppleCommander GUI?
On May 26, 10:52 am, Steven Hirsch <snhir...@gmail.com> wrote:
> First, a disclaimer: I do not like Java.
Yes, yes.
> Does anyone know the magic incantation for getting the GUI up on Linux?
There's a reason Rob bundled AppleCommander into an executable on
Windows and an app on Mac. And there's a reason why I hide the Java
command line of ADTPro behind a script for Unix-alikes. It's
complicated.
First, give full qualification to the jars you need. The classpath,
or -cp command line switch will do that for you:
-cp /usr/lib/java/swt-gtk-3.5.1.jar:/wherever/AppleCommander-1.3.5.jar
But then you also need to pull the main class out of the manifest;
that is: com.webcodepro.applecommander.ui.AppleCommander
Then, there are some native libraries for SWT too, aren't there?
There are on Windows and Mac. For those, you need to give the -
Djava.library.path= command line switch, and point to those, too.
So I can get you as far as that - there's still the issue of 64-bit
SWT native libraries, which I trust you know where are. A full
invocation might look like this:
java -Djava.library.path=/path/to/SWT/jnilibs -cp /usr/lib/java/swt-
gtk-3.5.1.jar:/wherever/AppleCommander-1.3.5.jar
com.webcodepro.applecommander.ui.AppleCommander -swt
(I'm unsure if the -swt switch is passed in - or if Java will consume
it.)