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とか作っておくと楽かもしれませんね。
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. . . . . .
Posted by: vintage green tinted | 07 November 2014 at 08:47 PM
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.
Posted by: aquarium deep blue | 10 November 2014 at 11:20 AM
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.
Posted by: gf1c zectron digital | 05 December 2014 at 01:03 AM
Good information. Lucky me I ran across your website by accident (stumbleupon). I've book marked it for later!
Posted by: cellular phone battery motorola | 06 December 2014 at 11:04 AM
It's difficult to find knowledgeable people on this subject, however, you sound like you know what you're talking about! Thanks
Posted by: cut outs wilton 417 | 23 December 2014 at 01:12 AM