Linux compilation runs Java programs that contain packages __web

Source: Internet
Author: User

Linux run with package Java program

Test/src/com/test/test.java of directory structure under project Test

Enter the test directory

Compile:

Javac-d Bin/src/com/test/test.java

-D storage location for compiled class files

The file under bin at this time:

Ll-r
.:
Total 4
Drwxr-x---3 zcf ops 4096 Oct 20:11 com


./com:
Total 4
Drwxr-x---2 zcf ops 4096 Oct 20:11 test


./com/test:
Total 4
-rw-r-----1 zcf Ops 428 Oct 20:14 Test.class

Compile multiple. java files in a package

Javac-d bin/src/com/test/*

Run: JAVA-CP bin/com.test.test

Successful execution


Reference article: http://blog.csdn.net/huagong_adu/article/details/6929817

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.