0

I am trying to use Project-1 's class in Project-2's custom package. I did this action you can see below.

Build Path -> Configure Build Path -> Projects tab -> Add ->Project1 -> OK -> exit the project properties window.

when i use project1's class in default package of project2 there is no problem, but if i use project1's class in a custom package of project2 it doesn't recognise project1's class object.

What should i do for fixing this recognition problem?

nerd
  • 115
  • 1
  • 7
  • 1
    I tested. I got . no error. what is your error ? – Cataclysm Mar 06 '15 at 09:56
  • check these two screenshoots http://puu.sh/goEu2/194fe2657f.png , http://puu.sh/goEuq/7344505ea1.png – Cataclysm Mar 06 '15 at 09:59
  • Thank you for your answer, i put my first project's class(FooClass in your project) to a custom package,it worked too; thus my problem is solved but i can not understand why it doesnt work if Foo Class is in default package. – nerd Mar 06 '15 at 11:48
  • 1
    There has many answers for your problem. Check [this](http://stackoverflow.com/questions/2193226/how-to-import-a-class-from-default-package) and [this](http://stackoverflow.com/questions/283816/how-to-access-java-classes-in-the-default-package) – Cataclysm Mar 09 '15 at 03:02

0 Answers0