schierlm/JavaPayload

Compile Error

Closed this issue · 1 comments

I execute the command "ant compile"
and I get the Error

BUILD FAILED
/home/kali/Desktop/temp/build.xml:20: Compile failed; see the compiler error output for details.
[javac] error: Source option 1.3 is no longer supported. Use 6 or later.
[javac] error: Target option 1.5 is no longer supported. Use 1.6 or later
or something along the lines of that

would appreciate the help, thanks

Easiest way is using the compiler from Java 8 for building. Later versions have reduced the backwards compatibility of the code generator and cannot generate .class files for older VMs than 6.

If you don't have Java 8 available, you will have to search for source="1. and target="1. in the build.xml files and increase each of them to at least 1.6. Be aware that you won't be able to exploit any Java versions older than 6 if you do this.