Incompatible magic value 1768713317 in class file

I have a class file, and when I am on the website, the following message appears:

Incompatible magic value 1768713317 as a "spectrum" class file.

What does this magical meaning mean? Please, help:)

+5
source share
2 answers

The first four bytes of the file .class(compiled Java binaries) should be 0xCAFEBABE- the so-called magic value.

1768713317 0x696C6C65 "ille" (ille... gal?) ASCII. , JVM , , -, . , , ?

+10

- 4 Java-. Java-:

ClassFile {
    u4             magic;
    u2             minor_version;
    u2             major_version;
    u2             constant_pool_count;
    cp_info        constant_pool[constant_pool_count-1];
    u2             access_flags;
    u2             this_class;
    u2             super_class;
    u2             interfaces_count;
    u2             interfaces[interfaces_count];
    u2             fields_count;
    field_info     fields[fields_count];
    u2             methods_count;
    method_info    methods[methods_count];
    u2             attributes_count;
    attribute_info attributes[attributes_count];
}

'magic' : 0xCAFEBABE. JVM: ", ! - Java, !". JVM , , .

+5

All Articles