質問

I have a package named "smartApp" which further contains a TDA.java file and a sub package named "Crawler" . I am trying to access a .java file (defined in crawler package) in TDA.java.I also import Crawler package in TDA.java file as "import Crawler.*;" but it says "error: package Crawler does not exist" .

My hierarchy is as follows: SmartApp-->TDA.java , Crawler -->ABC.java

役に立ちましたか?

解決

It has to be:

import smartApp.Crawler.*;

Note that package names should follow the Java Naming Conventions. They shouldn't start with capital letters.

他のヒント

// Rename Crawler to smartApp.Crawler

import smartApp.Crawler.*;
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top