Created
April 21, 2018 14:12
-
-
Save nokok/baa15808de19b148335ddeb293fb154a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS D:\local\repos\Karaffe> javap -c -s -v -l Main | |
Classfile /D:/local/repos/Karaffe/Main.class | |
Last modified 2018/04/21; size 177 bytes | |
MD5 checksum af83c7804f18880d54547989c40efe3b | |
public class Main | |
minor version: 0 | |
major version: 52 | |
flags: ACC_PUBLIC, 0x8 | |
Constant pool: | |
#1 = Utf8 Main | |
#2 = Class #1 // Main | |
#3 = Utf8 <init> | |
#4 = Utf8 ()V | |
#5 = Utf8 java/lang/Object | |
#6 = Class #5 // java/lang/Object | |
#7 = NameAndType #3:#4 // "<init>":()V | |
#8 = Methodref #6.#7 // java/lang/Object."<init>":()V | |
#9 = Utf8 main | |
#10 = Utf8 ([Ljava/lang/String;)V | |
#11 = Utf8 Code | |
{ | |
public Main(); | |
descriptor: ()V | |
flags: ACC_PUBLIC | |
Code: | |
stack=0, locals=1, args_size=1 | |
0: invokespecial #8 // Method java/lang/Object."<init>":()V | |
3: return | |
public static void main(java.lang.String[]); | |
descriptor: ([Ljava/lang/String;)V | |
flags: ACC_PUBLIC, ACC_STATIC | |
Code: | |
stack=0, locals=1, args_size=1 | |
0: return | |
} | |
PS D:\local\repos\Karaffe> java -noverify Main | |
PS D:\local\repos\Karaffe> java Main | |
Error: A JNI error has occurred, please check your installation and try again | |
Exception in thread "main" java.lang.ClassFormatError: Invalid superclass index 0 in class file Main | |
at java.lang.ClassLoader.defineClass1(Native Method) | |
at java.lang.ClassLoader.defineClass(ClassLoader.java:763) | |
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) | |
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467) | |
at java.net.URLClassLoader.access$100(URLClassLoader.java:73) | |
at java.net.URLClassLoader$1.run(URLClassLoader.java:368) | |
at java.net.URLClassLoader$1.run(URLClassLoader.java:362) | |
at java.security.AccessController.doPrivileged(Native Method) | |
at java.net.URLClassLoader.findClass(URLClassLoader.java:361) | |
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) | |
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338) | |
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) | |
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment