Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[udig-devel] Running uDig on Linux x64

Hi!

I think I have successfully bundled a Linux 64 Java Runtime Environment (jre6u20) with ImageIO-EXT support for Ubuntu 9.10 64bit (AMD processor). The java target is just a combination of all the stable releases of JAI, ImageIO and ImageIO-EXT put in the right locations (jars to ../jre/lib/ext and *.so to ../jre/lib/amd64 and so on).

I have tested the target against a custom uDig application I'm developing, not the latest uDig release.
The custom applications runs without any missing native library warnings (other than the Kakadu library which is not installed), shape and WMS layers.  Since I'm relatively new to the uDig framework, I have not research it thoroughly enough to know of any unit test used to verify that a java target is sound for a given os platform. 

Could anyone verify that the following procedure will generate a sound java target for the x86_64 linux platform?

  1. Download jre6u20 from java.sun.com: jre-6u20-linux-x64.bin
  2. Download JAI 1.1.3 from jai.dev.java.net: jai-1_1_3-lib-linux-amd64.tar.gz
  3. Download ImageIO 1.1 from imageio.dev.java.net: jai_imageio-1_1-lib-linux-amd64.tar.gz 
  4. Download ImageIO-EXT 1.0.5 from imageio-ext.dev.java.net
    1. imageio-ext-1.0.5-linux64-ecw-lib.tar.gz (native libraries)
    2. imageio-ext-1.0.5-libraries (jars)
    3. gdal_data-1.4.5
  5. Unpack all files into any folder following these rules
    1. jre6u20 to any folder
    2. jars in JAI 1.1.3  to ../lib/ext
    3. *.so files in JAI 1.1.3 to ../amd64
    4. repeat step 5.3 for ImageIO 1.1 and ImageIO-EXT 1.0.5
  6. unzip gdal data and place in same folder as the jre
The java target I'm using can be downloaded here.

Note:
Although it seems to be working correctly, shouldn't the path to the native libraries in the custom jre been added to the LD_LIBRARY_PATH environment variable? The same goes for the GDAL_DATA environment variable. Is this managed automatically by the IDE/launch configuration or am I missing something here?

Best regards,
Kenneth Gulbrandsøy
- Trondheim, Norway

Back to the top