Exception while opening Netbeans - exception

While trying to open NetBeans 6.0 RC2 under JDK 1.6, the IDE not only it doesn't open but it throws this exception in the command line... I downloaded a JAR file that in theory has that LookupListener class but I don't know where to place it or if placing it somewhere will solve the problem.
Do you know why is that exception arising ?.

Related

Java.lang.ExceptionInInitializerError in EclipseLink Project

Error messagei have a problem with setting up my Eclipse Link Project. I already imported the EclipseLink library and as well i imported the jdbc-driver, but if i try to run this project as a java application suddenly this error appears.
Does anyone have an idea how to resolve this problem?
Thanks in advance!
imported libraries
converted to jpa-project

ClassNotFoundException: com.mysql.jdbc.Driver in Eclipse

Use Class.forName ("com.mysql.jdbc.Driver"); syntax in defining the driver of MySQL in Eclipse as well as in Netbeans. In Netbeans it's perfectly working while on Eclipse it's not working. Already stored the jar file in WEB-INF/lib and already added in Eclipse library.

An internal error occurred during: "Enable SonarLint on all projects". Unable to add builder

When starting Eclipse in a workspace, SonarLint plugin reports the following error:
An internal error occurred during: "Enable SonarLint on all projects".
Unable to add builder
After confirming the errmsg, both Eclipse and SonarLint plugin work properly.
Nevertheless, the message is misleading. What causes it? In my workspace, some projects are open and some not.
For me issue was coming due to lombok jar so Need to upgrade LOMBOK version to 1.18.12 in sts and in pom.xml both and it got resolved.
In my case it was caused by one of my project being read-only.
For some reason, SonarLint defines a global Eclipse job, to add itself to every project that is open. If the process fails, you get that annoying message.
As a workaround I've removed a read-only flag from the .project files.
Yes, you just need to update the latest Lombok jar in either STS or eclipse, this will resolve the issue for me. And you need a sonar lint plugin for the eclipse for sure.
The attached screenshot is coming in my case, but after updating the Lombok jar it is gone.
I upgraded to Latest lomlok version and it got solved.
I replace the old lomlok file with latest version from https://projectlombok.org/download.
I am using lombok 1.18.4 and eclipse = eclipse-java-12-R-win32-x86-64.
Project is compiled and able to run the project but in eclipse whenever i am opening any java file facing issue :
An internal error occurred during: "SonarLint processing file lombok/launch/PatchFixesHider$ValPortal /server/com/EmployeeList.java".
lombok/launch/PatchFixesHider$ValPortal
Sonar lint issue
This propblem was resolved with next version of LOMBOK.
Upgread to 1.12 or higher version and rebuild pom.xlm
I was upgread to 1.20 and problem dispaired ;)

Trying to run a HTML application but server could not find right bundle

I tried to run a HTML file that I coded on netbeans in eclipse. I downloaded the web tools platform in the eclipse marketplace. Then I configured the server but when I tried to run the file, I got a popup box with an error saying:
'Starting J2EE Preview at localhost' has encountered a problem. Could not find the required bundle org.eclipse.jetty.webapp. Does anyone know where I could get this bundle. I have eclipse luna.

Tomcat ServeletException NoClassDefFoundError

I have a webapp I'll call "App1" I am using to create some webplots. I have the .jar files in webapps/App1/lib/ and when I visit the server, I find that I am able to launch some webapps, but others I get funny exceptions. One, being
java.lang.NoClassDefFoundError: Could not initialize class com.jrefinery.chart.JFreeChartConstants
Then, when I add the jfreechart jar to the classpath, I get a different error:
java.lang.NoClassDefFoundError: com/jrefinery/util/ObjectUtils
tomcat version: 7.0.19
OS: ubuntu 12.04
I've tried it on a windows installation and it seems to work just fine. So I'm guessing it's a classpath error? I've tried adding the jfreechart-*.jar to the catalina classpath but it doesn't seem to fix anything. I've also tried to copy the webapp/App1/lib/ jar files to the top level/lib folder and this doesn't fix anything either.
Any ideas here?
Thanks.
You are missing the correct jar file in your project.
The jfreechart project has been repackaged. If you include the old jfreechart-0.9.3.jar, it will fix your compiler errors.
jfreechart-0.9.3.jar
download : http://mirrors.ibiblio.org/pub/mirrors/maven2/jfreechart/jfreechart/0.9.3/jfreechart-0.9.3.jar