Git Product home page Git Product logo

Comments (3)

aoprea1982 avatar aoprea1982 commented on June 19, 2024

wholeOutput

JNIAnalyzer.java:24: error: cannot access JNIUtils
import me.ayrx.jnianalyzer.JNIUtils;
                          ^
  bad class file: \ghidra_9.1.2_PUBLIC_20200212\ghidra_9.1.2_PUBLIC\Ghidra\Extensions\JNIAnalyzer\lib\JNIAnalyzer.jar(/me/ayrx/jnianalyzer/JNIUtils.class)
    class file has wrong version 58.0, should be 55.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
JNIAnalyzer.java:25: error: cannot access MethodInformation
import me.ayrx.jnianalyzer.MethodInformation;
                          ^
  bad class file: ghidra_9.1.2_PUBLIC_20200212\ghidra_9.1.2_PUBLIC\Ghidra\Extensions\JNIAnalyzer\lib\JNIAnalyzer.jar(/me/ayrx/jnianalyzer/MethodInformation.class)
    class file has wrong version 58.0, should be 55.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
JNIAnalyzer.java:26: error: cannot access ParseJNIMethods
import me.ayrx.jnianalyzer.ParseJNIMethods;
                          ^
  bad class file: \ghidra_9.1.2_PUBLIC_20200212\ghidra_9.1.2_PUBLIC\Ghidra\Extensions\JNIAnalyzer\lib\JNIAnalyzer.jar(/me/ayrx/jnianalyzer/ParseJNIMethods.class)
    class file has wrong version 58.0, should be 55.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
JNIAnalyzer.java:31: error: cannot find symbol
	JNIUtils jniUtils;
	^
  symbol:   class JNIUtils
  location: class JNIAnalyzer
JNIAnalyzer.java:115: error: cannot find symbol
	private void applyFunctionSignature(String methodName, MethodInformation method, Function f)
	                                                       ^
  symbol:   class MethodInformation
  location: class JNIAnalyzer
JNIAnalyzer.java:168: error: cannot find symbol
	private String generateNativeMethodName(MethodInformation methodInfo, boolean isOverloaded) {
	                                        ^
  symbol:   class MethodInformation
  location: class JNIAnalyzer
JNIAnalyzer.java:35: error: cannot find symbol
		this.jniUtils = new JNIUtils(state, this);
		                    ^
  symbol:   class JNIUtils
  location: class JNIAnalyzer
JNIAnalyzer.java:41: error: cannot find symbol
		ArrayList<MethodInformation> methodsList = ParseJNIMethods.parse(apkFile);
		          ^
  symbol:   class MethodInformation
  location: class JNIAnalyzer
JNIAnalyzer.java:41: error: cannot find symbol
		ArrayList<MethodInformation> methodsList = ParseJNIMethods.parse(apkFile);
		                                           ^
  symbol:   variable ParseJNIMethods
  location: class JNIAnalyzer
JNIAnalyzer.java:79: error: cannot find symbol
		HashMap<String, ArrayList<MethodInformation>> methodMap = new HashMap<String, ArrayList<MethodInformation>>();
		                          ^
  symbol:   class MethodInformation
  location: class JNIAnalyzer
JNIAnalyzer.java:79: error: cannot find symbol
		HashMap<String, ArrayList<MethodInformation>> methodMap = new HashMap<String, ArrayList<MethodInformation>>();
		                                                                                        ^
  symbol:   class MethodInformation
  location: class JNIAnalyzer
JNIAnalyzer.java:81: error: cannot find symbol
		for (MethodInformation method : methodsList) {
		     ^
  symbol:   class MethodInformation
  location: class JNIAnalyzer
JNIAnalyzer.java:85: error: cannot find symbol
				ArrayList<MethodInformation> t = new ArrayList<MethodInformation>();
				          ^
  symbol:   class MethodInformation
  location: class JNIAnalyzer
JNIAnalyzer.java:85: error: cannot find symbol
				ArrayList<MethodInformation> t = new ArrayList<MethodInformation>();
				                                               ^
  symbol:   class MethodInformation
  location: class JNIAnalyzer
JNIAnalyzer.java:93: error: cannot find symbol
			ArrayList<MethodInformation> methodList = methodMap.get(m);
			          ^
  symbol:   class MethodInformation
  location: class JNIAnalyzer
JNIAnalyzer.java:96: error: cannot find symbol
				MethodInformation method = methodList.get(0);
				^
  symbol:   class MethodInformation
  location: class JNIAnalyzer
JNIAnalyzer.java:104: error: cannot find symbol
				for (MethodInformation method : methodList) {
				     ^
  symbol:   class MethodInformation
  location: class JNIAnalyzer
JNIAnalyzer.java:123: error: illegal parenthesized expression
		if (method.isStatic) {
		   ^
18 errors
> Unable to locate script class: Unable to compile class: JNIAnalyzer.java

from jnianalyzer.

Ayrx avatar Ayrx commented on June 19, 2024

You might need to compile the extension with the same version of Java that you are using to run Ghidra.

from jnianalyzer.

Ayrx avatar Ayrx commented on June 19, 2024

I don't think this is a problem with the code, will close this issue.

Do let me know in this issue if there are still problems after recompiling the extension with the same version of Java used to run Ghidra.

from jnianalyzer.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.