Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6116875
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:15:24+00:00 2026-05-23T15:15:24+00:00

In Netbeans, I used some scala code (jar) written by someone else and included

  • 0

In Netbeans, I used some scala code (jar) written by someone else and included it into a java project project along with Scala-library.jar. It worked nicely without hiccups.

Now when I try to do the same using eclipse, I get the following build error

Internal compiler error: java.lang.ClassCastException:
org.eclipse.jdt.internal.compiler.lookup.BaseTypeBinding cannot be cast to 
org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding at 
org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.initializeTypeVariable(BinaryTypeBinding.java:944)   DemoApp.java    /demo/  line 0  Java Problem

On Googling, I found that others have had this problem but not seen any fixes.

If any of you have seen this error and figured how to fix it, please share it here.
Let me know if any other information is needed. Unfortunately, I do not have the source of the Scala code that I used, just the jar. If you need the code of DemoApp.java, I can paste it here, but that is not very useful: it just references an object in the Scala code.

Details: scala-2.8.0.r22602-b20100720020114

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T15:15:24+00:00Added an answer on May 23, 2026 at 3:15 pm

    Ok. I finally found the solution!

    Thanks to this SO question

    The problem seems to be Scala 2.8 compiler (apparantly). This issue is not there in 2.9.
    One of the fixes suggested was to use Scala 2.9, but that is not always possible. So here is the right solution.

    The problem lies in the List type of Scala. I found that I was returning (exposing) a List in the Scala code somewhere, which was causing the problem with Java in Eclpise.

    To fix the problem, do not return List. Return Array or some Java type.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have developed Java desktop application using Netbeans. In my application, I used some
I have written a C++ program for a University assignment. I used Netbeans 6.8
I made an application in NetBeans and I used the Apache Commons IO jar
In the Java Desktop Application template used by Netbeans, a menu bar is created
I'm working for a Swing Project and the technologies used are netbeans with Toplink
im using netbeans with svn. i've checked out a project and then i used
I use NetBeans 6.7.1 and I'm more used to C and php than Java.
I am creating a web application using Netbeans and servlets. I have used some
In Netbeans IDE i am writing a java class which has some method. One
I have a Java EE 6 project I'm developing in NetBeans. All of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.