2,242 questions
0
votes
0
answers
43
views
How to fix "ClassNotFoundException" when running Spring Boot jar built with Maven? [closed]
I built a Spring Boot application using Maven, and the project compiles without any errors. However, when I run the packaged jar using : java -jar target/myapp-0.0.1-SNAPSHOT.jar I get the following ...
0
votes
1
answer
60
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....
0
votes
1
answer
65
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;
...
-2
votes
2
answers
85
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/...
0
votes
1
answer
79
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 ...
1
vote
1
answer
181
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 = ...
-2
votes
1
answer
243
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
97
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
1
answer
68
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 ...
0
votes
1
answer
231
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 ...
0
votes
0
answers
68
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 ...
0
votes
1
answer
88
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
votes
1
answer
105
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
1
answer
85
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 ...
0
votes
0
answers
122
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 ...
-1
votes
1
answer
69
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 ...
-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
1
answer
80
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....
1
vote
2
answers
732
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
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
375
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 ...
-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
542
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
755
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
0
answers
307
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 ...