2009-06-03から1日間の記事一覧
eclipseからの実行ではClassLoaderは必要ないが 実行ファイル(jar)にすると画像が読めなくなる。 ClassLoaderを使用する必要がある。 try { ClassLoader cl = this.getClass().getClassLoader(); stone[STONE_WHITE] = ImageIO.read(cl.getResource("img/isi…
eclipseからの実行ではClassLoaderは必要ないが 実行ファイル(jar)にすると画像が読めなくなる。 ClassLoaderを使用する必要がある。 try { ClassLoader cl = this.getClass().getClassLoader(); stone[STONE_WHITE] = ImageIO.read(cl.getResource("img/isi…