Java (3): Eclipse practice

Source: Internet
Author: User
Tags jboss jboss server

After me, there may also be people who have just come into touch with this language like me, maybe what I have organized will be helpful to you, maybe, someday, I still need to take a look at these things (however, this is not very likely to happen, and I will remember what I 've seen ).

 

1. How to generate. Jar

2. Deploy EJB on JBoss server in eclipse

 

1. How to generate. Jar

Two methods: 1. Use eclipse to generate a jar file. Right-click your project and choose export. 2. Run the jar command. Usage: jar {ctxu} [vfm0mi] [Jar-file] [manifest-file] [-C Directory] File Name... option: -C create a new archive-t list the archive content list-x expand the named (or all] files in the archive-u update the existing archive-V generate detailed output to the standard output-F specifies the archive file name-M contains the marked information from the marked file-0 only storage mode; without zip compression format-M does not generate a list of all items (manifest) file-I generates index information for the specified JAR file-c changes to the specified directory and contains the following files: if a file name is a directory, it is recursively processed. Both the configuration (manifest) file name and the archive file name must be specified, in the same order specified by the 'M' and 'F' signs. Example 1: Archive two class files to a file named 'classes. jar files: jar CVF classes. jar Foo. class bar. class Example 2: use an existing manifest file 'mymanifest 'to archive all the files in the foo/directory to a file named 'classes. jar files: jar cvfm classes. jar mymanifest-C Foo /.

2. Deploy EJB on JBoss server in eclipse

1. Select the EJB project to be deployed (for example, myfirstejb), right-click, and select profile ....

2.

 

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.