Search Mailing List Archives

Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-discussion] Protege API loadProjectFromFile() question...

Roosh clroush at
Wed Jun 4 14:55:09 PDT 2008

Hi everyone!

I am working on a Java program and I need to open a protege project.

For example, my code is like this:

String uri =
ArrayList errors = new ArrayList();
Project prj = Project.loadProjectFromFile(uri, errors);

PROBLEM: This is only an example, my actual program uses a file chooser to
select the file
and the URI is passed to the loadProjectFromFile() function. However, when I
do this the file will not load because it seems that loadProjectFromFile()
concatenates the current build path to the front of the URI
passed in. This is what the console says after trying to load the file:

SEVERE: Unable to load project from:
-- Project.getProjectInstancesReader()

Is there any way to fix this?

Any input would be appreciated.


Chris Roush
View this message in context:
Sent from the Protege - General mailing list archive at

More information about the protege-discussion mailing list