Questions tagged [classpath]
In Java, the classpath tells the Java Virtual Machine where to look for user-defined classes and packages when running Java programs. The classpath is a parameter and can be set either on the command-line, or through an environment variable.
classpath
4,859
questions
1
vote
0
answers
16
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
40
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....
-1
votes
1
answer
30
views
Error while compiling a script of java for a spigot plugin
I'm starting in Java programming and I want to make a plugin to create my own items.
I have the code, but I want to import a Java file that's in the same directory
My project directory structure is:
D:...
0
votes
0
answers
23
views
Set CLASSPATH in AWS Lambda
Is there any way to set CLASSPATH in Lambda?
I would like to managed my properties file centrally at an EFS folder shared with Lambda.
For example in tomcat I can set it in setenv.sh file
CLASSPATH=&...
-1
votes
0
answers
31
views
Print out Java classpath from a service running on liberty container in podman
How can I print out the Java classpath from a service running on liberty container in podman.
-1
votes
1
answer
61
views
How can I use arguments containing ";" to subprocess.run?
I need to launch a JVM from a Python script. For this I'm trying to use subprocess.run. One of the arguments to the JVM is the classpath. In Windows the separator in a Java classpath is the semicolon ;...
0
votes
0
answers
17
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
0
answers
19
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
65
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
107
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
28
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
42
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
...
0
votes
0
answers
36
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
0
answers
26
views
How do I set a classpath inside the JAR file on Intellij?
I want to set the classpath to be in the JAR file so that the JAR file compiles the entire project directory. Basically my app is supossed to compile .java files and run them so I've decided to have ...
0
votes
0
answers
25
views
How do I add a classpath to the JAR file using Intellij?
So I have the application working fine except for one issue. In summary, I have a jar file that runs the app and when the app launches, I can search for any of the test files like Test1, Test2, and so ...