NetBeans won't import my packages

Hi,

I'm trying to use NetBeans to develop my app, however, it won't find packages that I import in source code. My packages aren't jar-ed; instead the package names are merely declared in source code. For example...

Packaged class looks like this:

package com.myco.myapp;

Calling class looks like this:

import com.myco.myapp.MyClass;

Also, the directory structure reflects the package name structure, although I don't think that matters. Also, the calling and packaged classes are in different directories. The problem, as described above, is that NetBeans won't let the calling class find the packaged class. Is there a special setting for this?

By the way, the project compiles fine when I use Ant directly.In fact, I've developed my entire enterprise app exclusively using Ant, a build file and command prompt.I'm happy doing it that way, but my new colleague wants an IDE.Considering EJB development and descriptor generation (for EJBs, Hibernate, Web, JBoss, etc) is it really worth the trouble to learn it?Would you recommend for me to switch?

Until now, I only see it as an impediment, but I'd appreciate any contrary opinions. Thanks in advance!

Itchy

[1232 byte] By [itchyoinker] at [2007-9-30 19:39:41]
# 1

Please check the website:

http://www.netbeans.org/community/lists/

And subscribe to: nbusers mailing list:

By sending an empty email to :

nbusers-subscribe@netbeans.org

Then you can ask question there with regard to Netbeans.

Please also note your Netbeans version (3.6 or 4.0?). for 3.6, you have to mount the source directory. And the java file have to be in the proper package directories INSIDE the source directory. For library, you have to mount the Jar file. With 4.0, you have to copy the whole source package directory into the "src" directory inside an existing or new project folder. With library, you have to add path to the jar in the project's property panel.

vy_ho at 2007-7-7 0:24:27 > top of Java-index,Archived Forums,Debugging Tools and Techniques...