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

16 views
Skip to first unread message

mispro

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

I wanna connect MySQL, so modified JDBCUtil.java 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
utgb-shell-bin.jar"

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

Please help me!!

Taro L. Saito

unread,
Jan 28, 2009, 12:24:54 AM1/28/09
to utgb-...@googlegroups.com
Thank you for you interest in UTGB.

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

In order to build utgb-shell from the source code, you need Maven
(http://maven.apache.org )
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
<l...@cb.k.u-tokyo.ac.jp>
University of Tokyo
Tel. +81-47-136-4065 (64065)

mispro

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

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

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
Forward
0 new messages