nativelibs4java / JNAerator

JNAerator: native bindings generator for JNA / BridJ / Node.js
http://jnaerator.googlecode.com
504 stars 108 forks source link

anarres-jnaerator compilation failure #130

Open varunagrawal opened 3 years ago

varunagrawal commented 3 years ago

Hi, thanks for the great work on this project.

I clone the repo and run mvn clean install as specified in the README, but I get the following error:

[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ anarres-jnaerator ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 29 source files to /home/varun/projects/JNAerator/JNAerator/anarres/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] Source option 5 is no longer supported. Use 6 or later.
[ERROR] Target option 1.5 is no longer supported. Use 1.6 or later.
[INFO] 2 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Anarres JCPP (with JNAerator modifications) 1.2.10-SNAPSHOT FAILURE [  0.836 s]
[INFO] JNAerator Parent Project 0.13-SNAPSHOT ............. SKIPPED
[INFO] OChafik's General Utilities 0.13-SNAPSHOT .......... SKIPPED
[INFO] OChafik's Swing Utilities 0.13-SNAPSHOT ............ SKIPPED
[INFO] JNAerator Runtime 0.13-SNAPSHOT .................... SKIPPED
[INFO] JNAerator Rococoa Runtime 0.13-SNAPSHOT ............ SKIPPED
[INFO] JNAerator Parser 0.13-SNAPSHOT ..................... SKIPPED
[INFO] JNAerator CLI and Studio Tools 0.13-SNAPSHOT ....... SKIPPED
[INFO] JNAerator Maven Plugin 0.13-SNAPSHOT ............... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.989 s
[INFO] Finished at: 2021-03-28T16:48:47-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project anarres-jnaerator: Compilation failure: Compilation failure: 
[ERROR] Source option 5 is no longer supported. Use 6 or later.
[ERROR] Target option 1.5 is no longer supported. Use 1.6 or later.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Any help on this?

cmhdave commented 3 years ago

Try setting your java version to Java 8

abacef commented 2 years ago

This stack overflow answer helped me: https://stackoverflow.com/a/59475578