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.
Rubyスクリプトがあり、Jarファイルにしたいです。
JRuby を使用してスクリプトをコンパイルし、*.classファイルを作成しました。
*.class
JVM を介して実行できるように、my*.classをファイルに変換するにはどうすればよいですか?*.jar
*.jar
ありがとう。
編集:「メインクラス:HelloWorld
"
(基本的に、manifest.mf は Main-Class: HelloWorld の後に 2 つの新しい行が続きます。)
ここで説明されています
jar cf jar-file input-file(s)
例えば:
jar cf C:\hi.jar C:\classes\hi.class