JPEXS Free Flash Decompiler Issue Tracker

INFO: Problems with AV false positives are fixed in 25.0.0, now we sign our code and also use MSI installer type.

If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler

NEW : We have got a new blog where we post some interesting SWF internals info.

List of issuesList of issues

#2505 Unable to build from source
Author:
Date created:
Type: bug
Visibility: Everybody
Assigned to:
Labels: FFDec source
State: upgraded Help

> What steps will reproduce the problem? Clone the project from GitHub. Open the project in NetBeans. Attempt to build the project with NetBeans. > What is the expected output? What do you see instead? The project is supposed to build. Instead, I get the following error: C:\Users\PC\Desktop\Projects\jpexs-decompiler\src\com\jpexs\decompiler\flash\gui\abc\ABCPa nel.java:619: error: cannot find symbol if ((flags & VariableFlags.DONT_DELETE) > 0) { symbol: variable DONT_DELETE location: interface VariableFlags C:\Users\PC\Desktop\Projects\jpexs-decompiler\src\com\jpexs\decompiler\flash\gui\abc\ABCPa nel.java:623: error: cannot find symbol if ((flags & VariableFlags.ONLY_SWF6_UP) > 0) { symbol: variable ONLY_SWF6_UP location: interface VariableFlags C:\Users\PC\Desktop\Projects\jpexs-decompiler\src\com\jpexs\decompiler\flash\gui\abc\ABCPa nel.java:627: error: cannot find symbol if ((flags & VariableFlags.IGNORE_SWF6) > 0) { symbol: variable IGNORE_SWF6 location: interface VariableFlags C:\Users\PC\Desktop\Projects\jpexs-decompiler\src\com\jpexs\decompiler\flash\gui\abc\ABCPa nel.java:631: error: cannot find symbol if ((flags & VariableFlags.ONLY_SWF7_UP) > 0) { symbol: variable ONLY_SWF7_UP location: interface VariableFlags C:\Users\PC\Desktop\Projects\jpexs-decompiler\src\com\jpexs\decompiler\flash\gui\abc\ABCPa nel.java:635: error: cannot find symbol if ((flags & VariableFlags.ONLY_SWF8_UP) > 0) { symbol: variable ONLY_SWF8_UP location: interface VariableFlags C:\Users\PC\Desktop\Projects\jpexs-decompiler\src\com\jpexs\decompiler\flash\gui\abc\ABCPa nel.java:639: error: cannot find symbol if ((flags & VariableFlags.ONLY_SWF9_UP) > 0) { symbol: variable ONLY_SWF9_UP location: interface VariableFlags C:\Users\PC\Desktop\Projects\jpexs-decompiler\src\com\jpexs\decompiler\flash\gui\abc\ABCPa nel.java:643: error: cannot find symbol if ((flags & VariableFlags.ONLY_SWF10_UP) > 0) { symbol: variable ONLY_SWF10_UP location: interface VariableFlags 7 errors 4 warnings C:\Users\PC\Desktop\Projects\jpexs-decompiler\build.xml:96: Compile failed; see the compiler error output for details. BUILD FAILED (total time: 8 seconds) > What version of the product are you using? Is it "nightly build"? Which operating system do you have? I am attempting to build the latest master branch on Windows. > Please provide any additional information below. If the problem is related to a SWF file, attach it here, otherwise we can't help you. Some of the .java files seem to depend on com.jpexs.debugger. I do not see this package in the repository.
com.jpexs.debugger package is part of JPEXS Flash debugger library. In the decompiler repository, it is placed in the directory lib. It's lib/flashdebugger.jar, it should be loaded properly. Check if it's not missing. It can be also compiled separately from sources at https://github.com/jindrapetrik/flashdebugger
State: new→opened
Thank you for your response. I have checked the lib/ directory and flashdebugger.jar does appear. For some reason, it seems as though Ant/NetBeans can't resolve references to data in flashdebugger.jar during the build process. I was able to fix the issue by manually copying and pasting the source files from https://github.com/jindrapetrik/flashdebugger into the ffdec src/ folder.
What version of Netbeans and Java do you use?
You can also try using Clean&Build button in Netbeans. I don't recommend mixing the debugger code and JPEXS GUI code in one src folder since they have different licenses - LGPL vs GPL.
I am using a fresh Hyper-V VM, with Windows 11, OpenJDK 21.0.8, NetBeans 26, and Apache Ant 1.10.15 installed. The JDK was installed from the latest release of the Adoptium JDK 21 Temurin JDK.
just do "revert local changes" in git and it works, idk why
Thanks shacha, this worked! To be precise, following these steps fixed the issue: 1.) Clone the repository with git clone and cd into the directory. 2.) Run "ant build" and wait until the error occurs. 3.) Run "git restore ." 4.) Run "ant build" again. This time there are no build errors.
After some additional investigation, it appears as though the problem is due to an incorrect version of flashdebugger.jar being present in libsrc/ffdec_lib/lib. When "ant build" is run the first time, lib/flashdebugger.jar gets replaced by libsrc/ffdec_lib/lib/flashdebugger.jar, because Ant believes the JAR file is outdated. You can check this by looking at a hash of lib/flashdebugger.jar before and after running "ant build" and comparing it with a hash of libsrc/ffdec_lib/lib/flashdebugger.jar. Running "git restore ." restores the original version of lib/flashdebugger.jar. Running "ant build" a second time does not result in lib/flashdebugger.jar getting replaced by libsrc/ffdec_lib/lib/flashdebugger.jar, probably because Ant has cached the fact that the JAR file was already updated during the first build attempt. As an additional note, when comparing hashes of all the JAR files present in both libsrc/ffdec_lib/lib and lib/, the only difference occurs between libsrc/ffdec_lib/lib/flashdebugger.jar and lib/flashdebugger.jar.
Thank you for the investigation. In nightly 3314 (dev branch), the flashdebugger.jar is the same in both locations and should compile without problems.
State: opened→upgraded