Java Project package runs in the shell

Source: Internet
Author: User

At work, there are times when you need to process some data, use Java to compare aspects, such as hbase, but you need to execute it in the shell, so the extra bag is harder to get into, and it's easy to package with Maven.


    1. First Pop.xml write the required jar packages in the project and the classes that need to be run, as shown below.


<dependency>

<groupId>org.apache.hbase</groupId>

<artifactId>hbase</artifactId>

<version>0.94.5</version>

</dependency>


This is a dependent package through dependency, which is especially important, depending on this part

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/59/AE/wKioL1TcGh7wa8L-AAK-3SlkIpE866.jpg "title=" Untitled. png "alt=" wkiol1tcgh7wa8l-aak-3slkipe866.jpg "/>


The Red Line section is the class that needs to be run, and then run as assembly this option to package, OK,

Copy to Shell side and run the Java-jar package to

Java Project package runs in the shell

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.