JDK 11 windows installation Error: opening registry key ‘Software\JavaSoft\Java Runtime Environment’

After installation of JDK 11 and setting of the path in environment variable In a command prompt > java -version returns: Error: opening registry key ‘Software\JavaSoft\Java Runtime Environment’ Error: could not find java.dll Error: Could not find Java SE Runtime Environment. Answer After a long day, I have found a solution. it may work for … Read more

Could not start the game server

I tried to run the game as explained here… https://www.minecraft.net/en-us/download/server But got this error: # java -Xmx1024M -Xms1024M -jar server.jar nogui Error: LinkageError occurred while loading main class net.minecraft.server.Main java.lang.UnsupportedClassVersionError: net/minecraft/server/Main has been compiled by a more recent version of the Java Runtime (class file version 60.0), this version of the Java Runtime only recognizes … Read more

Java 16 install on mac went fine, but can’t invoke java

I downloaded the installer, clicked through on .dmg and .pkg files and installer completed. I tried to invoke java at a terminal and it didn’t work. After googling a bit, I try /usr/libexec/java_home -V and it lists 2 installs: one at /Library/Java/JavaVirtualMachines/jdk-16.0.2.jdk/Contents/Home (my install) another at /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home So I open my .zshrc and set my … Read more

How to overcome “jni error has occurred” after Minecraft and Java update in Windows 10?

I updated from Minecraft 1.16.2 to the latest version of Minecraft at this time which is 1.18.1, opened the Minecraft Launcher client, selected “Latest release 1.18.1” from the drop down, hit the “PLAY” button, and received an error message “jni error has occurred” (and also a generic java error and a crash following that). Running … Read more

How to overcome “jni error has occurred” after Minecraft and Java update in Windows 10?

I updated from Minecraft 1.16.2 to the latest version of Minecraft at this time which is 1.18.1, opened the Minecraft Launcher client, selected “Latest release 1.18.1” from the drop down, hit the “PLAY” button, and received an error message “jni error has occurred” (and also a generic java error and a crash following that). Running … Read more

How to overcome “jni error has occurred” after Minecraft and Java update in Windows 10?

I updated from Minecraft 1.16.2 to the latest version of Minecraft at this time which is 1.18.1, opened the Minecraft Launcher client, selected “Latest release 1.18.1” from the drop down, hit the “PLAY” button, and received an error message “jni error has occurred” (and also a generic java error and a crash following that). Running … Read more

Ubuntu 10.10 -bash: java: command not found

I just bought fresh VPS with Ubuntu 10.10. I following this guide http://l2jserver.com/wiki/Setup_Server_-_Ubuntu for creating Lineage2 server, but this doesn’t matter. I try to use command java -version and I got error: -bash: java: command not found If I skip this step and use this command (for install Java): sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk … Read more

why update-alternatives –config java shows nothing?

I install oracle java JDK.rmp.bin on fedora. And installing by “. /jdk.rmp.bin”, JDK is installed under /usr/java/jdk folder. I could compile java files using command “javac” and “java”. I could also check the version by “java -version”. But when I type “update-alternatives –config java” nothing appears. Why no java version shows in the terminal? Answer … Read more