Search This Blog

Tuesday, May 3, 2011

Programming notes 2011.05.03

*
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/Hello
See Creating and Using Packages (The Java™ Tutorials > Learning the Java Language > Packages)
ví dụ: file Hello.java nằm trong C:\Examples\je3\basics\Hello.java
*
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

Phật giáo vs cúng sao

Nhiều người nói Phật giáo bây giờ biến tướng, cúng sao giải hạng mê tín dị đoan... Nhưng mất đi cái đó rồi, nhóm những con người có ít họ...