Java: import my own package in a different folder -
here source code construction showing in eclipse
projectname src (default package) main.java test abc.java
here source code
test/abc.java
package test; public class abc {}
src/main.java
import test.*; public class main { public static void main(string[] args) { system.out.println("main"); } }
import test.* cannot pass eclipse compiler.
how import bundle "test"?
test
not bundle - it's source folder. in eclipse (or other ide, matter), should mark test folder, , utilize classes without importing anything, code in default package.
java
No comments:
Post a Comment