[Gvsig_english] gvSIG and Java on Mac OS X
Mijail
hmijail at gmail.com
Fri Oct 17 16:05:31 CEST 2008
>
> And indeed: IT WORKS (using the JAI from Apple's JDK 1.5)!
>
Yipee-ki-yay!! :D
> GvSIG on Mac OS X 10.4 running on a bundled FreeBSD 1.6 JRE (in your
> face, Apple)!
>
> Now, the last question, coming from a Mac ignoramus: how do I get
> my shell script to execute automatically instead of the JavaStubs
> launcher when the user double-clicks the gvSIG package?
>
In the *.app/Contents/Info.plist you'll find an entry pointing to the
actual file to be executed (which is supposed to be inside *.app/
Contents/MacOS). And that file can be a shell script.
Now, you don't need the complex bundle structure we have been using
for gvSIG <2. You only need the inner *.app bundle; the "outer" one is
only to check for and install JAI-ImageIO if needed. Which is not your
case because you already put it into SoyLatte.
(gvSIG 2 will also do without the outer bundle, since we have learnt
that JAI-ImageIO causes Firefox and Opera to die when loading Java
applets, and so we don't install it system-wide but use it as an
extra .jar in the classpath)
(remember to take out the jai-imageio.jar from your ~/Library/Java/
Extensions !)
A hopefully minor problem will be that you won't be able to "osx-ize"
the user experience as much as with the Apple-provided JavaStub.
Expect problems with the app icon and name while running, for example.
(or maybe SoyLatte has already been prepared for that?...). I think
you could overcome that by creating your own substitute of the
JavaStub, with a little Cocoa program which would present itself as
gvSIG to the OS and start an embedded JVM which would run the actual
program....
Also, can you confirm that the native functionalities (like loading a
TIFF) do work?
I think we could polish a bit the whole thing and prepare it so
different versions of gvSIG can be dropped-in, if you agree.
Cheers!
> Thanks much for your help, Mijail!
>
> Ben
>
> P.S.: Yes, I copied the JAI I/O which the gvSIG installer put into
> ~/Library/Java/Extensions ...
>
>
>
> Mijail wrote:
>> Maybe good news: the log you sent now says this:
>> " La máquina virtual con la que se ejecuta gvSIG no tiene JAI
>> instalado"
>> Which is spanish for "JAI is not installed in the VM executing
>> gvSIG". (I guess that should be localized or translated! :P)
>> Also, in this log the JCRS error looks directly related to JAI:
>> ERROR [AWT-EventQueue-1] (?:?) - Cannot locate extension
>> classorg.gvsig.crs.JCrsExtension
>> java.lang.NoClassDefFoundError: javax/media/jai/EnumeratedParameter
>> Problem is, ... where to get JAI for SoyLatte?
>> If it is not available as opensourced, my first idea is to try the
>> JAI installed in OS X's Java, which you will find in /System/
>> Library/Java/Extensions/ . (I hope Apple didn't do anything unholy
>> to them)
>> Or maybe the .jar's (that is, the non-native parts) of the JAI
>> distribution for Linux or Windows.
>> (and while we're at it, which JAI-ImageIO did you use? the one
>> included with gvSIG, I hope...).
>> El 17/10/2008, a las 14:24, Benjamin Ducke escribió:
>>> La máquina virtual con la que se ejecuta gvSIG no tiene JAI
>>> instalado
>> _______________________________________________
>> Gvsig_internacional mailing list
>> Gvsig_internacional at runas.cap.gva.es
>> http://runas.cap.gva.es/mailman/listinfo/gvsig_internacional
>
>
> --
> Benjamin Ducke
> Senior Applications Support and Development Officer
>
> Oxford Archaeology Ltd
> Janus House
> Osney Mead
> OX2 0ES
> Oxford, U.K.
>
> Tel: +44 (0)1865 263 800 (switchboard)
> Tel: +44 (0)1865 980 758 (direct)
> Fax :+44 (0)1865 793 496
> benjamin.ducke at oxfordarch.co.uk
>
>
>
>
> ------
> Files attached to this email may be in ISO 26300 format (OASIS Open
> Document Format). If you have difficulty opening them, please visit http://iso26300.info
> for more information.
>
> _______________________________________________
> Gvsig_internacional mailing list
> Gvsig_internacional at runas.cap.gva.es
> http://runas.cap.gva.es/mailman/listinfo/gvsig_internacional
More information about the Gvsig_internacional
mailing list