Shared Resource Folder

smgomes
edited February 11, 2022 in Analytics #1
Hi,

to start platform i have the following code:

EngineConfig engineConfig = new EngineConfig();
engineConfig.setResourcePath("/home/user");

Platform.startup(engineConfig);

//report engine
IReportEngineFactory engineFactory=(IReportEngineFactory) Platform.createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY);
reportEngine=engineFactory.createReportEngine(engineConfig);

but when I open a rptdesing and try to add an image from "Image file in shared resources" the folder doesn't appear :(

Why? I'm using Eclipse Indigo + BIRT 3.7 + Linux

Thanks
Warning No formatter is installed for the format ipb

Comments

  • kclark
    kclark E
    edited December 31, 1969 #2
    smgomes,
    What flavor of Linux are you running? Are you user the path /home/user is correct? What format are the images in?
    Warning No formatter is installed for the format ipb
  • smgomes
    edited December 31, 1969 #3
    Hi,

    I'm using Ubuntu 12.04 and yes the path exists and it's correct. In this folder i had images in this extensions: BMP, JPEG, PNG...

    In Eclipse if I set in Preferences > Report Design > Resource the Resource Folder and open a rptdesign inside Eclipse, the Shared Folder appears correctly .... but in my stand alone aplication doesn't appear... :(
    Warning No formatter is installed for the format ipb
  • kclark
    kclark E
    edited December 31, 1969 #4
    I just tried your steps on Ubuntu 12.04 LTS 32-bit and wasn't able to get the same results. Everything worked fine for me, how did you install Eclipse, was it via apt-get or did you grab it from Eclipse.org or Birt-Exchange? Also how did you install the BIRT software? Could you take a screenshot for me please?
    Warning No formatter is installed for the format ipb
  • smgomes
    edited September 26, 2012 #5
    I grab it form eclipse.org and install BIRT throught Update Manager.<br />
    <br />
    Screenshot#1 - Inside Eclipse<br />
    <br />
    <img src='https://lh6.googleusercontent.com/-dVtIFe-NadM/UGMrAjO09eI/AAAAAAAAB6k/xJAtfSycKUQ/s800/InsideEclipse37.png' alt='Posted Image' class='bbc_img' /><br />
    <br />
    Screenshot#2 - My Aplication<br />
    <br />
    <img src='https://lh4.googleusercontent.com/-1ZQBgVDEM4I/UGMrAcdjZDI/AAAAAAAAB6g/NSoxOT9WLWY/s1152/InsideAplicattion.png' alt='Posted Image' class='bbc_img' />
    Warning No formatter is installed for the format ipb
  • kclark
    kclark E
    edited September 26, 2012 #6
    I followed the same steps as you the only difference is I used<br />
    <br />
    <pre class='_prettyXprint _lang-auto _linenums:0'>
    # apt-get install eclipse
    </pre>
    <br />
    On ubuntu which pulled in Juno then I installed BIRT through Eclipse. Are you running 32-bit or 64-bit?<br />
    <br />
    I also downloaded the tar from Eclipse.org (also Juno) and it worked fine for me too
    Warning No formatter is installed for the format ipb
  • smgomes
    edited December 31, 1969 #7
    32bits.
    I'm using Indigo, my problem isn't at eclipse...is my aplication... when I open a report there the Shared Resource Folder isn't set! :(

    I start the BIRT platform this way :

    engineConfig.setResourcePath("/home/user");
    Platform.startup(engineConfig);

    //report engine
    IReportEngineFactory engineFactory=(IReportEngineFactory) Platform.createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY);
    reportEngine=engineFactory.createReportEngine(engineConfig);
    Warning No formatter is installed for the format ipb
  • mwilliams
    edited December 31, 1969 #8
    Can you try setting the full path to the resource folder, in your engineConfig, to see if that works?
    Warning No formatter is installed for the format ipb
  • smgomes
    edited December 31, 1969 #9
    Don't result, I tried this :

    engineConfig.setResourcePath("/home/user/Images");
    Platform.startup(engineConfig);

    //report engine
    IReportEngineFactory engineFactory=(IReportEngineFactory) Platform.createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY);
    reportEngine=engineFactory.createReportEngine(engineConfig);

    System.out.println("Current Resource Folder : " + engineConfig.getResourcePath());

    At runtime the output is correct but on BIRT (runing inside my aplication) isn't set :S
    Warning No formatter is installed for the format ipb
  • kclark
    kclark E
    edited September 27, 2012 #10
    You could try creating symbolic link from the path you want to use to the default resource path on ubuntu that way you won't need to change the path for the resource path in your code at all.<br />
    <br />
    <pre class='_prettyXprint _lang-auto _linenums:0'>
    ln -s /home/user/Images /default/path/of/resources
    </pre>
    <br />
    You may or may not need to run sudo with that depending on how your Eclipse is installed and where
    Warning No formatter is installed for the format ipb
  • smgomes
    edited December 31, 1969 #11
    It works now!
    Permissions denied my access! Thanks 4 help!
    Warning No formatter is installed for the format ipb
  • kclark
    kclark E
    edited December 31, 1969 #12
    Did you have to chmod the directory or did you make a symlink?
    Warning No formatter is installed for the format ipb
  • smgomes
    edited December 31, 1969 #13
    Hi kclark,

    My first test was change the directory, so I tried another location like /tmp/Images and it works! So I use chmod in /home/user/Imagens and works fine! :)
    Warning No formatter is installed for the format ipb