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.
現時点では、bat ファイルを使用して jar を起動し、java.system.class.loader を設定しています。プログラムでこれを実行して、bat ファイルを削除することはできますか?
プログラムの最初の行が実行される前にシステムクラスローダーが使用されるため、できません。
一部のクラスには別のクラス ローダーを使用できますが、実行中のプログラムからシステム クラス ローダーを変更することはできません。