LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Configuring Java Packages with Netbeans (https://www.linuxquestions.org/questions/linux-software-2/configuring-java-packages-with-netbeans-908432/)

ServalSoft 10-16-2011 09:08 AM

Configuring Java Packages with Netbeans
 
Hello,

I am using Mandriva pwp 2010, and I have installed netbeans as an IDE to develop some java applications.

I wrote an app, and I have included the "Package packName" at the beginning of the source code, but when I try to import it in another application I get the ClassNotFoundException, I think there is a problem with my classpath, I looked around but was only able to find resources relating to adding the actual JAVA path, or some other referred to fixing the package problem under the Windows environment.

Thank you.
Yan

ServalSoft 10-18-2011 02:56 AM

Found a quick fix, the easiest way for me was just to create a single project, and add the packages from within that project. That solved the path issue with no problems as they are all in the same local directory.
Not a permanent solution if you actually want to "Take" your packages somewhere else, but this does the trick for me, at least until I can find a better solution. :)


All times are GMT -5. The time now is 01:47 PM.