[
https://issues.apache.org/jira/browse/ACCUMULO-1494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13773080#comment-13773080
]
Eric Newton commented on ACCUMULO-1494:
---------------------------------------
I don't think it should get quite so complicated... if the jar doesn't specify
the main class, just fail, or suggest using the -add argument and specify the
main class.
{noformat}
$ ./bin/accumulo -jar myjar.jar arg1 arg2 arg3
{noformat}
{noformat}
$ ./bin/accumulo -jar simplejar.jar arg1 arg2 arg3
error: no main class in jar manifest, use -add to add simplejar.jar to the
classpath
{noformat}
> add a "run user jar" command to accumulo start script
> -----------------------------------------------------
>
> Key: ACCUMULO-1494
> URL: https://issues.apache.org/jira/browse/ACCUMULO-1494
> Project: Accumulo
> Issue Type: Improvement
> Components: start
> Reporter: Sean Busbey
> Assignee: Bill Havanki
> Priority: Minor
> Labels: newbie
>
> Rather than suggesting users run a client by adding their client jars to
> lib/ext (ref:
> [1.4|http://accumulo.apache.org/1.4/user_manual/Writing_Accumulo_Clients.html],
>
> [1.5|http://accumulo.apache.org/1.5/accumulo_user_manual.html#_writing_accumulo_clients])
> we should provide an equivalent to the [hadoop jar
> command|http://hadoop.apache.org/docs/stable/commands_manual.html#jar].
> {noformat}
> $ ./bin/accumulo jar --help
> usage: jar <jar | -?> [mainClass] [args]
> Jar - Run Jar with Apache Accumulo
> -?,--help display this help
> {noformat}
> Like the hadoop jar command, if the jar manifest defines a mainClass, it
> should use it. Otherwise, it should use the command line provided one.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira