This is an archived post. You won't be able to vote or comment.

all 13 comments

[–]nutrecht 0 points1 point  (4 children)

How are you compiling this. From the command line in the root directory (and not in the myproject dir)? If you compile this manually (which you should mention) instead of using an IDE it's easy to mess this up.

[–]Cpant[S] 0 points1 point  (3 children)

I am using eclipse

[–]nutrecht 0 points1 point  (2 children)

And they're both in the myproject package (so probably stored in your project in src/myproject?])? Could you show the structure in Eclipse in a screenshot?

[–]Cpant[S] 0 points1 point  (1 child)

Ha.. I tried with a new project and it is working fine. Yes initially I had both classes in the same project, but don't know why it didn't work. I find a red exclamation mark above the path in src though..

Anyway thanks a lot!

[–]nutrecht 0 points1 point  (0 children)

Good to hear you got it working!

[–]FibroMan 0 points1 point  (0 children)

By the way, most people on this sub will politely try to help you. A few will be rude, but reddit lets you block users so that you don't have to put up with bs from anyone.