Error using Jaxe on another application

2010-11-23
2013-05-01
  • NS Gopikrishnan

    NS Gopikrishnan - 2010-11-23

    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

     
  • NS Gopikrishnan

    NS Gopikrishnan - 2010-11-23

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

     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks