public final class JavaCompatibility
extends java.lang.Object
implements java.lang.Runnable, javax.swing.event.HyperlinkListener, java.awt.event.ActionListener
Utility class for outdated Java installations.
| Constructor and Description |
|---|
JavaCompatibility() |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
static void |
checkVersion()
Display a warning to the user if the game is not running on Java 8.
|
void |
hyperlinkUpdate(javax.swing.event.HyperlinkEvent e) |
void |
run() |
public void run()
run in interface java.lang.Runnablepublic void hyperlinkUpdate(javax.swing.event.HyperlinkEvent e)
hyperlinkUpdate in interface javax.swing.event.HyperlinkListenerpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic static void checkVersion()
Display a warning to the user if the game is not running on Java 8.
If your coremod (not regular mod!) requires Java 8, compile your IFMLLoadingPlugin for Java 6 and call this method from
IFMLLoadingPlugin.getASMTransformerClass(). This will display a warning to the user if Java 8 is not installed.
This class will always be compiled for Java 6.
For regular mods Java 8 can be used always, since SevenCommons will require it before any regular mods load.
exit - true to exit the game if Java 8 was not found, you almost always want this