-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error on Mac: BCV is awesome, blocking write #361
Comments
same here osx 12.0.1 and bytecode view 2.10.16 I added java to "Full Disk Access" but did not help. |
i got the reason. in the class in my environment, my home folder is located on another drive and is symbolic-linked to bytecode-viewer/src/main/java/the/bytecode/club/bytecodeviewer/util/SecurityMan.java Lines 312 to 339 in e4543ea
one solution is to make diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/util/SecurityMan.java b/src/main/java/the/bytecode/club/bytecodeviewer/util/SecurityMan.java
index 88f0e3d..9d7ddcb 100644
--- a/src/main/java/the/bytecode/club/bytecodeviewer/util/SecurityMan.java
+++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/SecurityMan.java
@@ -319,6 +319,8 @@ public class SecurityMan extends SecurityManager
try
{
+ file = new File(file).getCanonicalPath();
+
//can only export as the following extensions
if(file.endsWith(".zip") || file.endsWith(".jar") || file.endsWith(".apk")
|| file.endsWith(".dex") || file.endsWith(".class") || file.endsWith("js") but i think is this necessary in the first place? at least on Mac, Mac has own quarantine system by OS. |
Similar error here after attempting to decompile class files on OS X 11.6.1:
|
I am trying to use ByteCodeViewer on Mac 11.6, after executing the
java -jar Bytecode-Viewer-2.10.16jar
, the program runs successfully. When I am trying to add a class file and click on theFile -> Add
getting the following exception in the console and unable to add any class file in the viewer.The text was updated successfully, but these errors were encountered: