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

  • SEARCH
  • Home
  • 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 7724835
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T04:47:18+00:00 2026-06-01T04:47:18+00:00

I am using an open source java library called Weka in an Eclipse Indigo

  • 0

I am using an open source java library called Weka in an Eclipse Indigo project. The library seems a bit outdated so Eclipse is showing me thousands of warnings in regards to its code. A typical example is:

ArrayList is a raw type. References to generic type ArrayList<E>
should be parameterized

In reference to a line like this:

ArrayList t = new ArrayList();

Eclipse’s quick fix indicates that I can either convert the above code to use generics or that I can add a @SuppressWarnings ‘rawtypes’ annotation as a fix.

But both of these fixes involve making changes to the code of the open source project and I’d have to do these changes several (hundreds of?) times over.

Instead, might there be some global setting for Eclipse (or the Java compiler?) where I can indicate that I do not want to be warned for a specific project?

  • 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-06-01T04:47:20+00:00Added an answer on June 1, 2026 at 4:47 am

    It has been suggested that you just turn off the “offending” warnings via Window > Preferences, but that turns them off for all projects in your workspace, including the project(s) containing your own Java 1.5 + code. That’s a bad idea, ‘cos you should be paying attention to the warnings if they occur in your code. (If you ignore them you are liable to get unexpected runtime exceptions.)

    Another possibility would be change the project settings to set the Java compiler’s source level to Java 1.4 or earlier. You should only do this on the Weka project. The project containing your code needs to use a source level of at least Java 1.5 … given that you are using generics.


    Thanks. Might this not cause problems later on when I deploy the project to a production server running JRE 1.6? Won’t I have to have JRE 1.4 present there as well?

    No … for a couple of reasons:

    • Unless you are modifying Weka, you can use the original JARs and ignore any build artifacts created by Eclipse.

    • The source level and the target level are different. The source level says what version of the Java language the source code must conform to. The target level says what version of the classfile format should be used. You can get the Java compiler to generate Java 1.6 bytecode format for Java 1.4 source code. (But not vice versa).

    • A Java 1.6 JRE will happily run a Java 1.4 JAR.

    Also, where do I do this? Do you mean Project > Properties > Java Compiler > Compiler compliance level?

    Yes. Note that it allows you to specify the source and target levels independently … modulo the constraint that the Java compilers only allow certain combinations.

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

Sidebar

Related Questions

I am considering using Maven for a Java open source project I manage. In
I'm using a open-source Python library in my project. This library logs a lot
We provide a popular open source Java FTP library called edtFTPj . We would
I'd like to release an open source java library. I thought of using my
I am using an open source .Net library which uses MSMQ underneath. After about
Basically I am using some open source code called OrderedDictionary that is derived from
Is there an open source telnet API/library out there for Java (something like Python
I am looking for an open-source project, written in C#/Java, that does vectorial graphical
I had recently stabilised developments of a major open source library written in Java.
i have asked to do a web application using java (using open source frameworks)

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.