Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatibility with Oracle Java 8 #4

Closed
afshinrahimi opened this issue Mar 4, 2015 · 4 comments
Closed

Incompatibility with Oracle Java 8 #4

afshinrahimi opened this issue Mar 4, 2015 · 4 comments

Comments

@afshinrahimi
Copy link

Hello,

Thank you for the amazing work!
I was just compiling Junto with Java Oracle 8. It seems that there are some incompatibilities.
JAVA VERSION:
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

ERROR:
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0
[info] Loading project definition from /home/af/Documents/junto-master/project
[info] Set current project to junto (in build file:/home/af/Documents/junto-master/)
[info] Updating {file:/home/af/Documents/junto-master/}default-752ee9...
[info] Resolving org.scala-lang#scala-library;2.10.0 ...
[info] Resolving com.typesafe.akka#akka-actor_2.10;2.1.0 ...
[info] Resolving com.typesafe#config;1.0.0 ...
[info] Resolving org.clapper#argot_2.10;1.0.0 ...
[info] Resolving org.clapper#grizzled-scala_2.10;1.1.2 ...
[info] Resolving jline#jline;2.6 ...
[info] Resolving net.sf.trove4j#trove4j;3.0.3 ...
[info] Resolving com.typesafe#scalalogging-log4j_2.10;1.0.1 ...
[info] Resolving org.scala-lang#scala-reflect;2.10.0 ...
[info] Resolving org.apache.logging.log4j#log4j-api;2.0-beta3 ...
[info] Done updating.
[success] Total time: 1 s, completed 04/03/2015 4:36:49 PM
[info] Compiling 11 Scala sources and 28 Java sources to /home/af/Documents/junto-master/target/classes...
[info] 'compiler-interface' not yet compiled for Scala 2.10.0. Compiling...
error: error while loading CharSequence, class file '/usr/lib/jvm/java-8-oracle/jre/lib/rt.jar(java/lang/CharSequence.class)' is broken
(class java.lang.RuntimeException/bad constant pool tag 18 at byte 10)
error: error while loading Comparator, class file '/usr/lib/jvm/java-8-oracle/jre/lib/rt.jar(java/util/Comparator.class)' is broken
(class java.lang.RuntimeException/bad constant pool tag 18 at byte 20)
error: error while loading AnnotatedElement, class file '/usr/lib/jvm/java-8-oracle/jre/lib/rt.jar(java/lang/reflect/AnnotatedElement.class)' is broken
(class java.lang.RuntimeException/bad constant pool tag 18 at byte 76)
error: error while loading Arrays, class file '/usr/lib/jvm/java-8-oracle/jre/lib/rt.jar(java/util/Arrays.class)' is broken
(class java.lang.RuntimeException/bad constant pool tag 18 at byte 765)
/tmp/sbt_713306da/API.scala:384: error: java.util.Comparator does not take type parameters
private[this] val sortClasses = new Comparator[Symbol] {
^
5 errors found
error Error compiling sbt component 'compiler-interface'
[error] Total time: 4 s, completed 04/03/2015 4:36:54 PM

It beautifully compiles and runs on OpenJDK-7 though.

Cheers.

@parthatalukdar
Copy link
Owner

Is this still an issue?

Partha

On Wed, Mar 4, 2015 at 11:17 AM, afshinrahimi notifications@github.com
wrote:

Hello,

Thank you for the amazing work!
I was just compiling Junto with Java Oracle 8. It seems that there are
some incompatibilities.
JAVA VERSION:
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

ERROR:
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
MaxPermSize=256M; support was removed in 8.0
[info] Loading project definition from
/home/af/Documents/junto-master/project
[info] Set current project to junto (in build
file:/home/af/Documents/junto-master/)
[info] Updating {file:/home/af/Documents/junto-master/}default-752ee9...
[info] Resolving org.scala-lang#scala-library;2.10.0 ...
[info] Resolving com.typesafe.akka#akka-actor_2.10;2.1.0 ...
[info] Resolving com.typesafe#config;1.0.0 ...
[info] Resolving org.clapper#argot_2.10;1.0.0 ...
[info] Resolving org.clapper#grizzled-scala_2.10;1.1.2 ...
[info] Resolving jline#jline;2.6 ...
[info] Resolving net.sf.trove4j#trove4j;3.0.3 ...
[info] Resolving com.typesafe#scalalogging-log4j_2.10;1.0.1 ...
[info] Resolving org.scala-lang#scala-reflect;2.10.0 ...
[info] Resolving org.apache.logging.log4j#log4j-api;2.0-beta3 ...
[info] Done updating.
[success] Total time: 1 s, completed 04/03/2015 4:36:49 PM
[info] Compiling 11 Scala sources and 28 Java sources to
/home/af/Documents/junto-master/target/classes...
[info] 'compiler-interface' not yet compiled for Scala 2.10.0. Compiling...
error: error while loading CharSequence, class file
'/usr/lib/jvm/java-8-oracle/jre/lib/rt.jar(java/lang/CharSequence.class)'
is broken
(class java.lang.RuntimeException/bad constant pool tag 18 at byte 10)
error: error while loading Comparator, class file
'/usr/lib/jvm/java-8-oracle/jre/lib/rt.jar(java/util/Comparator.class)' is
broken
(class java.lang.RuntimeException/bad constant pool tag 18 at byte 20)
error: error while loading AnnotatedElement, class file
'/usr/lib/jvm/java-8-oracle/jre/lib/rt.jar(java/lang/reflect/AnnotatedElement.class)'
is broken
(class java.lang.RuntimeException/bad constant pool tag 18 at byte 76)
error: error while loading Arrays, class file
'/usr/lib/jvm/java-8-oracle/jre/lib/rt.jar(java/util/Arrays.class)' is
broken
(class java.lang.RuntimeException/bad constant pool tag 18 at byte 765)
/tmp/sbt_713306da/API.scala:384: error: java.util.Comparator does not take
type parameters
private[this] val sortClasses = new Comparator[Symbol] {
^
5 errors found
error Error compiling sbt component 'compiler-interface'
[error] Total time: 4 s, completed 04/03/2015 4:36:54 PM

It beautifully compiles and runs on OpenJDK-7 though.

Cheers.


Reply to this email directly or view it on GitHub
#4.

@jose1003
Copy link

Change to scala 2.10.4

eponvert added a commit to eponvert/junto that referenced this issue Mar 16, 2016
Update some dependencies to support Scala 2.10.6 and Java 8

Fixes parthatalukdar#4

Changes:
- Updated Scala version to 2.10.6
- Using [sbt-extras](https://github.com/paulp/sbt-extras) for sbt
- Updating sbt-assembly plugin
@eponvert
Copy link
Contributor

I noticed @jose1003's suggestion and submitted #5 to fix

@hmontenegro
Copy link

Could you please tag a release version with the fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants