peter-lawrey/Java-Chronicle

Java chronicle not compiling

Closed this issue · 2 comments

I get the following errors when I try to compile.

[INFO] Compiling 20 source files to C:\git\Java-Chronicle\target\classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.772s
[INFO] Finished at: Thu Apr 19 22:47:37 IST 2012
[INFO] Final Memory: 5M/11M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
0.2:compile (default-compile) on project chronicle: Compilation failure: Compila
tion failure:
[ERROR] C:\git\Java-Chronicle\src\main\java\vanilla\java\chronicle\impl\IndexedC
hronicle.java:[19,17] sun.nio.ch.DirectBuffer is Sun proprietary API and may be
removed in a future release
[ERROR]
[ERROR] C:\git\Java-Chronicle\src\main\java\vanilla\java\chronicle\impl\UnsafeEx
cerpt.java:[19,15] sun.misc.Unsafe is Sun proprietary API and may be removed in
a future release
[ERROR]
[ERROR] C:\git\Java-Chronicle\src\main\java\vanilla\java\chronicle\impl\UnsafeEx
cerpt.java:[20,17] sun.nio.ch.DirectBuffer is Sun proprietary API and may be rem
oved in a future release
[ERROR]
[ERROR] C:\git\Java-Chronicle\src\main\java\vanilla\java\chronicle\impl\UnsafeEx
cerpt.java:[226,25] sun.misc.Unsafe is Sun proprietary API and may be removed in
a future release
[ERROR]
[ERROR] C:\git\Java-Chronicle\src\main\java\vanilla\java\chronicle\impl\IndexedC
hronicle.java:[220,38] sun.nio.ch.DirectBuffer is Sun proprietary API and may be
removed in a future release
[ERROR]
[ERROR] C:\git\Java-Chronicle\src\main\java\vanilla\java\chronicle\impl\IndexedC
hronicle.java:[221,22] sun.nio.ch.DirectBuffer is Sun proprietary API and may be
removed in a future release
[ERROR]
[ERROR] C:\git\Java-Chronicle\src\main\java\vanilla\java\chronicle\impl\UnsafeEx
cerpt.java:[38,25] sun.nio.ch.DirectBuffer is Sun proprietary API and may be rem
oved in a future release
[ERROR]
[ERROR] C:\git\Java-Chronicle\src\main\java\vanilla\java\chronicle\impl\UnsafeEx
cerpt.java:[59,14] copyMemory(long,long,long) in sun.misc.Unsafe cannot be appli
ed to (,long,byte[],int,int)
[ERROR]
[ERROR] C:\git\Java-Chronicle\src\main\java\vanilla\java\chronicle\impl\UnsafeEx
cerpt.java:[147,14] copyMemory(long,long,long) in sun.misc.Unsafe cannot be appl
ied to (byte[],int,,long,int)
[ERROR]
[ERROR] C:\git\Java-Chronicle\src\main\java\vanilla\java\chronicle\impl\UnsafeEx
cerpt.java:[153,14] copyMemory(long,long,long) in sun.misc.Unsafe cannot be appl
ied to (byte[],int,,long,int)
[ERROR]
[ERROR] C:\git\Java-Chronicle\src\main\java\vanilla\java\chronicle\impl\UnsafeEx
cerpt.java:[231,30] sun.misc.Unsafe is Sun proprietary API and may be removed in
a future release
[ERROR]
[ERROR] C:\git\Java-Chronicle\src\main\java\vanilla\java\chronicle\impl\UnsafeEx
cerpt.java:[233,22] sun.misc.Unsafe is Sun proprietary API and may be removed in
a future release
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption
C:\git\Java-Chronicle>java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)

Its possible this method was added in a more recent version of Java 6. Can you try update 31 instead of update 20?

I tried with JDK7 and it works. I guess its time to move on...:)