<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>deffbeff &#187; Java</title>
	<atom:link href="http://www.deffbeff.com/blog/category/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.deffbeff.com/blog</link>
	<description>Mostly software</description>
	<lastBuildDate>Thu, 03 Dec 2009 23:00:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Preparing for jEdit plugin development</title>
		<link>http://www.deffbeff.com/blog/2009/02/preparing-for-jedit-plugin-development/</link>
		<comments>http://www.deffbeff.com/blog/2009/02/preparing-for-jedit-plugin-development/#comments</comments>
		<pubDate>Sun, 08 Feb 2009 16:57:49 +0000</pubDate>
		<dc:creator>Matthew Gilbert</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Editor]]></category>
		<category><![CDATA[jEdit]]></category>

		<guid isPermaLink="false">http://www.deffbeff.com/blog/?p=32</guid>
		<description><![CDATA[When I started using jEdit it took me a while to figure out how to begin building and developing jEdit and its plugins. I don&#8217;t know of a well documented tutorial, so I&#8217;m documenting the way I get started here. I typically develop on Windows, but most steps equally apply on Linux. I strongly recommend [...]]]></description>
			<content:encoded><![CDATA[<p>When I started using jEdit it took me a while to figure out how to begin building and developing jEdit and its plugins. I don&#8217;t know of a well documented tutorial, so I&#8217;m documenting the way I get started here. I typically develop on Windows, but most steps equally apply on Linux. I strongly recommend using jEdit trunk, it is very stable and is required for the latest and greatest plugins.</p>
<ol>
<li>Install subversion </li>
<li>Install the Sun Java JDK. Unfortunately, the completely free IcedTea JDK isn&#8217;t up to running jEdit. </li>
<li>Download Apache ant and put the bin directory in your path. </li>
<li>You&#8217;ll need xsltproc and docbook to build the jEdit documentation. Download the docbook xsl scripts from <a href="http://sourceforge.net/project/showfiles.php?group_id=21935&amp;package_id=16608&amp;release_id=603854/">http://sourceforge.net/project/showfiles.php?group_id=21935&amp;package_id=16608&amp;release_id=603854</a> and unpack somewhere (I unpack into c:\workspace\docbook, this path is needed later in step 7). The above links to version 1.74. The most recent version can be found from <a href="http://wiki.docbook.org/topic/DocBookXslStylesheets">http://wiki.docbook.org/topic/DocBookXslStylesheets</a>. </li>
<li>Download xsltproc. I downloaded a binary from <a href="http://xmlsoft.org/XSLT/downloads.html">http://xmlsoft.org/XSLT/downloads.html</a>. On Windows, you&#8217;ll also need iconv.dll, zlib1.dll, libxslt.dll, libxml2.dll, and libexslt.dll to run xsltproc.exe. Put the exe and dll&#8217;s in your path. </li>
<li>Check-out jEdit from svn:
<pre>svn co https://jedit.svn.sourceforge.net/svnroot/jedit/jEdit/trunk jEdit</pre>
</li>
<li>Create jEdit&#8217;s build.properties from the build.properties.sample file:
<pre>cd jEdit
cp build.properties.sample build.properties</pre>
<p>Edit the build.properties file to point to your xslt installation. The following are the lines I add (the path to docbook.xsl should match the directory in step 4):</p>
<pre>xsltproc.executable=C:\\workspace\\bin\\xsltproc.exe
docbook.xsl=C:\\workspace\\docbook\\docbook-xsl-1.74.0
docbook.catalog=C:\\workspace\\docbook\\docbook-xsl-1.74.0\\catalog.xml</pre>
</li>
<li>Now build jEdit, run:
<pre>ant
ant userdocs</pre>
<p>This builds jedit.jar and the userdocs in the build directory (a normal jEdit prints numerous warnings that can be ignored). You can run this jEdit with something like:</p>
<pre>javaw.exe -Xmx1024M -Dswing.aatext=true -Dawt.useSystemAAFontSettings=lcd -Dsun.java2d.d3d=false -jar build\jedit.jar</pre>
</li>
<li>If the above was successful, you should now have a .jedit settings directory in your home directory. We can now setup the necessities for building a plugin. Go to your settings directory and check-out jEdit&#8217;s build-support.
<pre>cd ~/.jedit/jars
svn co <a href="https://jedit.svn.sourceforge.net/svnroot/jedit/build-support/trunk">https://jedit.svn.sourceforge.net/svnroot/jedit/build-support/trunk</a> build-support</pre>
</li>
<li>Now copy the build-support build.properties sample and edit for your installation (should still be in ~/.jedit/jars).
<pre>cp build-support\build.properties.sample build.properties</pre>
<p>Edit build.properties to set the jEdit install directory (I don&#8217;t change anything else). On my system, that line looks like this:</p>
<pre>jedit.install.dir=c:\\workspace\\jedit\\jEdit\\build</pre>
</li>
<li>Finally, check-out a plugin to build and build it.
<pre>svn co https://jedit.svn.sourceforge.net/svnroot/jedit/plugins/VoxSpell/trunk VoxSpell
cd VoxSpell
ant</pre>
<p>This should build VoxSpell and place the jar file in your settings directory plugin-jars directory. The next time you start jEdit it will find the jar file and load the plugin. </p>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.deffbeff.com/blog/2009/02/preparing-for-jedit-plugin-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
