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.
onejar を使用する場合、他のクラスでメイン メソッドを実行することは可能ですか? 実行可能ファイルとして正常に動作しますが、再パッケージ化せずに他のクラスを実行できるようにしたいと考えています。
例えば
java -jar myonejar.jar //works fine java -cp .;myonejar.jar test.Test //Error: Could not find or load main class