PDA

View Full Version : [SOLVED] NetBeans 6.9 Reference Problems !



etdsbastar
May 3rd, 2011, 09:37 AM
Hello there,

I had updated netbeans plugins and modules today through the inbuild update option. Now I am getting the following error:

Reference Problems for JUnit.

Please see the attached images.

Help me.

Flaxis
May 3rd, 2011, 09:51 AM
Not entirely sure, but try downloading the libraries manually, and place them as a JAR in '/usr/lib/jvm/java-6-sun/jre/lib/ext' (or openJDK, depends on what you use). You'll probably need root rights to do this.
Let me know if this worked.

etdsbastar
May 3rd, 2011, 09:56 AM
no such folder dear.

Where to download the junit libraries, can they be found in synaptic?

Flaxis
May 3rd, 2011, 10:06 AM
An apt-cache search leads me to a package called junit4. You could try installing it through dpkg, though, I would download the latest release from https://github.com/KentBeck/junit/downloads (the JAR, of course)

"no such folder dear."
Have you tried looking in openJDK equivalents? Explore /usr/lib/jvm and directories underneath on own insight. Since I switched to JRE from sun, my directory structure will probably be slightly different from yours.

etdsbastar
May 3rd, 2011, 10:14 AM
An apt-cache search leads me to a package called junit4. You could try installing it through dpkg, though, I would download the latest release from https://github.com/KentBeck/junit/downloads (the JAR, of course)


junit is already installed.
see the attachment.

Flaxis
May 3rd, 2011, 10:36 AM
Remove these packages and download the libraries without using syntapic. Sometimes software sources aren't up-to-date.
If even that doesn't work, follow this tutorial:
http://www.chromedocs.net/2010/06/or-how-i-learned-to-stop-reading-bug.html
It says IcedTea, but IcedTea is the browser plugin used by OpenJDK, so you will change your entire JRE to sun.
(Select the text if it is not readable, the writer of the blog changed the text color to black)

etdsbastar
May 3rd, 2011, 10:41 AM
i had downloaded junit-4.5.jar and kept under /<user folder>/.netbeans/6.9/modules/ext and my problem has been solved.

Thanks for all your support.