39 questions
0
votes
1
answer
74
views
Problems getting JavaFX running on VS Code
I have never used JavaFX before and I am trying to get it running in VS Code using the basic Maven project build tools and it creates the project just fine. I then go in and update all the version in ...
1
vote
2
answers
115
views
Given an absolute path to java.exe How to determine if it is JDK or JRE
I wish to determine if absolute path to java executable is from a JDK or JRE.
I tried the below command on bin/java under JDK as well as JRE
/bin/java -XshowSettings:properties -version
But the output ...
0
votes
0
answers
103
views
Java String .isBlank() works in Eclipse/Powershell but not in Jar
I have a question.
I have written a program that sends me an SMS as soon as something specific does not appear in a log.
However, it is about this method:
private static void sendWarningSMS() {
...
1
vote
1
answer
11k
views
How to downgrade Java version in Mac system?
I am using mac and inside mac using Android Stuidio, I have done all setup and now My project requires Java version 11 but currently I have Java version 17.
I have checked Java version with this ...
1
vote
0
answers
104
views
Cordova Android build fail - java.lang.UnsupportedClassVersionError
I am trying to build a Cordova App to test on my Android device but get the following error:
* Where:
Build file 'C:\tm470\karate\platforms\android\app\build.gradle' line: 20
* What went wrong:
A ...
1
vote
1
answer
1k
views
How to resolve this "Unhandled Exception: PlatformException(Failed to run model, Interpreter busy,java.lang.RuntimeException: Interpreter busy" issue?
I am trying to create an android application utilizing the yolov5 model from TFlite. My custom detector will detect one class in real-time. As well as this app was built into my device, but after 2-3 ...
0
votes
0
answers
20
views
If RNetlogo is no longer being maintained, can I still use it? Running into errors [duplicate]
I am trying to use RNetlogo so that I can run a global sensitivity analysis on my model using the Sobol method but I am running into an error when I run the NLStart command (see below for code and ...
0
votes
1
answer
88
views
Why does result of Math.pow() and * differ while calculating aswers in java ? and how do java calculate math in run-time memory?
I was trying to execute simple java program to calculate result with expression as: v^2 - u^2 / 2as
that is v*v - u*u / 2*a*s
code is in java 11
int v=16;
int u =5;
int a = 7;
int s = 9;
int res1 = v*...
0
votes
2
answers
947
views
Error when run program in jvm 18: Java.lang.UnsupportedClassVersionError
i'm trying to run a project from Spring Initializr and I am getting the error java.lang.UnsupportedClassVersionError when I try to run the Main. The complete error is java.lang....
3
votes
1
answer
1k
views
Unable to run SQLWorkbenchJ on Mac OS with `temurin-18.jdk` or `sapmachine-jdk-11.0.11.jdk`: Unable to load Java Runtime Environment
Related to this post, but I do not have enough reputation to post a comment there.
The problem: SQL Workbench J fails to use Java on my machine.
Steps I took:
Installed SQLWorkbenchJ with brew ...
0
votes
0
answers
50
views
How do i make a .jar file acessible to anyone?
I've made a game, have already exported it from eclipse to a .jar file, but none of my friends could open the file. "java virtual machine launcher: a java exeption has occured" appeared to ...
1
vote
2
answers
923
views
The method traceMethodCalls(boolean) is undefined for the type Runtime
I get the error:
(Exception in thread "main" java.lang.Error: Unresolved compilation problem:
The method traceMethodCalls(boolean) is undefined for the type Runtime)
when I run the code ...
2
votes
0
answers
1k
views
Run Java single-file-source code with dependency and external library
I would like to know how to use the command line to run the Java single-file-source code.
I know that I cannot refer to outside classes per rules.
But I saw an YouTube video. The author is able to use ...
0
votes
1
answer
442
views
Installing CPLEX causes a problem in MacOS Big Sur
When I try to download CPLEX no-cost academic edition from the IBM website, the download does not automatically start and it states "If Download Director does not start install / re-install ...
0
votes
1
answer
277
views
Automatic and seamless way to install a JVM
i am programming an app for desktop targeting only windows, i would like a way to install the JVM automatically but with an additional option, i want the JVM to be a part of the app which mean you ...