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.
私は、mavenと外部jarの両方からの依存関係が大量にある巨大なプロジェクト内のクラスにmainメソッドを構築しました。Eclipseに組み込まれている実行機能を使用すると、mainメソッドが希望どおりに実行されますが、ここで、mainメソッドを実行するrun.shスクリプトを作成します。javaコマンドは複雑であるため、手動で最初から作成するのではなく、Eclipseが実行に使用するコマンドを実際にエクスポートする方法があることを強く望んでいます。これは可能ですか?
デバッグの観点から取得できます。アプリケーションを実行し、デバッグ パースペクティブに切り替え、アプリケーションの下のjavaw.exeまたはを右クリックして、 を選択します。これにより、その実行に使用されるを含むポップアップダイアログが表示されます。java.exePropertiesProcess propertiesCommand Line
javaw.exe
java.exe
Properties
Process properties
Command Line