« デバッグ専用宣言 | Main | log4net »

13 January 2005

JDKインストール後のゴニョゴニョ・・・

恥ずかしながらWindowsへのJDKインストール後の環境変数の設定をド忘れしてしまいました。orz
なので、そういうことがないように備忘録として残しておきます。


環境変数JAVA_HOMEを用意

JDKのインストールフォルダを指定。(e.g. C:\Program Files\Java\jdk1.5.0)

環境変数PATHを用意

JDKの/binと/jre/binを指定。(e.g. %JAVA_HOME%\bin;%JAVA_HOME%\jre\bin)


javacが通ったときは安心したよ。環境変数なんて簡単に設定できるんだからインストーラで設定してよ、ってSunに言いたいところだが、逆に複数のJDKをインストールしている場合に勝手に上書きされても困るのでユーザ任せにしておいた方が自由度は高い。まぁ、簡単に解消できたから問題ないです。w

それから例えばlog4jなどのライブラリを利用する場合、例えばC:\mylibというところにjarファイルを保存しておいて、


CLASSPATHの設定

C:\mylib\log4j.jar;.と設定する。(最後の.がポイント)


またC:\mylibは変更しやすいように、環境変数でMY_LIBとか作っておくと楽かもしれませんね。

TrackBack

TrackBack URL for this entry:
http://bb.lekumo.jp/t/trackback/517129/31023915

Listed below are links to weblogs that reference JDKインストール後のゴニョゴニョ・・・:

Comments

Hiya very nice website!! Guy .. Excellent .. Wonderful .. I will bookmark your blog and take the feeds also? I am happy to find numerous helpful info here in the submit, we'd like develop more strategies on this regard, thanks for sharing. . . . . .

Do you have a spam problem on this site; I also am a blogger, and I was wanting to know your situation; many of us have created some nice procedures and we are looking to trade solutions with others, please shoot me an e-mail if interested.

Hey there! I simply wish to offer you a big thumbs up for the great information you've got here on this post. I will be coming back to your site for more soon.

Good information. Lucky me I ran across your website by accident (stumbleupon). I've book marked it for later!

It's difficult to find knowledgeable people on this subject, however, you sound like you know what you're talking about! Thanks

Post a comment

Access Ranking

Powered by Six Apart
Sponsored links