Skip to content

Commit 6acac78

Browse files
committed
2.7.0
01/11/2015 - Improved the Refresh Class function to be used as the default compile function. 01/11/2015 - Implemented better error handling for decompiling class files. 01/15/2015 - CTRL + O will open the add file interface. 01/15/2015 - CTRL + N will open the net workspace interface. 01/15/2015 - It will now save the last directory you opened. 01/15/2015 - Some how the URL for the auto updater change log got changed, this has been fixed. 01/15/2015 - Slightly updated the change log display, it'll now show all the changes since your version. 01/16/2015 - Made EZ-Injection UI look a bit nicer. 01/27/2015 - Decided to scrap the JVM Sandbox POC and use the Security Manager. 01/27/2015 - BCV now blocks exec and won't allow any ports to be bound.
1 parent d9f35b8 commit 6acac78

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

BytecodeViewer 2.7.0.jar

7 Bytes
Binary file not shown.

src/the/bytecode/club/bytecodeviewer/BytecodeViewer.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -396,14 +396,14 @@ public void run() {
396396
} catch(Exception e) {
397397
new the.bytecode.club.bytecodeviewer.api.ExceptionUI(e);
398398
}
399-
fc.setFileFilter(viewer.new JarFileFilter());
399+
fc.setFileFilter(viewer.new ZipFileFilter());
400400
fc.setFileHidingEnabled(false);
401401
fc.setAcceptAllFileFilterUsed(false);
402402
int returnVal = fc.showSaveDialog(viewer);
403403
if (returnVal == JFileChooser.APPROVE_OPTION) {
404404
File file = fc.getSelectedFile();
405-
if(!file.getAbsolutePath().endsWith(".jar"))
406-
file = new File(file.getAbsolutePath()+".jar");
405+
if(!file.getAbsolutePath().endsWith(".zip"))
406+
file = new File(file.getAbsolutePath()+".zip");
407407

408408
if(file.exists()) {
409409
pane = new JOptionPane("The file " + file + " exists, would you like to overwrite it?");
@@ -429,10 +429,10 @@ public void run() {
429429
@Override
430430
public void run() {
431431
try {
432-
InputStream is = new URL("https://github.com/Konloch/bytecode-viewer/releases/download/v"+version+"/BytecodeViewer."+version+".jar").openConnection().getInputStream();
432+
InputStream is = new URL("https://github.com/Konloch/bytecode-viewer/releases/download/v"+version+"/BytecodeViewer."+version+".zip").openConnection().getInputStream();
433433
FileOutputStream fos = new FileOutputStream(finalFile);
434434
try {
435-
System.out.println("Downloading from https://github.com/Konloch/bytecode-viewer/releases/download/v"+version+"/BytecodeViewer."+version+".jar");
435+
System.out.println("Downloading from https://github.com/Konloch/bytecode-viewer/releases/download/v"+version+"/BytecodeViewer."+version+".zip");
436436
byte[] buffer = new byte[8192];
437437
int len;
438438
int downloaded = 0;
@@ -463,9 +463,9 @@ public void run() {
463463
}
464464
}
465465
System.out.println("Download finished!");
466-
showMessage("Download successful! You can find the updated jar at " + finalFile.getAbsolutePath());
466+
showMessage("Download successful! You can find the updated program at " + finalFile.getAbsolutePath());
467467
} catch(FileNotFoundException e) {
468-
showMessage("Unable to download, the jar file has not been uploaded yet, please try again later in an hour.");
468+
showMessage("Unable to download, the zip file has not been uploaded yet, please try again later in an hour.");
469469
} catch(Exception e) {
470470
new the.bytecode.club.bytecodeviewer.api.ExceptionUI(e);
471471
}

0 commit comments

Comments
 (0)