Skip to content

Commit

Permalink
JRE 9 fix attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
Konloch committed Mar 24, 2018
1 parent 4e28a1a commit 161ebae
Show file tree
Hide file tree
Showing 5 changed files with 1,017 additions and 22 deletions.
17 changes: 17 additions & 0 deletions src/the/bytecode/club/bootloader/Boot.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,19 @@ public class Boot {
}

public static void boot(String[] args, boolean CLI) throws Exception {
/*if(System.getProperty("java.version").startsWith("9."))
{
BytecodeViewer.showMessage("Java 9.x is not supported yet, please wait till BCV 2.9.11\n\rJava 8 should work <3");
System.exit(0);
return;
}
if(System.getProperty("java.version").startsWith("10."))
{
BytecodeViewer.showMessage("Java 10.x is not supported yet, please wait till BCV 2.9.11\n\rJava 8 should work <3");
System.exit(0);
return;
}*/

bootstrap();
ILoader<?> loader = findLoader();

Expand Down Expand Up @@ -176,6 +189,10 @@ private static void create(ILoader<?> loader, boolean clean) throws Exception {
System.out.println("Verifying " + fileName + "...");

File f = new File(BytecodeViewer.tempDirectory, "temp");
if(!f.exists())
{
f.getParentFile().mkdirs();
}
ZipUtils.zipFile(file, f);
f.delete();

Expand Down

0 comments on commit 161ebae

Please sign in to comment.