Search Mailing List Archives
[protege-discussion] Protege API loadProjectFromFile() question...
tar at ISI.EDU
Wed Jun 4 18:03:49 PDT 2008
On Jun 4, 2008, at 2:55 PM, Roosh wrote:
> 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.
We'll need to see your actual program code.
Apparently something is going wrong between when you get the file
chooser response and when you call the load function. How to you
convert the file choose results into a URL?
> However, when I
> do this the file will not load because it seems that
> concatenates the current build path to the front of the URI
> passed in. This is what the console says after trying to load the
> SEVERE: Unable to load project from:
> -- Project.getProjectInstancesReader()
> Is there any way to fix this?
> Any input would be appreciated.
More information about the protege-discussion