package does not exist error!
问题 I have a directory structure like com/example/web under the root directory which contains a java file Bear.java . I have another java file BearExtra.java in directory structure com/example/model in same root directory as above. I am calling a method in BearExtra.java from Bear.java and I am getting the error that the package does not exist. I have imported com.example.model package in my java file. Can give me some advice? 回答1: This works: com/example/model/BearExtra.java package com.example