After the automatic update of jdk 1.8.0_451 all my .jar applications stopped working. I compile again, and it runs in Release mode. but running the .jar file directly does not work.
No error message. It just doesn't run. But running in B4J is fine.Looks to me that some file associations and or path settings may have been deleted, or are you getting some particular error messages that would indicate otherwise?
It can run on B4J is because B4J is using the old jdk8No error message. It just doesn't run. But running in B4J is fine.
The problem is not in the B4J execution time, because after the installation all the .jar files that were running normally stopped.
This weekend I will make a complete backup and rebuild this computer.
PS: The execution in B4J works normally.
yes... I read post #13... but see my confusion,,, I have another machine (Notebook) with Java 1.8.0_451 installed and all .Jar applications work perfectly.I suggest you read post #13 carefully before you rebuild your computer. Good luck.
As aminoacid said at post#12, run java -version to see which java are you using?yes... I read post #13... but see my confusion,,, I have another machine (Notebook) with Java 1.8.0_451 installed and all .Jar applications work perfectly.![]()
Como o aminoácido disse no post # 12, execute java -version para ver qual java você está usando?
View attachment 163524
Microsoft Windows [versão 10.0.19045.5737]
(c) Microsoft Corporation. Todos os direitos reservados.
C:\WINDOWS\system32>java -version
java version "19.0.2" 2023-01-17
Java(TM) SE Runtime Environment (build 19.0.2+7-44)
Java HotSpot(TM) 64-Bit Server VM (build 19.0.2+7-44, mixed mode, sharing)
C:\WINDOWS\system32>
There you go... this is the problem ... B4J is using update 351 which has JavaFX and that's why it works in the B4J IDE.
However, when you run the JAR file outside of B4J it's going to use a different version (19.0.2) that is probably incompatible. Like I said in Post#12, somehow your .jar association is broken. When you run "java -version" from the command line, it should be the same as the version used by B4J - v1.8.0 update 351.
Run this command from the command line:
c:\Java\jdk1.8.0_351\bin\java.exe -jar <complete path to the jar file you want to run>
If it works, you will have to fix the broken association as mentioned in my post above.