简体   繁体   中英

JRuby generated java class -> Jar

I have a Ruby script, I want to make it into a Jar file.

Using JRuby, I have compiled my script and now have a *.class file.

How do I now convert my *.class into a *.jar file so that it can be be executed through a JVM?

Thanks.

Edit: "Main-Class: HelloWorld

"

(basically manifest.mf is Main-Class: HelloWorld followed by two new lines.)

It is explained here

jar cf jar-file input-file(s)

for example:

jar cf C:\hi.jar C:\classes\hi.class

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM