39 questions
0
votes
1
answer
73
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 ...
-3
votes
1
answer
492
views
How to fix "An unrecoverable stack overflow has occurred... Java returned: -1073741819" error on java?
While working on a Java Swing project I encountered the following runtime error "An unrecoverable stack overflow has occurred... Java returned: -1073741819".
Project environment: Netbeans 12,...
0
votes
0
answers
46
views
Issue executing a java compiled file from java source
I am trying to execute a java compiled file from another java program, and I am having some issues.
When I run from my terminal the command java -cp ".:lib/MyLib.jar" javaFiles/g1/...
0
votes
0
answers
250
views
A JNI error has occured when running exe file
So I just converted a jar file into an exe file.
My Jar file seems to run smoothly and the code is executed as intended
However when I run my .exe file I get an error window saying "A JNI error ...
0
votes
1
answer
270
views
Error caused on runtime of java class file
How do I compile and run java files if you don't know the specific package used by the developer...
I got a folder of java files written by someone else, and I'm trying to compile and run the java ...
0
votes
1
answer
266
views
working 'java -cp' not working all of a sudden in ubuntu [closed]
We have the below java command which was running and stopped working all of a sudden,
java –cp "classes:lib/*" xxx.yyy.ppp
The jar is within lib directory and the jar contains the class.
It ...
0
votes
1
answer
752
views
Compiling Lambda Expression from String in Janino
I am trying to compile a class from a String using Janino. The class contains a lambda expression inside a function but it seems to not recognize the reference operator "->" and "::&...
2
votes
1
answer
386
views
what are the differences between capturingClass and implClass for Java SerializedLambda?
SerializedLambda's signature is as follows:
SerializedLambda(Class capturingClass, String functionalInterfaceClass, String functionalInterfaceMethodName, String functionalInterfaceMethodSignature, ...
3
votes
0
answers
601
views
Is there any safe way to serialize/deserialize Java Lambda for two different JREs?
There is a client that needs to serialize many lambda functions defined in the client side and send them to the server, which has to be able to correctly deserialize them.
The server also have ...
3
votes
2
answers
2k
views
Show output while execute long-time running command Java without waiting RuntimeExec
I have command that takes about 4 minutes to complete execution. While executing the command from windows command prompt, it shows timing information and continuous output.
I want to show that output ...
0
votes
0
answers
103
views
Why cant i run Jar file in Windows?
I am trying to run a javaFx jar in windows cmd with java -jar filename.jar but i get this error:
Error: JavaFX runtime components are missing, and are required to run this application.
In intellij ...
3
votes
4
answers
26k
views
Troubleshooting UnsupportedClassVersionError in IntelliJ IDEA
I'm going through a Java course, using Intellij IDEA. In this "Test" project, I have only two test classes as shown below (they really don't have any code).
Before I get into the problem, I just need ...
6
votes
3
answers
17k
views
Java Error opening registry key 'Software\JavaSoft\Java Runtime Environment'
When running "java -version" on command prompt Windows 7, i get this:
Error: opening registry key 'Software\JavaSoft\Java Runtime Environment'
Error: could not find java.dll
Error: Could not find ...
1
vote
2
answers
3k
views
Do all operating systems already have JRE installed for running java applications?
Let say I am not a java developer and an ordinary person, and installing any application that is written in Java. So, do I need to first install the JRE or no all operating systems already have JRE ...
0
votes
2
answers
1k
views
How to catch a "Could not deserialize object." exception in Java (Android)?
So let's say I'm converting a large collection of data from a server into custom local java objects. The POJO has an int variable, which is what I expect to get from the server. Only, let's say some ...
7
votes
2
answers
21k
views
UnsupportedClassVersionError : Error with Gradle and Java Runtime version
I'm very new to Gradle, and I wanted to give a try to this cool project : Strange, a Quantum Computing API for Java (I'll leave a link to the github project below).
They recommend using Gradle, so I ...
-3
votes
2
answers
667
views
Why does this code throws a RuntimeError?
Given a random integer array and a number x. Find and print the triplets of elements in the array which sum to x.
While printing a triplet, print the smallest element first.
That is, if a valid ...
0
votes
1
answer
97
views
Java Runtime -ERR 'fsctl Command not found
I run a command using java Runtime.That command work fine when i executed normally on terminal/command promp but unable to execute through Java.Runtime :-
Runtime.getRuntime().exec("fs_cli -...
0
votes
1
answer
81
views
Getting the latest Java Runtime Enviroment parent folder
I want to make my job a little easier, I tried creating a batch file to get the JRE path. I'm only getting the javaw.exe path. So for example we are using Team Center 10. It has this tem_init and it ...
1
vote
2
answers
841
views
How to create handler inside thread that has not called Looper.prepare() in xamarin mobile app
I have a mobile application which has Finger Print Authentication and it uses xamarin framework. Until now everything worked well with all devices except Samsung Note 8. While trying to debug this ...
0
votes
0
answers
60
views
How to implement type information for static code analylsis tool for a custom JVM language?
I have to implement a static code analysis tool for a custom JVM language and I would like to have most of the methods that are accessible in the Java Class<?> class like for example: ...
1
vote
1
answer
2k
views
IDE's Java runtime (1.8u66) is outdated - this may cause stability issues. Please update to 1.8.0u112 or newer while opening PyCharm Community Edition
I recently downloaded PyCharm Community Edition for automation development using Python3. When i launch pycharm i am getting following alert in Event Log to upgrade my Java runtime.
I am using Centos ...
5
votes
3
answers
15k
views
IntelliJ: Fatal error compiling: invalid target release: 1.8
I'm running a Java Maven project on IntelliJ, and I make sure that this project will be compiled by Java 1.8.
I set JRE to version 8 in Run/Debug Configuration
and also in Project Structure:
My ...
0
votes
0
answers
155
views
multiple JVM issue in application
We have a desktop application where we are packing Application Jar and JRE as well to avoid Java dependency in customer machine.
But issue is if the customer is having the Java installed already in ...
2
votes
1
answer
289
views
Recompile with new class definition for mutation testing
I am trying to use openHFT/java-runtime-compiler to improve my mutation testing tools, from heavy use of disk-access to only use in-memory-compilation.
In mutation testing, there was a two kind of ...