4,852 questions
5
votes
1
answer
142
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
79
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
82
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
75
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
50
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
61
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
424
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
47
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
94
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
47
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
46
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
490
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
98
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/...