So I'm having a bit of a dilemma with running Eclipse in JDK 19 & OSbot in JRE 8.
If I run eclipse with only JDK 19 installed on PC, Eclipse loads fine but when I install JRE 8 to run OSBot I cannot run Eclipse. I have been trying to use the .bat script method to load OSBot and now OSBot will load up but there is still conflict with JDK 19 on eclipse.
The script I used for my .bat file;
cd C:\program files\Java\jre1.8.0_202\bin
java -jar C:\Users\user\OneDrive\Desktop\OSBot.jar
I keep getting an error message on eclipse "version 1.8.0_202 of the JVM is not suitable for this product. Version: 11 or greater is required."
I have added a JAVA_HOME environment variable with the file location path of JDK 19 but still get the same error when trying to boot Eclipse, I have searched the web for information on this but nothing seems to help now, the only solution I have been able to find is uninstalling JRE 8 and then I can boot into eclipse again which doesn't really help as I currently have to choose between one and the other.
Please can someone assist me with this TIA!!