How to make archive jar after compile with some modification??

Skip to first unread message


Jan 28, 2009, 12:08:11 AM1/28/09
to UTGB Users

I wanna connect MySQL, so modified and compiled.

And then I think it need to archieve as a jar like utgb-shell-bin.jar
for using with shell command.

I think that I need a manifest file for making jar file.

Please inform what is the main class.

I guess the main class is UTGBShell, but it's not working.

When I try to execute with the modified utgb-shell-bin.jar, the
message appeared "Failed to load Main-Class manifest attribute from

I'm used for making jar with "jar cfm utgb-shell-bin.jar mainfest * "

Please help me!!

Taro L. Saito

Jan 28, 2009, 12:24:54 AM1/28/09
Thank you for you interest in UTGB.

As you said, is the main class of utgb-shell project.

In order to build utgb-shell from the source code, you need Maven
( )
installed in your PC. Then, execute
> mvn package
command to compile and assemble utgb-shell-bin.jar file, which will be
generated in target folder.
(Manifest file is automatically generated by Maven, so you do not have
to prepare that file manually)
Taro L. Saito
University of Tokyo
Tel. +81-47-136-4065 (64065)


Jan 28, 2009, 8:36:25 PM1/28/09
to UTGB Users

I tried as you said. I think it should be do in a unix machine. Isn't

When execute 'mvn package', several error appeared
Ant execute error, IOException(It need Tar tool in the windows)

Anyway, I will try in the unix envrionments.

Thanks again~
> Tel. +81-47-136-4065 (64065)- Hide quoted text -
> - Show quoted text -
Reply all
Reply to author
0 new messages