wiki:pkg-java

Version 4 (modified by harumi, 14 years ago) ( diff )

--

Java

Java

Java パッケージはJava Runtime Envoronment6+Javaアドバンスライブラリをインストールします。

OSGeo4wストラクチャを利用可能にするために、bin とlibフォルダが必要とするオリジナルJavajreストラクチャとの一致していることを確認してください。jreは、抜粋されbinとlibに分けられます。よって、JAVA_HOMEは、osego4wのルート i.e.%OSGEO4W_ROOT%:となります。

java.exeとnative libsはosgeo4w\binに抜粋されます。 その他のlibsはosego4w\libsに入れられます。

これが2つのことなったjava共存を可能にさせていることに注意しなさい。現在java6がロードされています。java6での作業ができないプロジェクトがあれば、java5を入れる可能性を交渉できます。 ご遠慮なくお尋ねください。

スクリプトはjava環境変数を%OSGEO4W_ROOT%へ設定するために作られました。

その方法がすべてのjavaをベースとしたアプリケーションがJAVA_HOME変数、または%OSEGO4W_ROOT%\bin\jaba.exe.への直結ルートを通して、仮想マシンを実行可能にします。

The java package installs a Java runtime environment 6 + the Java Advanced Imaging libraries.

In order to be able to exploit the osgeo4w structure, keeping consistent with the original java jre structure, a bin and lib folder are needed. Therefore the jre is extracted and splitted into the root folder bin and lib, make that way the JAVA_HOME to be the root of osgeo4w, i.e. %OSGEO4W_ROOT%:

  • java.exe and native libs are extracted to osgeo4w\bin
  • other libs are put in osgeo4w\lib

Note that this makes it impossible to make two different versions of java coexist. For now java 6 is loaded. We can discuss about the possibility to put java 5 if there are projects that can't work with 6. Feel free to contact me.

A script is created to set the JAVA_HOME environmental variable to be %OSGEO4W_ROOT%.

That way all the java based applications can exploit the virtual machine either through the JAVA_HOME variable or throught its direct path %OSGEO4W_ROOT%\bin\java.exe.

Maintained by AndreaAntonello

Note: See TracWiki for help on using the wiki.