[Gvsig_english] gvSIG and Java on Mac OS X
Agustin Diez Castillo
Agustin.Diez at uv.es
Mon Oct 20 13:27:20 CEST 2008
ATTENTION PLEASE!!!
Maybe we got a problems, sextante results are not the same with your
bundle and with the "normal" mac installation.
El Oct 20, 2008, a las 1:12 PM, Benjamin Ducke escribió:
> OK. I have unbundled gVSIG and adapted the startup_script accordingly.
>
> The only issues that still need to be resolved now are:
>
> 1. I cannot manage to get the shell script started from within the App
> folder. It works fine from the command line, but a double-click on
> the App package silently fails. I have created a minimal Info.plist
> (attched) but that does not seem to do the job. Not sure whether the
> problem is with that or with the shell script.
Maybe I am wrong but this works on my side, you only need to make an
executable command file with the path to the script (see attachement).
>
>
> 2. I actually don't know whether the SoyLatte JRE runs on PowerPCs
> and 32Bit Intel. Could someone on those platforms test, please?
I will.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gvSIG.command
Type: application/octet-stream
Size: 49 bytes
Desc: not available
Url : http://runas.cap.gva.es/pipermail/gvsig_internacional/attachments/20081020/d4754b92/gvSIG.obj
-------------- next part --------------
>
>
> 3. Minor cosmetic differences between using a system-wide JRE and
> the bundled SoyLatte: SoyLatte does not apply transparency to the
> UI elements. The main application menu bar also has the "X11" menu
> instead of "gvSIG" (see attached screenshot). A more problematic thing
> might be that there is no hardware-accelerated Swing UI with SoyLatte.
> I do not know how badly that would affect the user experience, though.
>
> I have uploaded a current version of the bundle here:
>
> ftp://88.208.250.116/gvsig-unbundled.zip
>
> Please test.
>
> Given that it is impossible to resolve the Java situation consistently
> on all variations of the Mac OS, I think there should be a choice for
> users to run either the bundled SoyLatte JRE or the system-wide one
> (particularly on OS X 10.5, as there is an "official" 1.6 JRE
> available). This can be done easily by setting the "JAVA_VM=" variable
> in the startup script.
>
> How can I reliably check for the CPU architecture on Mac OS X (without
> having to look it up in some C header file)?
>
> Ben
>
> Mijail wrote:
>>>
>>> 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
>> _______________________________________________
>> 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.
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
> "http://www.apple.com/DTDs/
> PropertyList-1.0.dtd">
> <plist version="1.0">
> <dict>
> <key>CFBundleExecutable</key>
> <string>gvsig_launcher.sh</string>
> <key>CFBundleIconFile</key>
> <string>logo gvsig.icns</string>
> <key>CFBundleIdentifier</key>
> <string>com.iver.cit.gvsig</string>
> <key>CFBundleInfoDictionaryVersion</key>
> <string>6.0</string>
> <key>CFBundleName</key>
> <string>gvSIG</string>
> <key>CFBundlePackageType</key>
> <string>APPL</string>
> <key>CFBundleShortVersionString</key>
> <string>1.1.2</string>
> <key>CFBundleSignature</key>
> <string>????</string>
> <key>CFBundleGetInfoString</key>
> <string>gvSIG 1.1.2</string>
> <key>CFBundleAllowMixedLocalizations</key>
> <string>false</string>
> <key>CFBundleDevelopmentRegion</key>
> <string>Spanish</string>
> <key>CFBundleVersion</key>
> <string>1045</string>
> </dict>
> </plist>
> <gvSIG-JRE16.jpg>_______________________________________________
> 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