mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-02 16:49:03 +00:00
Added warning for 32-bit and > 1.8 Java versions (#264)
* Added warning for 32-bit and > 1.8 Java versions * Clarify why
This commit is contained in:
@@ -3,11 +3,9 @@
|
||||
* THIS IS TO ALLOW LOCAL PARABOT TO CONTINUE TO WORK
|
||||
*/
|
||||
|
||||
import javax.swing.*;
|
||||
import java.applet.AppletContext;
|
||||
import java.awt.Color;
|
||||
import java.awt.Component;
|
||||
import java.awt.Font;
|
||||
import java.awt.Graphics;
|
||||
import java.awt.*;
|
||||
import java.awt.event.KeyEvent;
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.DataInputStream;
|
||||
@@ -11537,6 +11535,16 @@ 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"))
|
||||
{
|
||||
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)");
|
||||
}
|
||||
if (Double.parseDouble(System.getProperty("java.specification.version")) >= 1.9) {
|
||||
JOptionPane.showMessageDialog(null, "You're not running Java 8. If you're using Parabot, this will cause problems!\nYou can get Java 8 from AdoptOpenJDK.net", "You're not running Java 8!", JOptionPane.INFORMATION_MESSAGE);
|
||||
System.out.println("Please downgrade to Java 8 to avoid problems! (AdoptOpenJDK.net)");
|
||||
}
|
||||
server = ClientSettings.SERVER_IP;
|
||||
anIntArrayArray825 = new int[104][104];
|
||||
friendsNodeIDs = new int[200];
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -1,2 +0,0 @@
|
||||
"C:\Program Files\Java\jdk1.8.0_201\bin\java.exe" -jar 2006rebotted.jar
|
||||
pause
|
||||
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user