Skip to main content

All Questions

Tagged with
0 votes
2 answers
72 views

Is there a way within a bash script to determine the minimum java version required by a jar file containing class files and jar files?

For a single class - we can work out the version of Java used to compile it: javap -verbose className I have a scenario where I need to scale this up to a jar file containing many classes and jar ...
hawkeye's user avatar
  • 35.3k
0 votes
0 answers
422 views

javap command not working with %JAVA_HOME% being set

Im deep diving into the JVM architecture and I wanted to inspect the constant pool for one of my java classes which belongs to a Spring Boot project. I have my compiled java class and I am trying to ...
rwd762's user avatar
  • 31
0 votes
1 answer
46 views

Why does an anonymous inner class have such type when I disassemble the class file using javac?

When I disassembled the code given below, I noticed that the TestClass's anonymous inner class in constant pool is displayed as 'AnonymousTestApp$1', but shouldn't it be 'TestClass$1'? The code: ...
ChpokHead's user avatar
1 vote
0 answers
2k views

Downgrading java version in project (IntelliJ)

I am trying to downgrade the target build version of java, but somehow I can´t change it within IntelliJ, don´t understeand why. Under File -> Project Structure -> Projects I changed the ...
WinterMute's user avatar
0 votes
2 answers
108 views

Can java disassembled code run without OS?

I disassembled a java class file to Assembly using javap. Then Can I run the assembly code generated by the javap command without Os? Or is there something like il2cpu.net for java?
scardon's user avatar
  • 714
1 vote
2 answers
294 views

java internal method signature doesn't match constructor parameters (javap)

I have the following class containing local inner class: class Outer { private boolean beep; private int foo; public Outer(boolean beep) { this.beep = beep; } public void ...
joker's user avatar
  • 3,614
0 votes
0 answers
762 views

Javap Command Error in Java On Command Prompt

Why javap command is not running in command prompt and its showing javap is not recognised as internal or external command except javap all other command is running well.
sakshi mishra's user avatar
0 votes
0 answers
55 views

How to write scala jar executable by Java to fetch hostname of the machine?

I want to perform this activity in Scala and execute it with Java: hostname -i The scala code for this is: import java.net._ object HostName { def main(args: Array[String]){ val ...
Aviral Srivastava's user avatar
2 votes
1 answer
129 views

Why, after compiling an interface, "default" method modifier is gone from "javap -v"?

I have observed, that after compiling an interface containing default method definition, like: interface Delta { default void someMethod() { System.out.println("Hi."); } } ...
Giorgi Tsiklauri's user avatar
4 votes
1 answer
214 views

Problem marking the lines in the java compiler

I am a master's student and I am researching static analysis. In one of my tests I came across a problem in marking lines in the java compiler. I have the following java code: 226: String json = &...
Matheus Barbosa's user avatar
1 vote
1 answer
855 views

How to load a class from module(.jmod) file at runtime?

I want to load classes from a module (.jmod) file at runtime into the application memory. I know that we can easily load classes from a (.jar) file using :-) ClassLoader loader = URLClassLoader....
Omega UI's user avatar
0 votes
1 answer
107 views

grep method appears in class file but not in its human dump

I'm grepping for a method getNumBytes in some class file A.class: $ grep -rn "getNumBytes" Binary file A.class matches When I dump its content with javap I can't see my method: $ javap -c -...
OrenIshShalom's user avatar
0 votes
1 answer
326 views

How can I disassemble all code with javap? [duplicate]

I want to look at the bytecode of a Class file with javap -c, but it doesn't seem to disassassmble all my code. Here is FooBar.java: class FooBar { public static void main(String[] args) { ...
Juicy's user avatar
  • 12.3k
0 votes
0 answers
203 views

javap -c does not give me bytecode of methods

I have a java file looking like this: package answers; class finalRed{ private long l; public synchronized void increment(){ l++; } public void decrement(){ ...
n00bster's user avatar
  • 429
0 votes
0 answers
496 views

java.lang.verify error : Inconsistent stack height 1 != 2

I have a custom application in which we have generated the Java Instruction code.We are generating the code using javacc. In one of the Scenarios, we are getting java.lang.verify error : Inconsistent ...
Ashu's user avatar
  • 173

15 30 50 per page
1
2 3 4 5
8