2,240 questions
0
votes
1
answer
67
views
Android app crashes on launch: java.lang.ClassNotFoundException for existing Composable screen class
I'm building a Quran app using Jetpack Compose in Kotlin. The app builds successfully and installs on a real Android device (Samsung S908E), but crashes instantly on launch.
Crash Log:
Caused by: java....
1
vote
1
answer
41
views
Randomly occurring ClassNotFoundException in Wildfly@Openshift with mounted PVC
A Java application landscape is currently running on [email protected] under Java21. The application has been extensively tested and is stable in the test stack. Now it is to be deployed in an ...
0
votes
1
answer
69
views
Why am I getting a ClassNotFoundException for hadoop.conf.Configuration in Eclipse?
I am trying to create a table in Hbase using Java, but I keep getting a ClassNotFoundException.
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.hbase.HColumnDescriptor;
...
0
votes
1
answer
68
views
ClassNotFoundExcetion is thrown by library when class is present in the application's classpath
I have a Maven project with the following dependencies:
org.apache.poi:poi-ooxml:4.1.0
org.apache.poi:poi:4.1.0
An internal dependency/library, lets call it Lib-A, which was built using Gradle. This ...
-2
votes
2
answers
94
views
how is Classpath decided in java? what makes a valid classpath?
I understood how the classpath is necessary for running the project but I still have some doubt.
I compiled my class using
javac /Users/username/IdeaProjects/leetcodePrograms/src/problems/...
1
vote
0
answers
381
views
java.lang.NoClassDefFoundError: software.amazon.awssdk.auth.credentials.AwsCredentials
I have no references to the above class in my code. I am using software.amazon.awssdk.auth.credentials.AwsCredentialsProvider class in my code. I still see the error.
Background: I am trying to ...
0
votes
1
answer
92
views
Spring Kafka: ClassNotFoundException: com.google.common.cache.CacheLoader
I write you this message because I have an error when trying to execute a Spring batch job that reads messages from a Kafka topic.
This job is triggered after calling an URL in my web app.
The final ...
0
votes
0
answers
47
views
Kafka Kraft is not taking "org.apache.kafka.clients.admin.AdminClient"
When starting Kafka with Kraft its not taking up "org.apache.kafka.clients.admin.AdminClient" where as with zookeeper its working fine. I'm getting ClassNotFoundException as its not taking ...
1
vote
1
answer
199
views
Unable to load Trino Spark connector in AWS Glue job
I'm trying to use the Trino Spark connector in an AWS Glue 4.0 job, but I'm running into issues loading the connector.
Relevant code in my glue job submission script:
trino_drivers_list = ...
0
votes
0
answers
33
views
Quarkus ClassNotFoundException for DTO in Shared Library After Idle Period
I’m building a multi-service architecture with a shared Gradle setup. Here's how my project is structured:
Root Gradle Project: Manages shared dependencies and configurations.
Child Gradle Projects: ...
-2
votes
1
answer
252
views
java.lang.ClassNotFoundException: org.postgresql.Driver in HttpServlet [duplicate]
There is an error when I want to connect to a PostgreSQL database from a servlet connection, a ClassNotFoundException for the PostgreSQL driver, with some details about servlet.
Class.forName("...
0
votes
1
answer
184
views
Getting ClassNotFound exception when running customChange in Liquibase
I am trying to make Liquibase to run a custom script with customChange, here is my setup:
changelog.xml
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
...
0
votes
1
answer
105
views
App Crashes on Receiving Firebase Notification: FlutterFirebaseMessagingService ClassNotFoundException in Flutter App
I'm developing a Flutter app using Firebase Cloud Messaging (FCM) for push notifications. The app crashes every time I receive a notification. This problem began after implementing FCM, and I’ve ...
0
votes
0
answers
45
views
ClassNotFoundException when trying to reference classes in jars in a sub-directory inside the executable jar
Projects
I have 2 Gradle based Java projects which both get packaged as .jar files:
Core
A java-library
Creates a .jar containing the projects .class files and a lib/ inside the .jar containing all ...
0
votes
1
answer
74
views
Program not Running --- Error -- java.lang.ClassNotFoundException
I am run my java code in IntelliJ it is showing this error:
Error: Could not find or load main class CWA_01_INTRO Caused by: java.lang.ClassNotFoundException: CWA_01_INTRO
whereas the same code is ...
1
vote
0
answers
225
views
java.lang.ClassNotFoundException - eatg (File :- com.google.android.gms@[email protected] (100300-668017056):5 )- Device status - 100% in background
The crash is happening in internal class of google play services. All the crashes are happening in background. Device status - 100% in background. Crash started from the last 5 days.
All the google ...
0
votes
1
answer
235
views
java.lang.ClassNotFoundException: com.mysql.cj.jdbc.Driver but mysql connector is in CLASSPATH [duplicate]
I have ubuntu 20.04.6. Openjdk 11. mysql-connector-java-8.0.20.jar, renamed to mysql.jar CLASSPATH="/var/www/html/java/mysql.jar", classpath stablished in ~/.bashrc After installing openjdk ...
1
vote
0
answers
70
views
ClassNotFoundException On IL2CPP AAB (Android) Build
We have a game that we have been developing for Android for a long time. We removed all 3rd party plugins because we received a build error.
After this stage, we started to encounter errors and tried ...
0
votes
0
answers
72
views
Scala doesn't detect MANIFEST.MD leading: Caused by: java.lang.ClassNotFoundException:
I am very aware that this covers the same error and output Caused by: java.lang.ClassNotFoundException.
The distinction here is i'm not using Java, I'm using Scala. I have not seen a question that ...
-2
votes
1
answer
164
views
Why do I get the error message "Error: Could not find or load main class Main Caused by: java.lang.ClassNotFoundException: Main" on IntelliJ? [closed]
I am trying to a simple HelloWorld program automatically generated by IntelliJ through IntelliJ that is running on a Linux Mint installation. I can run the code through the terminal if I navigate ...
0
votes
1
answer
95
views
Unable to use JetBrains UI Libraries
I am trying to develop a plugin for IntelliJ Idea community edition, I am creating the plugin project like shown
Creating Plugin Project
I am using Java to develop the plugin and gradle as my build ...
1
vote
1
answer
563
views
Getting ClassNotFoundException for "com.ctc.wstx.stax.WstxInputFactory" after migrating from Tomcat 9.0.87 to 9.0.88
I've recently migrated my Struts web project from Tomcat version 9.0.87 to 9.0.88. When I start the
Tomcat I'm not able to access the site and seeing blank pages. And found the below error in the log
...
-1
votes
1
answer
107
views
Why can't my class be run after declaring package and be found by another class in the same package/folder?
I am having problems understanding how packages work. Not using any IDE.
I have the following folder structure:
~/dropbox/api/data
Inside the data folder, there are (only) Producer.java, Consumer.java....
0
votes
0
answers
28
views
Eclipse gives me a classnotfoundexception everytime after saving a file
I have the most annoying problem in my eclipse: Everytime i edit a java file and save it my project somehow looses knowledge of some classes in my classpath. For example i am writing junit tests with ...
0
votes
1
answer
91
views
ClassNotFoundException when calling java code from a different folder than the one holding the code
The problem
I want to run java code from the command line, and I don't understand why I manage to do that from within the folder holding the code, but not from another folder. I am on Windows and am ...
-1
votes
1
answer
76
views
How to solve the issue resulting in output of the error message "class not found wrong class name"? [duplicate]
I have the following Java code in a file:
package hello_project;
public class Hello {
public static void main(String[] args) {
System.out.println("Hello world");
}
}
The ...
0
votes
0
answers
129
views
ClassNotFoundException in WildFly when using runtime-name argument for deployment
I need to use the --runtime-name argument when deploying an application for giving a stable name for HA singleton deployment which uses the runtime-name (deployment) for distinguishing singleton ...
0
votes
0
answers
88
views
Exception is caught with catch(Throwable) but not with catch(Exception)
I forgot to copy a jar dependency to the right place so the application crashed due to a ClassNotFoundException. But the Problem is I needed about an hour to figure that out because the Exception is ...
-1
votes
1
answer
75
views
Error: Could not find or load main class simulator.launcher.Main Caused by: java.lang.ClassNotFoundException: simulator.launcher.Main
I have created a project in Eclipse, and I want to run it using cmd, so I have copied the .bin folder to my desktop and from that address I am trying to run it, my project uses libraries, specifically ...
0
votes
0
answers
77
views
Unable to create AWS cluster service due to `Caused by: java.lang.ClassNotFoundException: org.springframework.boot.SpringApplication`
I am working on a springboot app,
containerize it using docker and pushed it to AWS ECR.
The issue is when I tried to deploy and run a task using the image,
I need to create a service, and I got an ...
-1
votes
1
answer
4k
views
java.lang.NoClassDefFoundError: io/micrometer/observation/transport/RequestReplyReceiverContext
I am working with Spring MVC. All dependencies of Spring are added so app want to add micrometer-core for io/micrometer/observation/transport/RequestReplyReceiverContext and I did it
My pom.xml
> `&...
0
votes
2
answers
768
views
Maven java.lang.ClassNotFoundException: Could not find or load main class
I have a problem with my Maven project. The program was already running without any problem but now I can't start it anymore. It is important that the user can run this application by just double ...
0
votes
1
answer
84
views
springboot, spring boot jpa,class not found exception, Endpointer
This is BlogController:
package com.taskproject.blogproject.controller;
import com.taskproject.blogproject.entities.Blog;
import com.taskproject.blogproject.repositories.BlogRepository;
import org....
0
votes
0
answers
79
views
How to resolve class Not found exception in STS
I installed STS(spring tool suit) and just created a maven spring starter project to print hello world.
I got the error:class not found exception. Then I gone through some of previous solutions on ...
1
vote
2
answers
751
views
Java uncatchable ClassNotFoundException when using java.awt.Clipboard
I get the following exception when running this code
private static String getClipboard() {
try {
return (String) Toolkit.getDefaultToolkit().getSystemClipboard().getData(...
0
votes
0
answers
115
views
Error inflating class androidx.appcompat.widget.SearchView in Dialog
<style name="WallSearchView" parent="Widget.AppCompat.Light.SearchView">
<item name="colorControlActivated">@color/light_black</item>
&...
0
votes
1
answer
306
views
java.lang.RuntimeException: Unable to instantiate application class z
I'm developing an Android app using Hilt for dependency injection, but when I run the app, I get a ClassNotFoundException for my MainApp class. Here's the logcat error message:
Process: com.nat....
0
votes
1
answer
172
views
Error: Could not find or load main class com.communication.App in IntelliJ IDE
When executing a Jar using IntelliJ IDE I encountered the error
***"C:\Program Files\Zulu\zulu-17\bin\java.exe" -Dfile.encoding=windows-1252 -jar C:\Users\srpradhan\Desktop\learning\Java\...
0
votes
1
answer
393
views
What causes a "java.lang.ClassNotFoundException: com.sun.jna.Callback" Error using maven javafx:jlink?
After making a JavaFX Application, the hardest part has been trying to export it. I am using openjfx 19 and openjdk 11 and want to export the Application using the javafx-maven-plugin javafx:jlink.
In ...
0
votes
0
answers
41
views
Error: Could not find or load main class NewAssesment.Orenge Caused by: java.lang.ClassNotFoundException: NewAssesment.Orenge
This is recent code that i run in my eclipse and i got this exception my previous programme run properly but recent programme are throwing this exception
i have tried to configure the build path but ...
-1
votes
1
answer
1k
views
Newly created or modified java files not running in vscode
I have a folder named java where i keep all the .java files
Recently I created a new java file to solve a simple DSA problem named MinimumTime.java
public class MinimumTime {
public static void ...
0
votes
1
answer
81
views
Exception in thread "main" java.lang.ClassNotFoundException while executing a jar file
I'm trying to execute a jar file and get the error - Exception in thread "main" java.lang.ClassNotFoundException . The program is in Scala language written in Intellij IDE using scala-sdk-2....
0
votes
1
answer
552
views
Errror running Maven project in Eclipse
I am getting error while running all Maven projects in Eclipse as Maven build, but they run successfully if I run manually in Eclipse. Can someone please help.
I have tried running it from Command ...
0
votes
0
answers
51
views
Android ClassNotFoundException for MainActivity despite correct manifest and class path
I'm encountering an issue with my Android application where I'm getting a ClassNotFoundException for the MainActivity despite having a correct manifest configuration and the class being in the correct ...
0
votes
0
answers
766
views
mysql-connector isn't finding com.mysql.cj.jdbc.Driver? [duplicate]
I'm working on a project that involves a java program accessing a mysql database and display that info on a tomcat page. I have it working on my local machine but I want it running on my Raspberry Pi ...
0
votes
1
answer
32
views
Failing to setup two distinct packages in the same project with NetBeans IDE 19
I'm trying to setup a project in NetBeans IDE 19 to have two packages in order to test Java protected access modifier.
My setup is the following:
Project: TestAccessModifiersProtected
\- package: ...
0
votes
0
answers
312
views
ClassNotFoundException error when using opencsv
I am a beginner java developer using Eclipse. I want to read in a CSV file and want to use opencsv utilities as a reader (and use other opencsv utilities when I get off the ground). I have ...
0
votes
1
answer
401
views
Getting error while doing JNDI lookup for EJB in websphere 8.5
My application is getting deployed and loggers also shows the mapping for all the EJBs.
But while doing look up for EJB, it is giving error stating
EJBMDOrchestr E CNTR0075E: The user-provided class ...
0
votes
0
answers
80
views
java.lang.ClassNotFoundException: java.sql.Driver when upgrading from java 7 to java 11 in sbt 0.13.18 project
I am trying to update my sbt project from java 7 to java 11. I am using sbt 0.13.18 and scala 2.11.12. The code compiles but when starting the project i encounter the following error.
[ERROR] java....
-1
votes
1
answer
447
views
TCPDF class not found in CPANEL. Works fine locally
I followed a YouTube tutorial to deploy my Laravel project on a subdomain in cPanel. Initially, I zipped and uploaded the project successfully, and the website can be accessed. However, when I tried ...