打jar包在linux上执行

1.jar包插件

        <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.5.5</version>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<mainClass>cn.crxy.mc.Main</mainClass>
</manifest>
</archive>
<finalName>McIDE</finalName>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>

2.jar -cp xxx.jar  包名.类名

上一篇:POJ1269(KB13-D 计算几何)


下一篇:浅谈对MVC的认识