Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Error using Jaxe on another application

2010-11-23
2013-05-01
  • Hi all,

    My java code is :

    xmlFile = new File (xmlFile_);

    jaxe.Preferences.chargerPref();
    //System.out.println(new File ("config/JaxeConfig.xml").exists());
    jaxeDocument = new JaxeDocument ("config/JaxeConfig.xml");
    jaxeTextPane = new JaxeTextPane (jaxeDocument, this);
    jaxeDocument.setTextPane(jaxeTextPane);
    //jaxeDocument.nouveau();
    jaxeDocument.lire(xmlFile.toURL());
    this.add(jaxeTextPane);

    But I get the error "No config file found for <rootelement> "
    But I am able to create  a new document of this grammar using this config in jaxe editor standalone version !

    May I know what is the problem ?

    Thanks
    NS Gopikrishnan

     
  • Ok :)
    Now the problem is solved !
    I was supposed to have the config file name with a name ending with <_config.xml> :O