a Bug in eclipse?

Help
Mehdi
2013-08-17
2013-11-27
  • Mehdi

    Mehdi - 2013-08-17

    Hi,

    I have written a small project in eclipse similar to the example i FAQ but I don't get results

    import net.sourceforge.jFuzzyLogic.FIS;

    public class Class1 {
    public static void main(String[] args)
    {
    FIS fis = FIS.load("s2.fcl", true); // Load from 'FCL' file
    fis.setVariable("service", 3); // Set inputs
    fis.setVariable("food", 7);
    fis.evaluate(); // Evaluate
    System.out.println("Output value:" + fis.getVariable("tip").getValue()); // Show output variable

    }
    }
    It give me so many numbers in the output

    [2.0799999999999996 -2.426910407578718 0.013025307906006672 -0.8942831427324969 7.124038763791094]
    [2.0899999999999994 -2.434492098545398 0.08172378844181044 -0.5080491562559004 6.389577186863854]
    [2.099999999999999 -2.43760552513466 0.14181535862773825 -0.01330143905635861 5.42985055806576]
    [2.109999999999999 -2.4356061154606814 0.19197198500198204 0.49690438608599263 4.439532634292179]
    [2.1199999999999988......

    and warns

    <terrminated> ArmDynamics[Java Application]D:/programfiles/../javaw.exe

    I am using Jfuzzy logic version 3 and im using the exact FCL file in the samples.

    Thanks if anyone help me!

     
  • abanoub

    abanoub - 2013-11-27

    this error appear with me in eclipse
    [2013-11-27 11:07:13 - Dex Loader] Unable to execute dex: Multiple dex files define Lantlr/ANTLRError;
    [2013-11-27 11:07:13 - useFuzzy] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lantlr/ANTLRError;

     
  • abanoub

    abanoub - 2013-11-27

    this happen when i try to use jfuzzyLogic.jar with android

     
  • abanoub

    abanoub - 2013-11-27

    and some times throw the following when i add the jar file (fuzzylogic.jar and fuzzylogic-core.jar) to android project and write a code to load FCL file using the FIS class and each time i run i got the following exception :
    java.lang.NoClassDefFoundError: net.sourceforge.jFuzzyLogic.FIS

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks