Re: Portable ImageJ

Posted by Alan Dipert on
URL: http://imagej.273.s1.nabble.com/Portable-ImageJ-tp3700446p3700456.html

Hello,
I've used this software:
http://launch4j.sourceforge.net/index.html

to wrap Jars so they behaved like Windows applications.  Supposedly launch4j
can do the same on Mac OS X, but I haven't messed with it an awhile so I'm
not sure.  Hope this helped,

Alan

On 1/30/07, Johannes Schindelin <[hidden email]> wrote:

>
> Hi,
>
> On Tue, 30 Jan 2007, Christophe Leterrier wrote:
>
> > I'd like to know if it's possible to set up a portable version of ImageJ
> > on a USB stick :
> >
> > - If Java is on the stick, it ensures reproducibility across computers.
> > But it will not possible to have a USB key that work both on Windows and
> > Mac computers, because Java is different on those machines, right ? In
> > this case, I'm more interested by a Mac USB stick.
>
> In theory, it would be possible to include JVMs for Linux, Mac _and_
> Windows, starting the one which applies to the current machine.
>
> You'd do it like this:
>
> relative/path/to/jvm/java -Dplugins.dir=path/to/plugins -jar ij.jar
>
> However, AFAICT the Mac Java (still) is distributed by Apple, and I don't
> know if they allow you to just install it on a stick, too.
>
> Furthermore, back when I still had an iBook, I could not upgrade to a
> newer JVM, since it required a newer MacOSX, which I was not ready to buy.
>
> > - How to tell ImageJ (Mac version) to use a Java VM that is on the key ?
> > I don't want to use any command line instruction, a "launch ImageJ"
> > script could be OK for the user.
>
> I saw somebody do an (MacOSX) Icon for a Java program, but I cannot
> remember how. Sorry.
>
> Hth,
> Dscho
>