Skip to content
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

Plugin fails to build for Ghidra 9.2 #2

Open
fmagin opened this issue Nov 16, 2020 · 0 comments
Open

Plugin fails to build for Ghidra 9.2 #2

fmagin opened this issue Nov 16, 2020 · 0 comments

Comments

@fmagin
Copy link

fmagin commented Nov 16, 2020

Plugin fails to build with Ghidra 9.2 due to the issues discussed in NationalSecurityAgency/ghidra#2490

> Task :compileJava
/home/fmagin/gits/KotlinScriptProvider/src/main/java/KotlinScriptProvider/KotlinScriptProvider.java:34: error: cannot find symbol
    private JavaScriptClassLoader loader = new JavaScriptClassLoader();
            ^
  symbol:   class JavaScriptClassLoader
  location: class KotlinScriptProvider
/home/fmagin/gits/KotlinScriptProvider/src/main/java/KotlinScriptProvider/KotlinScriptProvider.java:34: error: cannot find symbol
    private JavaScriptClassLoader loader = new JavaScriptClassLoader();
                                               ^
  symbol:   class JavaScriptClassLoader
  location: class KotlinScriptProvider
/home/fmagin/gits/KotlinScriptProvider/src/main/java/KotlinScriptProvider/KotlinScriptProvider.java:97: error: cannot find symbol
        loader = new JavaScriptClassLoader(); // this forces the script class to be reloaded
                     ^
  symbol:   class JavaScriptClassLoader
  location: class KotlinScriptProvider
/home/fmagin/gits/KotlinScriptProvider/src/main/java/KotlinScriptProvider/KotlinScriptProvider.java:111: error: cannot find symbol
                GhidraScriptUtil.getClassFileByResourceFile(sourceFile, className);
                                ^
  symbol:   method getClassFileByResourceFile(ResourceFile,String)
  location: class GhidraScriptUtil
/home/fmagin/gits/KotlinScriptProvider/src/main/java/KotlinScriptProvider/KotlinScriptProvider.java:183: error: cannot find symbol
        ScriptInfo info = GhidraScriptUtil.getScriptInfo(sourceFile);
                                          ^
  symbol:   method getScriptInfo(ResourceFile)
  location: class GhidraScriptUtil
/home/fmagin/gits/KotlinScriptProvider/src/main/java/KotlinScriptProvider/KotlinScriptProvider.java:230: error: cannot find symbol
                GhidraScriptUtil.getScriptCompileOutputDirectory(sourceFile).getAbsolutePath();
                                ^
  symbol:   method getScriptCompileOutputDirectory(ResourceFile)
  location: class GhidraScriptUtil
/home/fmagin/gits/KotlinScriptProvider/src/main/java/KotlinScriptProvider/KotlinScriptProvider.java:321: error: cannot find symbol
            return Class.forName(clazzName, true, new JavaScriptClassLoader());
                                                      ^
  symbol:   class JavaScriptClassLoader
  location: class KotlinScriptProvider
/home/fmagin/gits/KotlinScriptProvider/src/main/java/KotlinScriptProvider/KotlinScriptProvider.java:405: error: cannot find symbol
        List<ResourceFile> dirs = GhidraScriptUtil.getScriptBinDirectories();
                                                  ^
  symbol:   method getScriptBinDirectories()
  location: class GhidraScriptUtil
Note: /home/fmagin/gits/KotlinScriptProvider/src/main/java/KotlinScriptProvider/KotlinScriptProvider.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
8 errors

> Task :compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 5s
1 actionable task: 1 executed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant