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.