[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Running AppleCommander GUI?



In article 
<1c677999-d039-430f-92e3-6a90eac28221@x38g2000pri.googlegroups.com>,
 schmidtd <schmidtd@my-deja.com> wrote:

> 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

For the Mac bundle, I get swt.jar and the JNI libraries from the Eclipse 
distribution itself:

<http://www.eclipse.org/downloads/>

> (I'm unsure if the -swt switch is passed in - or if Java will consume 
> it.)

It's seen an argument to main():

<http://applecommander.cvs.sourceforge.net/viewvc/applecommander/AppleCom
mander/src/com/webcodepro/applecommander/ui/AppleCommander.java?revision=
1.37&view=markup>

-- 
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>