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] add a new library

Yongchun Xu Yongchun.Xu at fzi.de
Thu Jan 29 02:59:15 PST 2009


Hello everyone,

 

Now I am developing a Demo program by using protégé 4. I have changed some
codes in bundle org.protege.editor.owl and add a new library. But there is a
problem when I compile the jar file.

I have changed the following command in the  manifest.bnd:

 

Bundle-ClassPath:  .    è   Bundle-ClassPath: .,lib/owldb.jar

 

While compiling I get the following error information:

BUILD FAILED

C:\Working_Data\OWL_Workspace\protege\build.xml:244: The following error
occurred while executing this line:

C:\Working_Data\OWL_Workspace\protege\build.xml:146: The following error
occurred while executing this line:

C:\Working_Data\OWL_Workspace\protege\plugins\org.protege.editor.owl\build.x
ml:58: java.lang.StackOverflowError

 

 

Then I try to build the jar file by using manifest.mf instead of
manifest.bnd(bnd tools). This time there is no error information while
compiling, but the protégé cannot install the plug-ins.

The eclipse outputs the informations:

     [java] Could not start bundle com.owldl.pellet

     [java] org.osgi.framework.BundleException: The bundle could not be
resolved. Reason: Missing Constraint: Require-Bundle:
org.protege.editor.owl; bundle-version="0.0.0"

     [java]       at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.j
ava:305)

     [java]       at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle
.java:260)

     [java]       at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle
.java:252)

     [java]       at
org.protege.editor.core.ProtegeApplication.loadPlugins(ProtegeApplication.ja
va:358)

     [java]       at
org.protege.editor.core.ProtegeApplication.initApplication(ProtegeApplicatio
n.java:162)

     [java]       at
org.protege.editor.core.ProtegeApplication.start(ProtegeApplication.java:110
)

     [java]       at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleConte
xtImpl.java:999)

     [java]       at java.security.AccessController.doPrivileged(Native
Method)

     [java]       at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(Bu
ndleContextImpl.java:993)

     [java]       at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleConte
xtImpl.java:974)

     [java]       at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.j
ava:346)

     [java]       at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundl
e.java:350)

     [java]       at
org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.ja
va:1118)

     [java]       at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(Sta
rtLevelManager.java:634)

     [java]       at
org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLeve
lManager.java:508)

     [java]       at
org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(S
tartLevelManager.java:282)

     [java]       at
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(Sta
rtLevelManager.java:468)

     [java]       at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.
java:195)

     [java]       at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManage
r.java:297)

 

Who can tell me how to add a new library in the org.protege.editor.owl
bundle?

 

 

Sincerely,

 

Yongchun

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-discussion/attachments/20090129/9a3cb30a/attachment.html>


More information about the protege-discussion mailing list