JavaFX jar runs on my machine but doesn't run on others - java

I have built a JavaFX application in IntelliJ with SDK corretto 15 and openjfx-17.0.0.1 and when I run it on my machine it works fine, however when it runs on other machines I get the error
"Error: A JNI error has occurred, please check your installation and try again"
Please let me know if there's any more information you need. Thanks!

Related

JAR will not run without Java SE DK

Im trying to make my first real java project,and it seemed to be going fine. I build a JAR and it works fine on my main PC. However, when i move it to my laptop it did not work. I got an a JNI error. I managed to make the program work by installing the DK on my laptop as well, but i thought you only needed a runtime environment.
Im using SE DK 14, and intellliJ IDEA. I tried updating my java version, checking the path variables, but only installing the Developer kit seems to work. Both machines were 64-bit Windows 10 machines
I really want to make it only need the java RE, any ideas?
edit: The exact error is
"A JNI error has occurred, please check your installation and try again",
followed by
"A java exception has occurred."
Im using Java 8 update 251 on both devices and Java SE DK 14.0.1 on the device where i made it on. I tried reinstalling , rebuilding and looking into settings of my build, but im not very familiar with Java, maybe i missed something. I just followed this tutorial to make the Jar

Eclipse is unable to find adb even when specified in Run Configurations

I'm trying to run Appium tests with Java through Eclipse, but it can't find ANDROID_HOME. I've set the Run Configurations to use the ANDROID_HOME path and I've tried running Eclipse through terminal with open /Applications/Eclipse.app, but I'm still getting the error.
Worst part is this was all running fine yesterday, suddenly today Eclipse can't find the SDK. Running ADB in the terminal works fine as well. I changed nothing in the code
EDIT: I tried running a python test of Appium through terminal and got the same error. Restarted my machine and everything's working fine now lol. Not sure what the root cause is. This question can be closed
EDIT 2: It happened again, after around 30 minutes, started getting the error that it can't find adb. Is there a way to fix this? Right now it seems all I can do is restart my machine everytime it happens
Received the same error when running a pyhton script through terminal, which means the error is not constrained to Eclipse. Restarted machine and everything's working fine now.

Eclipse IDE error,cmd shows "“Java.lang.classnotfoundexception:version”"

Does anyone know what should I do after I delete all java program( java SE and eclipse IDE for Java Developer ) and then reinstall them over and over again almost the whole day? But it still can't work when i tried to write Java.
It did successfully install jave when I typed javec at cmd, but then I found cmd show that
Java.lang.classnotfoundexception:version after I typed java version.
And then I open eclipse IDE for Java Developer, the error occurred as below:
An error has occurred. See the log file C:\eclipse\configuration\1528876404969.log
And it did change the number when I reopen it, such as 1528881289007.log
Already installed: jdk-10.0.1 and jre-10.0.1, and add the path at environment variables under window 10 64bits.
It would be appreciate for taking your time for answering my question.

RWeka wont install (mac)

I seem to be having issues installing RWeka in R, on my mac.
I've read through a number of websites but nothing seems to work. I have Java 8 installed on my mac (I'm running OS X Sierra and I'm running R version 3.3.2).
When I attempt to install the R package I get the error:
Warning message:
In install.packages("RWeka") :
installation of package ‘RWeka’ had non-zero exit status
In grey letters, several lines up it also says:
Need at least Java version 1.7/7.0.
I'm running the latest version of Java (1.8) but it doesn't seem to sync up with RWeka for some reason. I've tried shutting down R and re-starting it, but that doesn't seem to help either.
R also throws up a pop up informing me:
To use the "java" command-line tool you need to install a JDK.
Click "More Info..." to visit the Java Developer Kit download website.
If I click "Ok" it simply opens a mac website but there is nothing on there regarding a Java Developer Kit. I've used the search function on the website with no success. I've googled Java Developer Kit but can't seem to figure out what it is or how it is supposed to even work.
Any ideas on how to remedy this?
The problem was rJava and RWeka wont install in RStudio (Version 1.0.136). The following worked for me (macOS Sierra version 10.12.6) (found here):
Step-1: Download and install javaforosx.dmg from here
Step-2: Next, run the command from inside RStudio:
install.packages("rJava", type = 'source')
install.packages("RWeka")

Android Eclipse Exit Code=15

I accidentally closed eclipse when I was sending my application to run on my phone, and when I went to open it I got the following error:
Java was started but returned exit code= 15
C:\windows\system32\javaw.exe
Dogsi.requiredJavaVersion=1.6
I have tried restarting my computer but it didn't change this message. I have been using eclipse for a while, and have never seen this error before.
How can I resolve this error?
EDIT:
I ended up just reinstalling eclipse.
It sounds like eclipse didn't get a chance to save its configuration properly while quitting, and now the configuration is invalid when attempting to open.
Please see https://stackoverflow.com/questions/18059686/jdk-error-while-running-eclipse-on-windows-7 and Running Eclipse on Windows 7 JRE and JDK not found . Alternatively, just reinstall the jre and ecipse, but if you don't want to do that, then you're going to have to fiddle with eclipse configuration.

Categories