Hi Rakhitha,
Its a strange problem with the error message you got:
Error: A JNI error has occurred, please check your installation and try
again
Exception in thread "main" java.lang.ClassFormatError: Unknown constant tag
98 in class file Loader
...
To me it seems like a Java problem?!
I have no problem building Robocode on a Windows 10 PC. When using 'mvnassembly', your local 'mvn' version should not matter.
Perhaps something is wrong with your Java installation? JAVA_HOME must be set you point on a Oracle JDK, e.g. JDK 8.
I have also set up MAVEN_HOME to point on my Maven dir (3.3.9)
You might also try to rename your .m2 (Maven) directory temporarily to e.g. .m2_old to see if some downloaded files from Maven have become corrupt?
This is my info:
>java -version
java version "9"
Java(TM) SE Runtime Environment (build 9+181)
Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)
>javac -version
javac 1.8.0_141
>mvn -version (in 'robocode' workspace dir):
Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
Java version: 1.8.0_141
Java home: C:\Program Files\Java\jdk1.8.0_141\jre
Default locale: da_DK, platform encoding: Cp1252
OS name: "windows 10" version: "10.0" arch: "amd64" Family: "dos"
>mvn -version (not inside 'robocode' workspace dir)
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47+01:00)
Maven home: C:\Program Files (x86)\apache-maven-3.3.9\bin\..
Java version: 1.8.0_141, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_141\jre
Default locale: da_DK, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "dos"