Fix 32-bit java (#289)

This commit is contained in:
Daniel Ginovker
2019-12-15 19:33:23 -05:00
committed by GitHub
parent 6bf8d407e0
commit f12181140b
4 changed files with 1 additions and 1 deletions
+1 -1
View File
@@ -11540,7 +11540,7 @@ public class Game extends RSApplet {
public Game() {
//Test if they're on 32-bit, warn them if they are
if (!System.getProperty("os.arch").contains("64"))
if (!System.getProperty("sun.arch.data.model").contains("64"))
{
JOptionPane.showMessageDialog(null, "You're running 32-bit java. This will definitely cause problems.\nYou can get the right Java 8 at AdoptOpenJDK.net", "You're running 32-bit Java!", JOptionPane.INFORMATION_MESSAGE);
System.out.println("Please upgrade to 64-bit java to avoid problems! (AdoptOpenJDK.net)");
Binary file not shown.