Translate

2010年2月12日金曜日

The Java Runtime Environment: AmazonVPC Getting Started p.17

The Java Runtime Environment
Java実行環境

The command line tools require Java version 5 or later to run. Either a JRE or JDK installation is acceptable. To view and download JREs for a range of platforms, including Linux/UNIX and Windows, go to http://java.sun.com/j2se/1.5.0/.

コマンドラインツールは、Java Ver5以降が必要です。JREもしくはJDKのいずれかのインストールが必要です。http://java.sun.com/j2se/1.5.0/ から各プラットフォームにあったJREをダウンロードしてください。

Note
If you are using Cygwin, the EC2_HOME, EC2_PRIVATE_KEY, and EC2_CERT (variables
discussed later in the guide) must use Linux/UNIX paths (e.g,, /usr/bin instead of C:\usr\bin).
However, JAVA_HOME should have a Windows path. Additionally, the value of EC2_HOME cannot contain any spaces, not even if the value is quoted or the spaces are escaped.

Note
Cygwin利用の場合は、環境変数EC2_HOME、EC2_PRIVATE_KEY、EC2_CERT(ガイド後半にて説明のある変数)はLinux/UNIXパス表記(e.g. C:\usr\binの代わりに/usr/bin)を使わなければなりません。
しかし、環境変数JAVA_HOMEはWindowsパスを持たなければなりません。さらに、環境変数EC2_HOMEの値には空白を含めることはできません。

The command line tools depend on an environment variable (JAVA_HOME) to locate the Java Runtime. This environment variable should be set to the full path of the directory that contains a sub-directory named bin, which in turn contains the java (on Linux and UNIX) or the java.exe (on Windows) executable. You might want to add this directory to your path before other versions of Java. Make sure you don't include the bin directory in the path; that's a common mistake some users make. The command line tools won't work if you do.

コマンドラインツールは、Java Runtimeを特定するために、環境変数(JAVA_HOME)に依存します。この環境変数はbinという名前のサブディレクトリを含むディレクトリのフルパスを設定しなくてはなりません。そして、それは順番にjava(Linux/UNIX)、java.exe(Windows)を含めたもので指定しなくてはなりません。


Following is an example of how to set this environment variable in Linux and UNIX.
以下、Linux/UNIX環境での環境変数設定例です。

$ export JAVA_HOME=

Following is an example of the syntax in Windows.
以下、Windowsでの設定例です。

C:\> set JAVA_HOME=

You can confirm this by running $JAVA_HOME/bin/java -version and checking the output.
Javaのバージョンを確認する場合は、$JAVA_HOME/bin/java -versionと入力してください。


$ $JAVA_HOME/bin/java -version

java version "1.5.0_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)
Java HotSpot(TM) Client VM (build 1.5.0_09-b03, mixed mode, sharing)


The syntax is different on Windows, but the output is similar.
Windows環境上では文法は異なりますが、表示は同じです。

C:\> %JAVA_HOME%\bin\java -version

java version "1.5.0_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)
Java HotSpot(TM) Client VM (build 1.5.0_09-b03, mixed mode, sharing)

0 件のコメント:

既存アプリケーションをK8s上でコンテナ化して動かす場合の設計注意事項メモ

既存アプリをK8sなどのコンテナにして動かすには、どこを注意すればいいか..ちょっと調べたときの注意事項をメモにした。   1. The Twelve Factors (日本語訳からの転記) コードベース   バージョン管理されている1つのコードベースと複数のデプロイ 依存関係 ...