<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://protegewiki.stanford.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Juk</id>
		<title>Protege Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://protegewiki.stanford.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Juk"/>
		<link rel="alternate" type="text/html" href="https://protegewiki.stanford.edu/wiki/Special:Contributions/Juk"/>
		<updated>2026-04-18T11:42:03Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.27.7</generator>

	<entry>
		<id>https://protegewiki.stanford.edu/index.php?title=CompileProtege4InEclipse&amp;diff=6378</id>
		<title>CompileProtege4InEclipse</title>
		<link rel="alternate" type="text/html" href="https://protegewiki.stanford.edu/index.php?title=CompileProtege4InEclipse&amp;diff=6378"/>
				<updated>2009-08-13T11:53:51Z</updated>
		
		<summary type="html">&lt;p&gt;Juk: /* Creating a Runnable for Windows or Linux */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;span style=&amp;quot;font-size:22px; font-weight:bold; color:#DC7317;&amp;quot;&amp;gt;Setup and run the Protege 4 OWL editor from Eclipse&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This document is in progress.  While it is not fully documented yet it&lt;br /&gt;
does represent the recommended way to set up a protege 4 environment&lt;br /&gt;
in eclipse.  If this documentation is insufficient the fall back is to&lt;br /&gt;
go to the &lt;br /&gt;
[[Protege4DevDocs#Protege-OWL_editor_in_a_Generic_IDE|generic ide instructions]].&lt;br /&gt;
&lt;br /&gt;
# Download the protege plug-ins with linked source. Currently these can be found [http://www.tigraworld.com/p4plugins/Protege4SourcePlugins.zip here] (version information is [http://www.tigraworld.com/p4plugins/version.txt here]).  Soon there will be a standard download page connected to each of our releases.  It is also possible to follow all of these steps by using the plugins from any installation of Protege 4 but these plugins-ins will not include the source.  The minimal set of plugins needed is&lt;br /&gt;
## org.protege.common.jar&lt;br /&gt;
## org.protege.editor.core.application.jar&lt;br /&gt;
## org.protege.editor.owl.jar&lt;br /&gt;
## org.semanticweb.owl.owlapi.jar&lt;br /&gt;
# Create a new eclipse workspace&lt;br /&gt;
# Click &amp;quot;File -&amp;gt; Import...&amp;quot;  This will bring up a dialog box.&lt;br /&gt;
# Choose &amp;quot;Plug-in Development -&amp;gt; Plug-ins and Fragments&amp;quot; and click &amp;quot;Next&amp;quot;.  This will bring up a dialog box.&lt;br /&gt;
# Unselect &amp;quot;The target platform (as specified in the Preferences)&amp;quot;&lt;br /&gt;
# Click the browse button and browse to the directory where you downloaded the protege plug-ins with linked source&lt;br /&gt;
# Don't worry about the warning at the top of the dialog box.  The &amp;quot;Plug-ins and Fragments to Import&amp;quot; box should say &amp;quot;Select from all plug-ins...&amp;quot; and the &amp;quot;Import As&amp;quot; box should say &amp;quot;Binary projects&amp;quot;.&lt;br /&gt;
# Click next bringing up a new dialog box.&lt;br /&gt;
# Click &amp;quot;Add All&amp;quot;. &lt;br /&gt;
# Click &amp;quot;Finish&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This is a milestone.  You should now see the Protege bundles as&lt;br /&gt;
imported Plug-in projects.&lt;br /&gt;
&lt;br /&gt;
== Creating a Runnable for Windows or Linux ==&lt;br /&gt;
&lt;br /&gt;
We now need to create a runnable.  As far&lt;br /&gt;
as I can tell Mac users cannot get the following steps to work.  It is possible&lt;br /&gt;
that this does work on intel macs but I have not been able to test this.&lt;br /&gt;
There are claims made on the [http://www.eclipse.org/swt/faq.php#swtawtosx web] saying that this issue is solved.&lt;br /&gt;
[[SwingSwtProblems]] describes the results of my current experiments on this issue.  Mac users need to&lt;br /&gt;
use an [[#Creating_a_Runnable_for_OS_X| alternative method]].&lt;br /&gt;
&lt;br /&gt;
User Remark: The following with Eclipse-3.5-cocoa for MacOSX10.5.8 works fine for me, &lt;br /&gt;
just 1 problem: The placement of views always crashes protege.&lt;br /&gt;
&lt;br /&gt;
Windows and Linux users now do the following to make a runnable.&lt;br /&gt;
# Click &amp;quot;Run -&amp;gt; Debug Configurations&amp;quot;.  This will bring up a dialog box.&lt;br /&gt;
# Select &amp;quot;OSGi Framework&amp;quot; and click the &amp;quot;New&amp;quot; Icon at the top.&lt;br /&gt;
# Name the &amp;quot;New_Configuration&amp;quot; something useful like &amp;quot;Protege&amp;quot;.&lt;br /&gt;
# In the Bundles box, scroll down to where it says &amp;quot;Target Platform&amp;quot;.  Unselect all the bundles from the target platform (one click to the left of &amp;quot;Target Platform&amp;quot;)&lt;br /&gt;
# Click on &amp;quot;Add Required Bundles&amp;quot;.&lt;br /&gt;
# Click &amp;quot;Apply&amp;quot; to save your changes.&lt;br /&gt;
# Click &amp;quot;Debug&amp;quot; and Protege should come up. &lt;br /&gt;
&lt;br /&gt;
Windows and Linux users should now be able to easily use eclipse to develop their plug-ins.  To start a new bundle just create a new Eclipse Plug-in project.  These projects will automatically get attached to the Protege runnable.&lt;br /&gt;
&lt;br /&gt;
== Creating a Runnable for OS X ==&lt;br /&gt;
&lt;br /&gt;
Mac users who are willing to go to the bleeding edge should look at the [http://www.eclipse.org/swt/cocoaport.php SWT Cocoa Port].  This is probably the way to go because then the Mac will work just like the other operating systems.  This version will allow you to run protege  4 as an OSGi runable.  When creating the runnable, remove all the program arguments except for &amp;quot;-console&amp;quot;.  Many thanks to Tania for finding this.&lt;br /&gt;
&lt;br /&gt;
Otherwise, OS X users have to work a bit harder to get a working runnable.  I have figured out the following workaround but am looking for a better way.&lt;br /&gt;
First, checkout the ide project as a general project from svn at http://smi-protege.stanford.edu/repos/protege/protege4/small-projects/ide/trunk. In the following instructions I assume that it is checked out as the project &amp;quot;ide&amp;quot;.  Now the runnable can be created with the following steps:&lt;br /&gt;
# Click &amp;quot;Run -&amp;gt; Debug Configurations&amp;quot;.  A dialog box will come up.&lt;br /&gt;
# Select &amp;quot;Java Application&amp;quot; and click the &amp;quot;New&amp;quot; button at the top.&lt;br /&gt;
# Change the name of the &amp;quot;New_Configuration&amp;quot; to something more meaningful.&lt;br /&gt;
# Select the &amp;quot;Main&amp;quot; tab and&lt;br /&gt;
## Change the &amp;quot;Main Class&amp;quot; to be org.eclipse.core.runtime.adaptor.EclipseStarter.&lt;br /&gt;
#Select the &amp;quot;Arguments&amp;quot; tab and&lt;br /&gt;
## Set the working directory to ${workspace_loc:ide}.&lt;br /&gt;
##Add the following -D options to the &amp;quot;VM arguments&amp;quot; box:&lt;br /&gt;
### -Dosgi.clean=true&lt;br /&gt;
### -Dorg.protege.plugin.extra.0=${workspace_loc:com.owldl.pellet}&lt;br /&gt;
### -Dorg.protege.plugin.extra.1=${workspace_loc:org.coode.dlquery}&lt;br /&gt;
### -Dorg.protege.plugin.extra.2=${workspace_loc:org.coode.owlviz}&lt;br /&gt;
### -Dorg.protege.plugin.extra.3=${workspace_loc:org.protege.editor.owl}&lt;br /&gt;
### -Dorg.protege.plugin.extra.4=${workspace_loc:org.semanticweb.owl.owlapi}&lt;br /&gt;
# Select the &amp;quot;Classpath&amp;quot; tab and &lt;br /&gt;
## Add ide/org.eclipse.osgi.jar as a jar to the class path.&lt;br /&gt;
# Click &amp;quot;Apply&amp;quot; to save your changes&lt;br /&gt;
# Click &amp;quot;Debug&amp;quot; to run the runnable.&lt;br /&gt;
&lt;br /&gt;
At this point, mac users can create Eclipse Plug-in projects to create&lt;br /&gt;
their own plug-ins. In order to run these plugins the develoeper can add a new org.protege.plugin.extra line and create a staged location for the plugin as described in [[CompileProtege4PluginInEclipseOneProject#Running_the_Plugin]].&lt;/div&gt;</summary>
		<author><name>Juk</name></author>	</entry>

	<entry>
		<id>https://protegewiki.stanford.edu/index.php?title=CompileProtege4InEclipse&amp;diff=6377</id>
		<title>CompileProtege4InEclipse</title>
		<link rel="alternate" type="text/html" href="https://protegewiki.stanford.edu/index.php?title=CompileProtege4InEclipse&amp;diff=6377"/>
				<updated>2009-08-13T11:51:52Z</updated>
		
		<summary type="html">&lt;p&gt;Juk: /* Creating a Runnable for Windows or Linux */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;span style=&amp;quot;font-size:22px; font-weight:bold; color:#DC7317;&amp;quot;&amp;gt;Setup and run the Protege 4 OWL editor from Eclipse&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This document is in progress.  While it is not fully documented yet it&lt;br /&gt;
does represent the recommended way to set up a protege 4 environment&lt;br /&gt;
in eclipse.  If this documentation is insufficient the fall back is to&lt;br /&gt;
go to the &lt;br /&gt;
[[Protege4DevDocs#Protege-OWL_editor_in_a_Generic_IDE|generic ide instructions]].&lt;br /&gt;
&lt;br /&gt;
# Download the protege plug-ins with linked source. Currently these can be found [http://www.tigraworld.com/p4plugins/Protege4SourcePlugins.zip here] (version information is [http://www.tigraworld.com/p4plugins/version.txt here]).  Soon there will be a standard download page connected to each of our releases.  It is also possible to follow all of these steps by using the plugins from any installation of Protege 4 but these plugins-ins will not include the source.  The minimal set of plugins needed is&lt;br /&gt;
## org.protege.common.jar&lt;br /&gt;
## org.protege.editor.core.application.jar&lt;br /&gt;
## org.protege.editor.owl.jar&lt;br /&gt;
## org.semanticweb.owl.owlapi.jar&lt;br /&gt;
# Create a new eclipse workspace&lt;br /&gt;
# Click &amp;quot;File -&amp;gt; Import...&amp;quot;  This will bring up a dialog box.&lt;br /&gt;
# Choose &amp;quot;Plug-in Development -&amp;gt; Plug-ins and Fragments&amp;quot; and click &amp;quot;Next&amp;quot;.  This will bring up a dialog box.&lt;br /&gt;
# Unselect &amp;quot;The target platform (as specified in the Preferences)&amp;quot;&lt;br /&gt;
# Click the browse button and browse to the directory where you downloaded the protege plug-ins with linked source&lt;br /&gt;
# Don't worry about the warning at the top of the dialog box.  The &amp;quot;Plug-ins and Fragments to Import&amp;quot; box should say &amp;quot;Select from all plug-ins...&amp;quot; and the &amp;quot;Import As&amp;quot; box should say &amp;quot;Binary projects&amp;quot;.&lt;br /&gt;
# Click next bringing up a new dialog box.&lt;br /&gt;
# Click &amp;quot;Add All&amp;quot;. &lt;br /&gt;
# Click &amp;quot;Finish&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This is a milestone.  You should now see the Protege bundles as&lt;br /&gt;
imported Plug-in projects.&lt;br /&gt;
&lt;br /&gt;
== Creating a Runnable for Windows or Linux ==&lt;br /&gt;
&lt;br /&gt;
We now need to create a runnable.  As far&lt;br /&gt;
as I can tell Mac users cannot get the following steps to work.  It is possible&lt;br /&gt;
that this does work on intel macs but I have not been able to test this.&lt;br /&gt;
There are claims made on the [http://www.eclipse.org/swt/faq.php#swtawtosx web] saying that this issue is solved.&lt;br /&gt;
[[SwingSwtProblems]] describes the results of my current experiments on this issue.  Mac users need to&lt;br /&gt;
use an [[#Creating_a_Runnable_for_OS_X| alternative method]].&lt;br /&gt;
&lt;br /&gt;
User Remark: The following with Eclipse-3.5-cocoa for MacOSX10.5.8 works fine for, &lt;br /&gt;
just 1 problem: The placement of views always crashes protege&lt;br /&gt;
&lt;br /&gt;
Windows and Linux users now do the following to make a runnable.&lt;br /&gt;
# Click &amp;quot;Run -&amp;gt; Debug Configurations&amp;quot;.  This will bring up a dialog box.&lt;br /&gt;
# Select &amp;quot;OSGi Framework&amp;quot; and click the &amp;quot;New&amp;quot; Icon at the top.&lt;br /&gt;
# Name the &amp;quot;New_Configuration&amp;quot; something useful like &amp;quot;Protege&amp;quot;.&lt;br /&gt;
# In the Bundles box, scroll down to where it says &amp;quot;Target Platform&amp;quot;.  Unselect all the bundles from the target platform (one click to the left of &amp;quot;Target Platform&amp;quot;)&lt;br /&gt;
# Click on &amp;quot;Add Required Bundles&amp;quot;.&lt;br /&gt;
# Click &amp;quot;Apply&amp;quot; to save your changes.&lt;br /&gt;
# Click &amp;quot;Debug&amp;quot; and Protege should come up. &lt;br /&gt;
&lt;br /&gt;
Windows and Linux users should now be able to easily use eclipse to develop their plug-ins.  To start a new bundle just create a new Eclipse Plug-in project.  These projects will automatically get attached to the Protege runnable.&lt;br /&gt;
&lt;br /&gt;
== Creating a Runnable for OS X ==&lt;br /&gt;
&lt;br /&gt;
Mac users who are willing to go to the bleeding edge should look at the [http://www.eclipse.org/swt/cocoaport.php SWT Cocoa Port].  This is probably the way to go because then the Mac will work just like the other operating systems.  This version will allow you to run protege  4 as an OSGi runable.  When creating the runnable, remove all the program arguments except for &amp;quot;-console&amp;quot;.  Many thanks to Tania for finding this.&lt;br /&gt;
&lt;br /&gt;
Otherwise, OS X users have to work a bit harder to get a working runnable.  I have figured out the following workaround but am looking for a better way.&lt;br /&gt;
First, checkout the ide project as a general project from svn at http://smi-protege.stanford.edu/repos/protege/protege4/small-projects/ide/trunk. In the following instructions I assume that it is checked out as the project &amp;quot;ide&amp;quot;.  Now the runnable can be created with the following steps:&lt;br /&gt;
# Click &amp;quot;Run -&amp;gt; Debug Configurations&amp;quot;.  A dialog box will come up.&lt;br /&gt;
# Select &amp;quot;Java Application&amp;quot; and click the &amp;quot;New&amp;quot; button at the top.&lt;br /&gt;
# Change the name of the &amp;quot;New_Configuration&amp;quot; to something more meaningful.&lt;br /&gt;
# Select the &amp;quot;Main&amp;quot; tab and&lt;br /&gt;
## Change the &amp;quot;Main Class&amp;quot; to be org.eclipse.core.runtime.adaptor.EclipseStarter.&lt;br /&gt;
#Select the &amp;quot;Arguments&amp;quot; tab and&lt;br /&gt;
## Set the working directory to ${workspace_loc:ide}.&lt;br /&gt;
##Add the following -D options to the &amp;quot;VM arguments&amp;quot; box:&lt;br /&gt;
### -Dosgi.clean=true&lt;br /&gt;
### -Dorg.protege.plugin.extra.0=${workspace_loc:com.owldl.pellet}&lt;br /&gt;
### -Dorg.protege.plugin.extra.1=${workspace_loc:org.coode.dlquery}&lt;br /&gt;
### -Dorg.protege.plugin.extra.2=${workspace_loc:org.coode.owlviz}&lt;br /&gt;
### -Dorg.protege.plugin.extra.3=${workspace_loc:org.protege.editor.owl}&lt;br /&gt;
### -Dorg.protege.plugin.extra.4=${workspace_loc:org.semanticweb.owl.owlapi}&lt;br /&gt;
# Select the &amp;quot;Classpath&amp;quot; tab and &lt;br /&gt;
## Add ide/org.eclipse.osgi.jar as a jar to the class path.&lt;br /&gt;
# Click &amp;quot;Apply&amp;quot; to save your changes&lt;br /&gt;
# Click &amp;quot;Debug&amp;quot; to run the runnable.&lt;br /&gt;
&lt;br /&gt;
At this point, mac users can create Eclipse Plug-in projects to create&lt;br /&gt;
their own plug-ins. In order to run these plugins the develoeper can add a new org.protege.plugin.extra line and create a staged location for the plugin as described in [[CompileProtege4PluginInEclipseOneProject#Running_the_Plugin]].&lt;/div&gt;</summary>
		<author><name>Juk</name></author>	</entry>

	</feed>