noclassdeffounderror

JBoss 4.2 startup throws NoClassDefFoundError

本小妞迷上赌 提交于 2019-12-08 06:45:59
问题 I am having trouble starting a JBoss 4.2.2 server - it is producing the following error message (from org.jboss.kernel.plugins.dependency.AbstractKernelController ) : Error installing to Described: name=WSDeployerHook_JAXWS_EJB3 state=Not Installed mode=Manual requiredState=Create java.lang.NoClassDefFoundError: org/jboss/ejb3/interceptors/direct/IndirectContainer Looking through the JBoss source code, I have turned on TRACE level logging for certain classes, though all it is telling me is

How to run a .jar file, which contains OpenCV code and was created using ant, from command line?

ε祈祈猫儿з 提交于 2019-12-08 06:40:29
问题 I am trying to run a small java class from Ubuntu console, which contains OpenCV code like this : import org.opencv.core.Core; import org.opencv.core.Mat; import org.opencv.core.CvType; import org.opencv.core.Scalar; class SimpleSample { static{ System.loadLibrary(Core.NATIVE_LIBRARY_NAME); } public static void main(String[] args) { System.out.println("Welcome to OpenCV " + Core.VERSION); Mat m = new Mat(5, 10, CvType.CV_8UC1, new Scalar(0)); System.out.println("OpenCV Mat: " + m); Mat mr1 =

NoClassDefFoundError: org/junit/AfterClass during annotation processing

◇◆丶佛笑我妖孽 提交于 2019-12-08 05:55:39
问题 I am generating code with CodeModel during annotation processing with maven. That code is for JUnit testing: JMethod tearDownClass = testClass.method( JMod.PUBLIC | JMod.STATIC, Void.class, "tearDownClass"); tearDownClass._throws(Exception.class); tearDownClass.annotate(AfterClass.class); <- java.lang.NoClassDefFoundError Yet, the compilation process throws a java.lang.NoClassDefFoundError : org/junit/AfterClass when it tries to retrieve the AfterClass.class , which is an annotation itself.

Unable to resolve NoClassDefFoundError for Jena IRIFactory

走远了吗. 提交于 2019-12-08 04:11:14
问题 Below is the stacktrace of the error log I'm getting. If someone can tell what exactly could be causing this because as per the stacktrace I've everything in place. Exception in thread "main" java.lang.NoClassDefFoundError: com/hp/hpl/jena/iri/IRIFactory at net.rootdev.javardfa.uri.IRIResolver.<init>(IRIResolver.java:26) at org.odftoolkit.odfdom.pkg.rdfa.SAXRDFaParser.createInstance(SAXRDFaParser.java:57) at org.odftoolkit.odfdom.pkg.OdfFileDom.initialize(OdfFileDom.java:217) at org

java.lang.NoClassDefFoundError at Runtime in Activity's inner class

☆樱花仙子☆ 提交于 2019-12-08 02:08:11
问题 I have found a lot of similar questions, but no one helps me. I have next problem. I have complete project for Android and I have to export it's functionality to .aar library. First of all I created new project and created new module where put my source project. At this step all things goes well and I get my mylib.aar file in /build/outputs/aar/ folder. Then I created new project to test my mylib.aar , so I created libs folder under my app folder in Android Studio, and in build.gradle file of

java.lang.NoClassDefFoundError: org/apache/poi/hssf/usermodel/HSSFWorkbook

心已入冬 提交于 2019-12-07 21:03:01
问题 java.lang.NoClassDefFoundError:org/apache/poi/hssf/usermodel/HSSFWorkbook This is java web project. The java project is ok, but in web, I got this exception. Caused by: java.lang.ClassNotFoundException: org.apache.poi.hssf.usermodel.HSSFWorkbook at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526) maven dependency : <!-- apahce poi --> <dependency> <groupId>org.apache.poi<

How can I compile classes in packages, to execute them later with “java Program” (without the package name)?

自作多情 提交于 2019-12-07 18:14:08
问题 I have a quick question regarding javac and packages in Java. I have a simple program (we'll call it Program.java) which is currently in the following directory: myRepository/myProgram In Program.java and other .java files in the myRepository/myProgram directory, I have declared package myProgram.* and also included import myProgram.*; . So when I type javac myProgram/Program.java , it compiles fine and it runs fine if I type java myProgram/Program . However, I'm trying to get the .class

libgdx liquidfun integration runtime error

一曲冷凌霜 提交于 2019-12-07 16:50:20
问题 I'm new to this. I generated a new project using libgdx project generator, all worked fine. Then I tried to add liquidfun extension to the library using the following tutorial: https://github.com/finnstr/gdx-liquidfun-extension/wiki/Setup. It compiles all the dependencies are seen in the editor but at runtime I get this error. java.lang.NoClassDefFoundError: Failed resolution of: Lcom/badlogic/gdx/physics/box2d/World; 10-09 10:29:50.698 12790-12895/com.mygdx.game.android E/AndroidRuntime: at

java.lang.NoClassDefFoundError: com.google.android.gms.common.AccountPicker

前提是你 提交于 2019-12-07 05:36:17
问题 Ok, I have been losing a lot of sleep over this, I can not seem to find what the issue is. I am trying to integrate google drive with a big application I am working on with a team. . Here is what logcat spits out: 02-09 10:13:40.979: E/AndroidRuntime(9768): java.lang.NoClassDefFoundError: com.google.android.gms.common.AccountPicker 02-09 10:13:40.979: E/AndroidRuntime(9768): at com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential.newChooseAccountIntent

java.lang.NoClassDefFoundError on Android version lower than Lollipop

巧了我就是萌 提交于 2019-12-07 04:58:45
问题 I have a Nexus 5 device with Android 21 on it. I am testing my project on it with no problem. However, if I test on an Emulator with Google APIs 19 it shows the error java.lang.NoClassDefFoundError . How could this error occur if it is running well on Lollipop? I even asked my friend with a Sony 4.4 device and it also crashes on his phone. I have my Compile SDK version to 21 and Build Tools set to 21.1.2. I tried gradle clean and I am working on Android Studio. Any help would be highly