I'm not familiar with stanford coreNLP. I want to use one of its classes Evalb. I've imported all packages (although many of them have errors). class Evalb doesn't have any error. when I run it I got this exception :
Exception in thread "main" java.lang.ExceptionInInitializerError
at edu.stanford.nlp.international.Language.<clinit>(Language.java:15)
at edu.stanford.nlp.parser.metrics.Evalb.usage(Evalb.java:136)
at edu.stanford.nlp.parser.metrics.Evalb.main(Evalb.java:163)
Caused by: java.lang.RuntimeException: Uncompilable source code - package java.util.function does not exist
at edu.stanford.nlp.parser.lexparser.AbstractTreebankParserParams.<clinit>(AbstractTreebankParserParams.java:13)
... 3 more
Java Result: 1
I have installed JDK 1.8
How can I fix this?
Related
I am running a program on eclipse and I keep getting this error:
Unable to initialize main class com.logic.AddProduct
Caused by: java.lang.NoClassDefFoundError: org/hibernate/Session
Any explainations?
Hibernate JAR (hibernate-core i suppose) or onr of its dependencies is probably not in your runtime classpath.
I am working on a project using Intellij IDEA, JDK 11 and openjfx 11. everything seems to have been configured properly but when I add the path to the Javafx jar and add the needed javafx modules for my project in the VM options and run the code, I the following error
Error: Could not find or load main class C:.Program
Caused by: java.lang.ClassNotFoundException: C:.Program
when I remove the modules and path configuration from the VM options, i get the following error Caused by: java.lang.ClassNotFoundException: javafx.fxml.FXMLLoader , which I think it's because I don't have
the javafx modules in the vm option which are is required when using javafx11
how do I fix this problem? have i done a wrong configuration? I have combed the internet for the past 24 hours but couldn't get the help I wanted. Looking forward to your help. Thanks
While running a groovy script I get this exception:
Caught: java.lang.ExceptionInInitializerError
java.lang.ExceptionInInitializerError
Caused by: java.lang.SecurityException: Prohibited package name: java.util.concurrent
I noticed a library in my classpath high-scale-lib-1.0.6.jar which has a class java.util.concurrent.ConcurrentHashMap.class in the library.
I need this library so what can I do to get groovy scripts running? I read something about whitelists for such cases.
Any ideas on how I could solve this issue ?
I am having problems connecting my SalesMain.java and SalesCalc.java files together so that they can use each other.
And here is the error I am getting:
Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - Erroneous tree type: salescalc.SalesCalc
at salescalc.SalesMain.main(SalesMain.java:14) Java Result: 1 BUILD SUCCESSFUL (total time: 1 second)
Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - Erroneous tree type: salescalc.SalesCalc
at salescalc.SalesMain.main(SalesMain.java:14) Java Result: 1
I am really new to Java so this is all a lot for me.
Here is the code to the Main and Sales files.
Add package salescalc; at the beginning of SalesCalc.
They must be in the same package, otherwise you need to import it.
SalesMain is in the package salescalc and SalesCalc is not in any package at all. The easiest solution would be to put them both in the same package.
I think you are using NetBeans IDE. To get around this problem you have to uncheck "Compile on save" setting in the project properties (Build -> Compiling).
Check this out: http://forums.netbeans.org/post-45324.html
Help me on this exception , Occurs during calling wcf webservice
Log by netbeans
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:107)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78)
at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:107)
at $Proxy32.logon(Unknown Source)
at newtestclient.NewTestClient.main(NewTestClient.java:92)
Caused by: java.lang.ClassCastException: com.sun.xml.bind.v2.runtime.JAXBContextImpl cannot be cast to com.sun.xml.internal.bind.api.JAXBRIContext
at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.<clinit>(SOAPFaultBuilder.java:533)
... 5 more
Java Result: 1
The exception says :
java.lang.ClassCastException: com.sun.xml.bind.v2.runtime.JAXBContextImpl cannot be cast to com.sun.xml.internal.bind.api.JAXBRIContext.
It's a common error that appears when there is a conflict between libraries and its dependencies. You should try to execute your code in a test project with only the libraries from JAX-RPC, and then add one by one the rest of your app libraries.
Also, you should check your server libraries to discard any kind of conflict for having the same library (or its dependencies) in your app and in your server with different versions.