The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

RapidMiner5-extension-project build failed with one line more code.

2131012221310122 Member Posts: 40 Maven
edited December 2019 in Help

 I am using RM5 and want to add extension to RM5.

So I download rapidminer5's extension project. 

 

But I met a very strange problem.

This is the beginning of the situation, I added a class and an empty method, the compilation passed.

h2otree.pngh2otree.png

 

But when I add a line of code, the compilation doesn't go through. This line of code is very common, just a code to create an object. I don't know why the compilation failed.

build2.jpgjust add one linenoh2otree.pngthe extension folder is missing

Best Answer

  • 2131012221310122 Member Posts: 40 Maven
    Solution Accepted

    There has nothing to do with RapidMiner5. The reason is the configuration in Ant's Build.xml file. The jdk1.6 is used inside.
    In jdk1.6, the use of generics must be written in such a way that it can be compiled (in practice).

    ok:       List<String> test = new ArrayList<String>();

    not ok: List<String> test = new ArrayList<>();

     

    So I changed the Build.xml to jdk1.8. Then the result is ok.

Sign In or Register to comment.