Khi dùng biên dịch/chạy java bằng command prompt
You've defined your class to be within a package, so compile and run the class(es) from the root of the package (eg cd up to the Examples directory, then javac (or java) the class from there je3/basics/Helloví dụ: file Hello.java nằm trong C:\Examples\je3\basics\Hello.java
See Creating and Using Packages (The Java™ Tutorials > Learning the Java Language > Packages)
*
giải thích cách đặt tên "lạ" trong các project Java trên mạng:
Companies use their reversed Internet domain name to begin their package names—for example, com.example.orion for a package named orion created by a programmer at example.com.>> longtth.blogspot.com >> com.blogspot.longtth.hellojava là package tên hellojava được tạo bởi longtth.blogspot.com. oạch.
No comments:
Post a Comment