I am kinda stuck. Usually I use the export option in eclipse to create a jar. But now, i have deployed my code in production and want to create a jar file.
So I have two files,
foo.java which calls bar.java
And then it uses couple of jars
foobar.jar foo_bar.jar
Now,so main is in foo.java
How do i create an executable jar.
Thanks,
Here's a great article on the topic: http://manpages.ubuntu.com/manpages/dapper/man1/jar.kaffe.1.html
Basically:
$jar cvf classes.jar Foo.class Bar.class
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With