ミームの死骸を待ちながら

We are built as gene machines and cultured as meme machines, but we have the power to turn against our creators. We, alone on earth, can rebel against the tyranny of the selfish replicators. - Richard Dawkins "Selfish Gene"

We are built as gene machines and cultured as meme machines, but we have the power to turn against our creators.
We, alone on earth, can rebel against the tyranny of the selfish replicators.
- Richard Dawkins "Selfish Gene"

授業用にJavaの仮想取引市場システムをインストール


興味拡散自爆系大学院らいふ - ミームの死骸を待ちながら

で紹介したシステムモデリングの授業で必要なため、
仮想市場システムU-Martというものを愛機iBookG4にインストール。


先生はWindows前提で話していたため不安だったが、

Terminalのコマンドラインから起動することができた。簡単。

java -cp .:hogehoge.jar gui.foo

ってやればいいらしい。


~/.bashrcに

alias umartSer='java -cp /gonyo/monyo/UMartSystem/.:UMartSystem.jar gui.UServerManager'
alias umartTer='java -cp /gonyo/monyo/UMartSystem/.:UMartSystem.jar gui.UNetGUI'


を追加して起動しよう…と思いきやパスが通らない?
仕方なく、移動は手動で行い、

alias umartSer='java -cp .:UMartSystem.jar gui.UServerManager'
alias umartTer='java -cp .:UMartSystem.jar gui.UNetGUI'


とした。UMartSystemフォルダに移動してからこのエイリアスで呼び出すことにする。なお、前者はネットワーク版市場サーバを、後者はネットワーク版取引端末を起動する。いずれも日本語版。


javaの-cpオプションって何だろうと思って調べた

-cp classpath
Specifies a list of directories, JAR archives, and ZIP archives
to search for class files. Class path entries are separated by
colons (:). Specifying -classpath or -cp overrides any setting
of the CLASSPATH environment variable.

Used with java, the -classpath or -cp options only specify the
class path for user classes. If -classpath and -cp are not used
and CLASSPATH is not set, the user class path consists of the
current directory (.).


ふむ。これでクラスのパスを指定してて…何故/下からの絶対パスでの指定ができないんかなー?…わからん。今のところは、手動でjarファイルがあるフォルダに移動してから起動する形にしておく。



マンガでわかる統計学

マンガでわかる統計学


を使って統計学の勉強してるので、これが一段落したら


改訂第2版 Java言語プログラミングレッスン (上)

改訂第2版 Java言語プログラミングレッスン (上)


を進めていくつもり。勉強したいことは山ほどあるが、とりあえずJavaの優先度を高めに設定しよう。


そうそう、Javaのお薦め本教えてくれてありがとう > id:diouf21
ぱらぱら読んだけど、結構分かり易くてwktkしております


Java大好きだよ(o^冖^o)*1

*1:予定