Skip to content

Commit

Permalink
Added warning for 32-bit and > 1.8 Java versions (#264)
Browse files Browse the repository at this point in the history
* Added warning for 32-bit and > 1.8 Java versions

* Clarify why
  • Loading branch information
dginovker authored Dec 11, 2019
1 parent dc4694c commit f3b47bb
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 6 deletions.
16 changes: 12 additions & 4 deletions 2006Redone Client/src/Game.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -11537,6 +11535,16 @@ public void closeOpenInterfaces() {
}

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];
Expand Down
Binary file modified CompiledServer/artifacts/2006rebotted_jar/2006rebotted.jar
Binary file not shown.
Binary file not shown.
2 changes: 0 additions & 2 deletions CompiledServer/artifacts/local_client_jar/run.bat

This file was deleted.

Binary file not shown.
Binary file modified CompiledServer/production/2006rebotted/Game.class
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit f3b47bb

Please sign in to comment.