home Forums # Technical Support Problems with Ant build on OS X using Java 1.6.0_65

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #939

    Dear Juan,

    Firstly I would like to thank you for developing a beautiful tool and libraries for Java and C. I am currently showing my students how to build Fuzzy Controllers using your environment and my students love it.

    I am having difficulties building the Java Jar files from the build.xml using ANT on my system.

    There seems to be issues with the types for the Java ArrayList you are using. Errors seems to occur on the right side of the equals in most cases where an explicit type is not given in the <> brackets.

    The appropriate type that should appear in the <> is clear in some cases but not in others. Is this a problem with my Java version or am I compiling the source wrong?

    Just using ant -buildfile build.xml form the command line.

    Hope you can help me out as I would love my students to run there Fuzzy controllers in Java.

    Thank you for your work.

    Best regards
    Stephen Sheridan


    Dear Stephen,

    Thank you very much for your kind words and feedback.

    The problem you are having compiling the library is due to the Java version that you are using. The “diamond” operator <> is a feature of Java 1.7, and it only means that the compiler is able to determine its type. I feel I made the wrong decision taking advantage of such a feature due to the lack of backward compatibility. Hence, for jfuzzylite version 2.0, I will make sure it is compatible for older versions of Java. I will aim to release version 2.0 by the end of March.

    In the meantime, if you have access to Java 1.7, you can build a JAR file for previous versions specifying the target in the command line using the option -jo=”-source 1.7 -target 1.6″. I am not sure about the exact details, but a Google search would surely point you in the right direction.


Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.