Questions tagged [noclassdeffounderror]

The Java Error thrown if the Java Virtual Machine or a ClassLoader instance tries to load in the definition of a class (as part of a normal method call or as part of creating a new instance using the new expression) and a valid representation of the class could not be constructed.

Filter by
Sorted by
Tagged with
0 votes
0 answers
26 views

NoClassDefFoundError in Spring Boot: Issues with Local JAR Dependencies

My Spring Boot application has a dependency on a local JAR. I can run it on my machine, but when I generate the Docker image, I encounter the NoClassDefFoundError. My pom: Attemp 1: <dependency> ...
Everis Souza's user avatar
0 votes
0 answers
42 views

Error: Unable to initialize main class (...) Caused by: java.lang.NoClassDefFoundError: scala/Serializable

I am practicing Scala and try to run external project, which includes Spark and Gradle. Unfortunately, I am getting this error all the time: I would be grateful for any advice that can help with ...
marmich00's user avatar
0 votes
0 answers
21 views

NoClassDefFoundError: Not able to invoke chromedriver

[Workspace trying to invoke the chromedriver using selenium](https://i.stack.imgur.com/oTlDp.png ->Java-jdk:17 ->Selenium-java-4.12.1 ->Chromedriver extracted from the latest version of mine ...
Magg's user avatar
  • 1
0 votes
0 answers
15 views

Jar file is not loaded

We are getting the null pointer exception when we run our application. But we are not sure about the specific error. NullPointerException: com.rvw.tl.blend.ServiceWrapper.class [rvwEEMS.jar:?] [...
Srikanth's user avatar
0 votes
0 answers
68 views

Integrating New Relic Agent with Java 17: java.sql.SQLException NoClassDefFoundError

I'm trying to integrate newrelic-agent for metrics. I'm using the below newrelic version and while running locally, it is working fine. <groupId>com.newrelic.agent.java</groupId&...
 Pujitha's user avatar
0 votes
0 answers
82 views

java.lang.NoClassDefFoundError: io/vertx/sqlclient/impl/SqlConnectionImpl

I have simplified my code until finding that I am doing something wrong when trying to connect this vertx application to mysql database, but I can not figure out what. I have tried this simple code: ...
Alejandro Martín Audén's user avatar
0 votes
1 answer
47 views

com/amazonaws/services/ec2/AmazonEC2ClientBuilder: java.lang.NoClassDefFoundError

So I am wondering what could be the cause of this error message : com/amazonaws/services/ec2/AmazonEC2ClientBuilder: java.lang.NoClassDefFoundError java.lang.NoClassDefFoundError: com/amazonaws/...
cloud girl's user avatar
0 votes
0 answers
14 views

Service test succeeds in VSCode IDE but fails using Mvn install with classnotfoundException on DAO

The following service test fails as it cannot find the DAO using Springboot3 When the test is executed using MVN install it fails but succeeds with executing using VSCode/Run test via IDE. Since ...
Coffee Bean's user avatar
1 vote
0 answers
33 views

Troubleshooting JavaFX NoClassDefFoundError When Running JAR File: How to Include JavaFX in Gradle-built JAR?

Facing "NoClassDefFoundError" when running Gradle-generated JAR for JavaFX app. Gradle build succeeds, but JAR execution fails due to missing "javafx/application/Application" class....
jamal1aarab's user avatar
0 votes
0 answers
74 views

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/myproject/mymodule/ClassName in Android Instrumented Tests

can anyone help to solve this problem? Previously, i try to create a instrumented test for my project. I create new module for unit test and an error occurred in the module when I created the class, ...
Ichwan Sholihin's user avatar
0 votes
1 answer
27 views

How can one get a NoClassDefFound for a JDK class/jar?

In updating a version of a dependency, I began getting a java.lang.NoClassDefFoundError: javax/net/ssl/SSLSession. javax.net.ssl.SSLSession is a JDK class found in rt.jar. How can updating a ...
Key Lay's user avatar
  • 366
0 votes
1 answer
81 views

java.lang.NoClassDefFoundError while using mongoDB

I made my own Password Manager with java. I store the data with MongoDB and my IDE is VSCode. I can run the project without any problems in VSC. I made a .bat file to start the program from my Desktop....
Bootfahrer's user avatar
0 votes
0 answers
105 views

Getting NoClassDefFoundError in jar file

I just added new dependency: <dependency> <groupId>com.github.hamza-cskn.obliviate-invs</groupId> <artifactId>core</artifactId> <version>4.1.13</...
Timas_bro's user avatar
0 votes
1 answer
68 views

Android library using old Ktor version causes NoClassDefFoundError

I'm trying to add TelemetryDeck analytics to my Android app that uses Ktor 2.0.0 but I get an error when I launch the app because TelemetryDeck's SDK uses Ktor 1.6.7 The Full Error: java.lang....
Mox4's user avatar
  • 41
0 votes
0 answers
21 views

How to resolve org.eclipse.emf.ecp.cdo.provider in java 11

I am using Apple silicon. When I build and run the plugin with Java 11 in Eclipse, the following error occurs. java.lang.Error: Unable to resolve org.eclipse.emf.ecp.cdo.provider at org.eclipse....
user21415561's user avatar
0 votes
0 answers
463 views

Error mvn install java.lang.NoClassDefFoundError: org/codehaus/plexus/util/Scanner

Im trying compile the project but this error showing: java.lang.NoClassDefFoundError: org/codehaus/plexus/util/Scanner Using Java 11 and Maven v3.8.1 by Intellij I set: <plugin> ...
Ariane Leite's user avatar
0 votes
0 answers
55 views

NoClassDefFoundError after Restart programmatically

I had this class, which work as it designed, if I started the spring boot app normally. public class ComboBoxHelper { private static final Logger logger = LoggerFactory.getLogger(ComboBoxHelper.class)...
Rolf Warnecke's user avatar
0 votes
0 answers
30 views

NoClassDefFound Error but the class is there? Netbeans

The below code throws "NoClassDefFound" error at PDDocument document import org.apache.pdfbox.pdmodel.PDDocument; private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { /...
cjingeorgia's user avatar
0 votes
1 answer
788 views

JavaMailSenderImpl got java.lang.NoClassDefFoundError: javax/activation/DataSource with java 17

Spring version: 5.3.10 I upgraded the project to use java 17, the source code can compile but I got the java.lang.NoClassDefFoundError: javax/activation/DataSource when trying to send the email with ...
Truong Nguyen Xuan's user avatar
1 vote
0 answers
72 views

NoClassDefFoundError in org.opendaylight.yangtools.yang.parser.rfc7950.reactor.ServiceLoaderState$XPath

I use org.opendaylight.yangtools 9.0.7 <dependencies> <dependency> <groupId>org.opendaylight.yangtools</groupId> <artifactId>yang-...
Kirill Golovkin's user avatar
0 votes
0 answers
27 views

Getting java.lang.NoClassDefFoundError while using the NormalDistribution class of org.apache.math3

I am receiving the java.lang.NoClassDefFoundError error while using the NormalDistribution class of org.apache.math3 Attaching the statement where i am getting the error below. org.apache.commons....
Arnav's user avatar
  • 1
0 votes
0 answers
74 views

java.lang.NoClassDefFoundError: Failed resolution of: Ljava/net/http/HttpRequest;

I want to use IP2Location.io in my Android Studio app. I am starting with this program from their internet site. I am stuck on this error. I do not understand why this difficulty including java/net/...
Mick's user avatar
  • 653
0 votes
0 answers
33 views

code in sbt console raises java.lang.NoClassDefFoundError whereas scala repl or code in source files does not

I am using quill database library. my test code is along these lines: package dtest import io.getquill._ case class Cdl(id: Int, name: String) inline def cdl= quote { query[Cdl] } def testa = { ...
fulvio ciriaco's user avatar
0 votes
1 answer
266 views

Upgrading Selenium version to 4.8.3 throws java.lang.NoClassDefFoundError: org/openqa/selenium/ElementNotVisibleException

After I've upgraded Selenium version to 4.8.3 I'm no longer able to run my tests as I receive the following error: java.lang.NoClassDefFoundError: org/openqa/selenium/ElementNotVisibleException Has ...
lalexa's user avatar
  • 1
0 votes
0 answers
34 views

I'm trying to run my first spring application on eclipse IDE. Even though I've added the correct spring jars also, I'm getting this error

When I ran this program on eclipse IDE, I'm getting this error. Error: Unable to initialize main class springApplication.Main Caused by: java.lang.NoClassDefFoundError: org/springframework/context/...
kaW's user avatar
  • 11
0 votes
1 answer
120 views

Issue with connecting to MySQL database using Sikulix 2.0.5

I am currently facing a problem with Sikulix 2.0.5 on a Windows 10 operating system, with JAVA8, Python, and Jython installed. Previously, I had been using version 1.1.3 successfully, where I had ...
George Sakkas's user avatar
0 votes
0 answers
40 views

When running a simple Spark program in Java - getting NoClassDefFoundError

I was always able to make this program work few years back. It's simple reading the apache web logs. Getting this error while execution Exception in thread "main" java.lang....
Ashu's user avatar
  • 634
2 votes
1 answer
2k views

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/firebase/appcheck/interop/InternalAppCheckTokenProvider;

Yesterday, after I add firebase storage dependencies, I got this error. FATAL EXCEPTION: main Process: com.example.myapplication, PID: 12101 java.lang.NoClassDefFoundError: Failed resolution of: Lcom/...
popadom's user avatar
  • 51
0 votes
0 answers
33 views

java.lang.NoClassDefFoundError: org/opencv/core/Core

So I added OpenCV in Eclipse in Preferences. Then I tried loading it in Main class and I got this error: Exception in thread "main" java.lang.NoClassDefFoundError: org/opencv/core/Core
gavrio55's user avatar
2 votes
3 answers
2k views

"No Class Def Found Error" appeared after adding a library, but still not fixed after removing it

After adding a video trimmer library this error below appeared on application starts, After removing the library and its dependencies the error still. I tried for hours to solve the problem, and tried ...
Mahmoud Nabil's user avatar
0 votes
0 answers
46 views

Class not found exception for SpotifyWebApi

I am creating a data plugin that uses the spotify web API. I am trying to get the artist from building a spotifyApi: package src.main.java.edu.cmu; import se.michaelthelin.spotify.SpotifyApi; import ...
efang's user avatar
  • 1
0 votes
0 answers
29 views

Java - Building executable using WiX won't load dependencies [duplicate]

I'm working on a project using Flatlaf look and feel. I'm using NetBeans. It runs ok in NetBeans. I want to build a standalone application for Windows. I used WiX to build a standalone application for ...
Rodrigo Oliveira's user avatar
0 votes
0 answers
16 views

No class def found error unable to resolve this

enter image description hereNo classDefError added few dependency also but not working
Charan Mvs's user avatar
1 vote
0 answers
394 views

NoClassDefFoundError: io/github/classgraph/ClassGraph

Am having jdk 19 and when I try to execute a feature file by giving Run as -> cucumber feature then am getting the below error and same applies with Java 11 as well Exception in thread "main&...
KK12's user avatar
  • 61
0 votes
0 answers
33 views

java.lang.NoClassDefFoundError when run the project from terminal

When I run a project from terminal with "java -jar "projectName".jar, I receive this error: java.lang.NoClassDefFoundError. The problem is that my project includes another project as ...
xplore's user avatar
  • 11
1 vote
0 answers
165 views

java.lang.NoClassDefFoundError: kotlin/streams/jdk8/StreamsKt after adding Dagger Hilt to project

I recently added Dagger Hilt to my Android project and now when I run the app, I get the following error: "java.lang.NoClassDefFoundError: kotlin/streams/jdk8/StreamsKt". I have tried ...
naggab's user avatar
  • 371
1 vote
2 answers
71 views

NoClassDefFoundError: scala/collection/TraversableOnce (Using Phantom Library To Fetch Data From ScyllaDB Cluster)

I'm new to scyllaDB, I've made 3 Node ScyllaDb Cluster and it's running. Datacenter: DC1 =============== Status=Up/Down |/ State=Normal/Leaving/Joining/Moving -- Address Load Tokens ...
Zaryab Ali's user avatar
0 votes
0 answers
13 views

compile vs implementation in gradle | Getting NoClassDefFound when using in implementation in gradle

I am running a subProcess in java , when using "implementation" in gradle I am getting NoClassDefFound for com/azure/core/management/AzureEnvironment, but when I am using in compile ...
Yahalom Raviv Maimon's user avatar
0 votes
0 answers
32 views

Program works in IntelliJ IDEA but doesn't run in terminal. Problem with WebDriver [duplicate]

I have a program that connects Selenium. The program opens the page in the browser, logs in, regularly updates the page and sends me an email if there is a change. My system Linux Mint 21.1. I use ...
zotov_l88's user avatar
0 votes
0 answers
91 views

Databricks notebook throws a `NoClassDefFoundError` when using case classes

NoClassDefFoundError: Platform (wrong name: $lineced0c9ad1f774dd1b896de81ceff72a831/$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$Platform) My Databricks notebook throws this ...
SmokedTurkey's user avatar
0 votes
1 answer
51 views

URLClassLoader NoClassDefFound Exception when loading class from JAR

I am trying to write my own small plugin loader: package some.package.plugins import org.clapper.classutil.{ClassFinder, ClassInfo} import wvlet.log.LogSupport import java.io.File import java.net.{...
Sim's user avatar
  • 4,198
0 votes
0 answers
73 views

java.lang.NoClassDefFoundError with Gson using Maven

I'm trying to use the GSON library to parse a JSON file in my Maven project. I've added the following dependency to my pom.xml file: <dependency> <groupId>com.google.code.gson</...
Cesare Shalafi's user avatar
0 votes
0 answers
194 views

NoClassDefFoundError in SpringBoot

I'm trying to run the project from the internet, here is an error I got: 2023-02-28 20:14:28.225 ERROR 13204 --- [ main] o.s.boot.SpringApplication : Application run failed ...
AzA's user avatar
  • 1
1 vote
0 answers
50 views

NoClassDefFound error for com/aspose/pdf/BaseParagraph with aspose pdf 23.1 jdk17 jar in Eclipse

I am trying to work with aspose PDF jar and I am not able to get past the NoClassDefFound error for aspose pdf jar. I am using aspose imaging as well as aspose words jar. Both these do not have these, ...
Sushma raghu's user avatar
0 votes
1 answer
193 views

java -jar can't find included .jar file

I'm tearing what little hair I have left over this one: any help will be extremely gratefully received! I have constructed a .jar file (called, rather uninspiringly, compare-yaml.jar) with the ...
Graeme Burton's user avatar
0 votes
1 answer
824 views

IntelliJ IDEA suddenly won't open on Mac "Error occurred during initialization of VM"

IntelliJ IDEA suddenly wouldn't open on my Mac (Intel). The app icon bounces but then nothing happens—no crash report or any kind of message—and there's nothing in Activity Monitor or ps. Then I tried ...
Andrew Cheong's user avatar
0 votes
1 answer
350 views

Class org.apache-spark.SparkException, java.lang.NoClassDefFoundError: Could not initialize class XXX

Class org.apache-spark.SparkException, java.lang.NoClassDefFoundError: Could not initialize class XXX(class where field validation exists) Exception when I am trying to do field validations on Spark ...
Dheeraj Garikapati's user avatar
0 votes
0 answers
113 views

Why is NoClassDefFoundError being thrown after static initialization failed?

Could anyone please help with understanding of the following. Here is the code: public class GoLoose { public static void main(String[] args) { try{ new Lost(); }catch (...
Konstantin's user avatar
0 votes
0 answers
7 views

RAD 9.0.1.3 java.lang.NoClassDefFoundError: org.DataFactory error

I have recently updated from RAD 8.5.1 to RAD 9.0.1.3. I am trying to run as JUnit a project that was executing under 8.5.1, and now I am getting an error: java.lang.NoClassDefFoundError: org....
Marach's user avatar
  • 1
0 votes
1 answer
214 views

Exception java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7

I'm having a problem with building Java project with Flutter module when compiling it. It shows the next problem: Exception java.lang.NoClassDefFoundError: Could not initialize class org.codehaus....
Nikita Shadkov's user avatar

1
2 3 4 5
45