Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
MIDP 2.0 を使用して .jar 内の /res からカスタム (画像でもサウンド ファイルでもない) リソース ファイルをロードするにはどうすればよいですか?
私は MIDP 2.1 で作業していますが、これが 2.0 にもあることを願っています。
Class.getResource(path_to_resource) は、ファイルへの InputStream を提供する必要があります。
getResourceAsStream("/res/yourresource");