Skip to content

Commit 161ebae

Browse files
committed
JRE 9 fix attempt
1 parent 4e28a1a commit 161ebae

File tree

5 files changed

+1017
-22
lines changed

5 files changed

+1017
-22
lines changed

src/the/bytecode/club/bootloader/Boot.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,19 @@ public class Boot {
6363
}
6464

6565
public static void boot(String[] args, boolean CLI) throws Exception {
66+
/*if(System.getProperty("java.version").startsWith("9."))
67+
{
68+
BytecodeViewer.showMessage("Java 9.x is not supported yet, please wait till BCV 2.9.11\n\rJava 8 should work <3");
69+
System.exit(0);
70+
return;
71+
}
72+
if(System.getProperty("java.version").startsWith("10."))
73+
{
74+
BytecodeViewer.showMessage("Java 10.x is not supported yet, please wait till BCV 2.9.11\n\rJava 8 should work <3");
75+
System.exit(0);
76+
return;
77+
}*/
78+
6679
bootstrap();
6780
ILoader<?> loader = findLoader();
6881

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

178191
File f = new File(BytecodeViewer.tempDirectory, "temp");
192+
if(!f.exists())
193+
{
194+
f.getParentFile().mkdirs();
195+
}
179196
ZipUtils.zipFile(file, f);
180197
f.delete();
181198

0 commit comments

Comments
 (0)