4,852 questions
5
votes
1
answer
145
views
IBM ODM CLI build fails with IllegalArgumentException: URI is not hierarchical when adding specific XOM JAR to xom-classpath
I am building an IBM ODM RuleApp using the ODM CLI compiler in a GitLab CI (Linux runner) environment.
java -jar rules-compiler.jar -config build.properties
The build fails with the following error ...
1
vote
1
answer
64
views
Intellij how to add directory to class path so app can load spring config
I am using IJ community(version below) but no matter how I add directory:
Add as resource folder in File->Project Structure-Sources screen.
Add as dependency "classes folder in File->...
0
votes
2
answers
111
views
"command is either misspelled or could not be found" with Win 11 but not Win 10
A year ago I created an Eclipse project (Eclipse 2020-06, Java 8, Win 10) that uses the GIS LAStools libary to e.g. extract data from a couple of files.
I'm now using Win 11 on a different PC and want ...
0
votes
0
answers
81
views
Handling Java inter-projects dependencies in multi-root workspace
I'm testing Theia as an Eclipse replacement IDE for my Java projects and am trying to replicate the familiar project structure: a workspace directory containing a folder per project, each project ...
4
votes
0
answers
86
views
Unsatisfied dependency for synthetic bean at runtime
I’m a contributor of the OpenSource project VanillaBP which is providing hexagonal architecture to business processing applications using process engines.
In the past VanillaBP was only available to ...
0
votes
1
answer
76
views
java.lang.NoClassDefFoundError at runtime for class of locally installed repo ONLY when called in JavaFX app
I am creating a JavaFX app with several dependencies installed via maven. One of the dependencies is a third party JAR (modified version of the org.llrp.ltk lib for RFID) which does not have a ...
0
votes
1
answer
53
views
How to set bootstrap classpath in NetBeans 24 on Windows 10
I have set JAVA_HOME to C:\Program Files\Java\jdk-17
Path: includes %JAVA_HOME%\bin and I've reinstalled NetBeans 24 and ensured that the setup points to the jdk-17 file, and the Tools\Java Platforms ...
0
votes
1
answer
66
views
Error on request this "matchesJsonSchemaInClasspath" java.lang.IllegalArgumentException: Schema to use cannot be null"
I am trying to validate the body of a JSON response against a schema using the matchesJsonSchemaInClasspath() method from the RestAssured library. However, I am encountering the following error during ...
2
votes
1
answer
431
views
How can I conditionally use bc-fips or bcprov-jdk18on in different runtime modes without classpath conflicts? [closed]
I'm working on a Java 21 application that uses Bouncy Castle cryptographic libraries. In most runtime modes, I rely on the FIPS-compliant provider (bc-fips:2.1.0). However, in one specific mode of ...
0
votes
1
answer
48
views
getResource returns null for valid resource path
I have a Groovy Maven project, and I have a JSON schema named layout-schema.json in src/main/resources/choosechee/cheeboard. I have a class called LayoutReader that needs to use the schema. When I run ...
0
votes
1
answer
95
views
java classpath add a common file is no meaning?
My Java program relies on a third-party configuration directory as part of its classpath. Initially, I directly appended the entire directory to the classpath using -cp /a/b/c:.
However, I later ...
0
votes
0
answers
49
views
Can PySpark in client mode set the Java extra classpath for the Spark context in a standalone driver?
Is there any Pythonic way to implement a driver app as a standalone Python application, when the executor is in Kubernetes, relatively easily?
It is desired:
not to make calls like spark-submit as a ...
0
votes
1
answer
47
views
How to add a directory to classpath from a gradle plugin?
I have a task which creates a directory within build-directory. There is one file within the directory. I am trying to add that directory to classpath from within a gradle plugin written in java.
...
0
votes
1
answer
506
views
JUnit not recognized in VS Code anymore after reopening project (no green triangle icons)
I'm trying to run JUnit tests in Visual Studio Code without using Maven or Gradle, just using plain .java files and .jar libraries.
Project Setup:
I'm using VS Code with the Java Extension Pack, and ...
-2
votes
2
answers
99
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
81
views
Eclipse launch configuration classpath forces old dependencies version from included projects
I'm using an Eclipse workspace where I work on several projects that depend on each other, where some haven't been updated in a while and have older version dependencies.
- My Application
|
+- dep-...
1
vote
1
answer
245
views
Otel Extension with External Libraries
What am I doing ?
trying to create a Otel Extension and everything is working fine until the moment I use external libraries.
Relevant context information:
I am using Maven instead of Gradle.
I don'...
0
votes
1
answer
78
views
My IntelliJ project uses a shared library as its classpath instead of its own build directory. What can I do?
I have a project MyProject that includes a shared library, MyShared. I created a Debug Configuration for this project, which specifies -cp MyProject.main as its "module whose classpath should be ...
1
vote
0
answers
71
views
Why can't I use the same class path for my compile command versus my run command when using JEP-458?
I've been using JEP 458 to great effect, until I ran into a weird situation today.
Here is some relevant info.
$ java --version
openjdk 24-ea 2025-03-18
OpenJDK Runtime Environment (build 24-ea+25-...
3
votes
0
answers
48
views
spring-boot:run fails on getting classpath*:/*.json when including com.graphql-java-generator:graphql-java-client-runtime
I have a spring-boot application that wants to process a number of JSON-files from within the classpath through classpath*:/*.json.
Everything works fine when I start the application:
in eclipse
...
0
votes
0
answers
69
views
Facing issue with classpath variable in Java
/home/thiru/VS Code Files/Java Files
├── F
│ ├── test.class
│ └── test.java
└── G
├── c.class
└── c.java
c.java imports F package and has main function
When I use javac and java :
:~/VS ...
-1
votes
1
answer
112
views
VS code: Java file that fetches api url throws a weird form of ClassNotFoundException
I am trying to create a program that fetches data from a url. When I try to debug it with VS code it outputs nothing. Even if I put "System.out.print("Something");" after the catch ...
0
votes
1
answer
115
views
how to use external configuration files while executing java -jar command?
Have a jar file of an application, there are 2 different external configuration files which needs to be execute during execution of jar file as the backend code of application needs some property ...
1
vote
1
answer
98
views
Is it possible to create Android activity from JNI?
My app is C++, it creates a JNI JVM (raw JVM, with class path to some of my .class files).
The JVM above is rather a core Java Virtual Machine without knowing about android.
How to add class path to ...
0
votes
0
answers
46
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 ...
1
vote
1
answer
131
views
How to properly include external jar file in javacard ant build?
I have an issue with ant build while including external JAR file. I have a JAR file from another project that I want to import.
<?xml version="1.0" encoding="UTF-8"?>
<...
1
vote
1
answer
490
views
JAXP09020005: The specified argument 'classpath:/schemas/wsdl' (case sensitive) for 'setRewritePrefix' is not valid
We use jakarta.xml.ws.Provider class (lib version:4.0.2) in our project.
This class chooses the com.sun.xml.ws.spi.ProviderImpl class as the provider, which is related to com.sun.xml:jaxws-rt library (...
0
votes
0
answers
91
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
589
views
A problem occurred configuring project ':launcher'. Unity android build
I've been having this same problem with building my android game from Unity. I recently changed from version 2021.3.7f1 to 2022.3.29f1 and then back again trying to fix a separate issue with my APK ...
5
votes
0
answers
321
views
Kotlin scratch file refuses to use module classpath
In a newly created project via freshly installed IntelliJ IDEA, I create simple scratch kotlin file with simple coroutine. The code works well in the "interactive window" (the one on the ...
-1
votes
2
answers
85
views
Java cannot find main class despite it being specified in project settings and manifest
In Netbeans 14, I created a new project. The IDE created it with the main class automatically populated. Once built, the JAR does not run, be it in Linux or Windows.
Package name: com.Myself....
0
votes
0
answers
29
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
396
views
intellij run configuration: how to you add -javaagent:target/newrelic/newrelic.jar BEFORE the main class?
In intellij, you have to setup a run configuration to be able to run an app.
In the run config, you specify the jdk, then -cp [your module], then the main class, then you can add "-javaagent:...
0
votes
1
answer
117
views
flutter Could not resolve all files for configuration 'classpath'
I am using flutter 3.22.1 (gradle version is:7.6.3-all) and get "Could not resolve all files for configuration 'classpath'." when run project in android studio.
error image
this is my 'build....
0
votes
0
answers
164
views
How can i add classpath in the Android studio jellyfish version?
dependencies {
classpath 'com.android.tools.build:gradle:3.6.3'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
}
I need to add this part to the gradle, but I don't know where to ...
0
votes
0
answers
162
views
Error with topaz.SigUsb java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jdk1.8.0_201\jre\bin\SigUsb.dll: Can't find dependent libraries
I am developing a Java application that uses SigUsb.dll for interfacing with a digital signature device. However, I am encountering a java.lang.UnsatisfiedLinkError stating that dependent libraries ...
1
vote
1
answer
60
views
Inconsistency when running java jar via CLI and IntelliJ
My project is in the following structure:
src
└── main
└── java
└── tests
├── functional
│ ├── TestA
│ └── TestB
├── verification
...
1
vote
0
answers
77
views
Running Java program with Added Libraries from Command Line
I've built a simple Java program using some Processing classes, and I'm trying to get them to run from the command line (so I can get them to run on a Raspberry Pi without an IDE). I can get the .java ...
0
votes
1
answer
73
views
How to lazy load multi-file XSD from a ZIP on runtime using Kotlin?
A requirement emerged in which an xsd.zip file containing many schemas needs to be loaded at runtime. This ZIP file will be available on classpath, on top of that, it contains many schemas with xsd:...
1
vote
0
answers
97
views
How to get a list of dependent jars within Tomcat during runtime?
I want to have a listing of all jars that are included in my application during runtime (Java 8 compatible). Therefore I fetch all files that ends with .jar from the classpath (System.getProperty(&...
0
votes
0
answers
307
views
Outdated XML processor is present on the classpath
Getting below error:
Enabling XXE protection failed. The attribute http://javax.xml.XMLConstants/property/accessExternalDTD is not supported by the TransformerFactory. This usually mean an outdated ...
-1
votes
1
answer
501
views
java.lang.ClassNotFoundException: org.apache.jsp.WEB_002dINF.jsp.ImportTab_jsp
We are getting below exception
2024-03-13 11:42:00,723 ERROR | Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [java.lang.ClassNotFoundException: org.apache....
0
votes
1
answer
73
views
Where to put resources and access it in Java Project (in IntelliJ)? How to read from it then?
I have text file, which I want to read from, but I don`t really know how to navigate from the class path to the path where the file is.
This is my project structure:
Project structure photo(Intellij)
...
0
votes
1
answer
178
views
Gradle Multi-Module Build with custom source sets: Missing Classes in Compile Classpath of dependent modules
I'm currently contributing to the OpenLineage Spark integration, a project entirely in Java and built with Gradle (8.4). It's a multi-module project with modules named app, shared, spark2, spark3, ...
1
vote
1
answer
208
views
What is the recommended way to access file inside test/resource folder from karate features file inside test/java/karate
According to the documentation, classpath is app/test/java. So how to access the json files inside resources folder in spring-boot.
-1
votes
3
answers
125
views
How do I run this GitHub java project?
I want to run this GitHub java program:
https://github.com/ss2cp/AI-TicketToRide
According to the README.md it should run with src/ttr.main/TTRMain
I am trying to start the game in linux, but I keep ...
-1
votes
1
answer
2k
views
Trouble Adding ANTLR to Classpath in Java: "package org.antlr.v4.runtime.tree does not exist"
I'm having difficulties adding ANTLR to my Java classpath and getting it to work. I've followed the usual steps, but I'm still encountering the error message:
package org.antlr.v4.runtime.tree does ...
0
votes
1
answer
154
views
How can Child jar access a resource present on parent Jar's classpath?
I have parent jar. This parent jar has a resource on its classpath. This parent jar has some 3rd party dependency jar embedded in it (child jar). The child jar has some java code which tries to access ...
0
votes
0
answers
39
views
ClassNotFoundException with Java's -cp on Mac OS X
I am trying to wrangle my professor's code which is organized in the following fashion:
home directory
src
bn
base
core
parser
util
I've managed to compile it all, but ...
-2
votes
1
answer
1k
views
Build failed with an exception (2 errors)
When I try to build the app, it throws me an error:
FAIL: Build failed with exception.
Where:
File 'C:\Users\Lukáš\Fart button\Library\Bee\Android\Prj\IL2CPP\Gradle\launcher\build.gradle' line: 1
...