<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Using Java2Python to port a JavaCairo tutorial</title>
	<atom:link href="http://www.stuartaxon.com/2009/08/21/using-java2python-to-port-a-javacairo-tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stuartaxon.com/2009/08/21/using-java2python-to-port-a-javacairo-tutorial/</link>
	<description>Adding LOC to the web.</description>
	<lastBuildDate>Thu, 03 Mar 2011 19:52:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: stu</title>
		<link>http://www.stuartaxon.com/2009/08/21/using-java2python-to-port-a-javacairo-tutorial/comment-page-1/#comment-5179</link>
		<dc:creator>stu</dc:creator>
		<pubDate>Mon, 30 Nov 2009 05:12:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuartaxon.com/?p=158#comment-5179</guid>
		<description>I had a bit of a go at this on the weekend.
The current version of the java-gnome bindings is 4.x, for a while ubuntu had the old bindings installed (my test vm seems to).

To check which version you have look in
/usr/share/java
gtk-4.0.jar  Is the correct version
gtk2.10      Is the old version


I managed dist-upgrade my ubuntu to karmic koala, but

$ sudo apt-get upgrade libjava-gnome-java

Was still not enough... however:

$ sudo apt-get remove libjava-gnome-java
$ sudo apt-get install libjava-gnome-java

DID install gtk-4.0.jar.


You may need to manually set the classpath:

$ export CLASSPATH=/usr/share/java/gtk-4.0.jar


Unfortunately I don&#039;t have the vm I used to write this tutorial with at the moment, so it&#039;s a little tricky to test stuff - if I get time I&#039;ll try and get everything working again and fix any gaps in the tutorial.</description>
		<content:encoded><![CDATA[<p>I had a bit of a go at this on the weekend.<br />
The current version of the java-gnome bindings is 4.x, for a while ubuntu had the old bindings installed (my test vm seems to).</p>
<p>To check which version you have look in<br />
/usr/share/java<br />
gtk-4.0.jar  Is the correct version<br />
gtk2.10      Is the old version</p>
<p>I managed dist-upgrade my ubuntu to karmic koala, but</p>
<p>$ sudo apt-get upgrade libjava-gnome-java</p>
<p>Was still not enough&#8230; however:</p>
<p>$ sudo apt-get remove libjava-gnome-java<br />
$ sudo apt-get install libjava-gnome-java</p>
<p>DID install gtk-4.0.jar.</p>
<p>You may need to manually set the classpath:</p>
<p>$ export CLASSPATH=/usr/share/java/gtk-4.0.jar</p>
<p>Unfortunately I don&#8217;t have the vm I used to write this tutorial with at the moment, so it&#8217;s a little tricky to test stuff &#8211; if I get time I&#8217;ll try and get everything working again and fix any gaps in the tutorial.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stu</title>
		<link>http://www.stuartaxon.com/2009/08/21/using-java2python-to-port-a-javacairo-tutorial/comment-page-1/#comment-5144</link>
		<dc:creator>stu</dc:creator>
		<pubDate>Thu, 26 Nov 2009 20:52:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuartaxon.com/?p=158#comment-5144</guid>
		<description>Hi,
  The first problem is because the file is called Gsimple.java, not GSimple.java (notice the second &#039;s&#039; should be uppercase).

The other errors look like java gnome is not in the classpath.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
  The first problem is because the file is called Gsimple.java, not GSimple.java (notice the second &#8216;s&#8217; should be uppercase).</p>
<p>The other errors look like java gnome is not in the classpath.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oscar</title>
		<link>http://www.stuartaxon.com/2009/08/21/using-java2python-to-port-a-javacairo-tutorial/comment-page-1/#comment-5142</link>
		<dc:creator>Oscar</dc:creator>
		<pubDate>Thu, 26 Nov 2009 19:20:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuartaxon.com/?p=158#comment-5142</guid>
		<description>Hi again,
there are my errors:
javac Gsimple.java
Gsimple.java:21: class GSimple is public, should be declared in a file named GSimple.java
public class GSimple extends Window  {
       ^
Gsimple.java:3: package org.gnome.gdk does not exist
import org.gnome.gdk.Event;
                    ^
Gsimple.java:4: package org.gnome.gtk does not exist
import org.gnome.gtk.Gtk;
                    ^
Gsimple.java:5: package org.gnome.gtk does not exist
import org.gnome.gtk.Widget;
                    ^
Gsimple.java:6: package org.gnome.gtk does not exist
import org.gnome.gtk.Window;
                    ^
Gsimple.java:7: package org.gnome.gtk does not exist
import org.gnome.gtk.WindowPosition;
                    ^
Gsimple.java:21: cannot find symbol
symbol: class Window
public class GSimple extends Window  {
                             ^
Gsimple.java:25: cannot find symbol
symbol  : method setTitle(java.lang.String)
location: class com.zetcode.GSimple
        setTitle(&quot;Simple&quot;);
        ^
Gsimple.java:27: package Window does not exist
        connect(new Window.DeleteEvent() {
                          ^
Gsimple.java:34: cannot find symbol
symbol  : method setDefaultSize(int,int)
location: class com.zetcode.GSimple
        setDefaultSize(250, 150);
        ^
Gsimple.java:35: cannot find symbol
symbol  : variable WindowPosition
location: class com.zetcode.GSimple
        setPosition(WindowPosition.CENTER);
                    ^
Gsimple.java:36: cannot find symbol
symbol  : method show()
location: class com.zetcode.GSimple
        show();
        ^
Gsimple.java:40: cannot find symbol
symbol  : variable Gtk
location: class com.zetcode.GSimple
        Gtk.init(args);
        ^
Gsimple.java:42: cannot find symbol
symbol  : variable Gtk
location: class com.zetcode.GSimple
        Gtk.main();
        ^
14 errors

I have Xubuntu 9.10 and I installed the libjava-gnome-java package. 
which more dependencies I need?</description>
		<content:encoded><![CDATA[<p>Hi again,<br />
there are my errors:<br />
javac Gsimple.java<br />
Gsimple.java:21: class GSimple is public, should be declared in a file named GSimple.java<br />
public class GSimple extends Window  {<br />
       ^<br />
Gsimple.java:3: package org.gnome.gdk does not exist<br />
import org.gnome.gdk.Event;<br />
                    ^<br />
Gsimple.java:4: package org.gnome.gtk does not exist<br />
import org.gnome.gtk.Gtk;<br />
                    ^<br />
Gsimple.java:5: package org.gnome.gtk does not exist<br />
import org.gnome.gtk.Widget;<br />
                    ^<br />
Gsimple.java:6: package org.gnome.gtk does not exist<br />
import org.gnome.gtk.Window;<br />
                    ^<br />
Gsimple.java:7: package org.gnome.gtk does not exist<br />
import org.gnome.gtk.WindowPosition;<br />
                    ^<br />
Gsimple.java:21: cannot find symbol<br />
symbol: class Window<br />
public class GSimple extends Window  {<br />
                             ^<br />
Gsimple.java:25: cannot find symbol<br />
symbol  : method setTitle(java.lang.String)<br />
location: class com.zetcode.GSimple<br />
        setTitle(&#8220;Simple&#8221;);<br />
        ^<br />
Gsimple.java:27: package Window does not exist<br />
        connect(new Window.DeleteEvent() {<br />
                          ^<br />
Gsimple.java:34: cannot find symbol<br />
symbol  : method setDefaultSize(int,int)<br />
location: class com.zetcode.GSimple<br />
        setDefaultSize(250, 150);<br />
        ^<br />
Gsimple.java:35: cannot find symbol<br />
symbol  : variable WindowPosition<br />
location: class com.zetcode.GSimple<br />
        setPosition(WindowPosition.CENTER);<br />
                    ^<br />
Gsimple.java:36: cannot find symbol<br />
symbol  : method show()<br />
location: class com.zetcode.GSimple<br />
        show();<br />
        ^<br />
Gsimple.java:40: cannot find symbol<br />
symbol  : variable Gtk<br />
location: class com.zetcode.GSimple<br />
        Gtk.init(args);<br />
        ^<br />
Gsimple.java:42: cannot find symbol<br />
symbol  : variable Gtk<br />
location: class com.zetcode.GSimple<br />
        Gtk.main();<br />
        ^<br />
14 errors</p>
<p>I have Xubuntu 9.10 and I installed the libjava-gnome-java package.<br />
which more dependencies I need?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stu</title>
		<link>http://www.stuartaxon.com/2009/08/21/using-java2python-to-port-a-javacairo-tutorial/comment-page-1/#comment-5069</link>
		<dc:creator>stu</dc:creator>
		<pubDate>Fri, 20 Nov 2009 14:17:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuartaxon.com/?p=158#comment-5069</guid>
		<description>Cool, so python-antlr fixed it ?

If your having trouble compiling GSimple.java it could be a problem with java-gnome, post the errors here if it&#039;s not working.


I should probably update the article to python 2.6 at some point.</description>
		<content:encoded><![CDATA[<p>Cool, so python-antlr fixed it ?</p>
<p>If your having trouble compiling GSimple.java it could be a problem with java-gnome, post the errors here if it&#8217;s not working.</p>
<p>I should probably update the article to python 2.6 at some point.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oscar</title>
		<link>http://www.stuartaxon.com/2009/08/21/using-java2python-to-port-a-javacairo-tutorial/comment-page-1/#comment-5068</link>
		<dc:creator>Oscar</dc:creator>
		<pubDate>Fri, 20 Nov 2009 13:58:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuartaxon.com/?p=158#comment-5068</guid>
		<description>Oops I forgot that, maybe the &#039;python-antlr&#039; package found in synaptic fix my problem.

Pd: sorry for my bad english (just in case)</description>
		<content:encoded><![CDATA[<p>Oops I forgot that, maybe the &#8216;python-antlr&#8217; package found in synaptic fix my problem.</p>
<p>Pd: sorry for my bad english (just in case)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oscar</title>
		<link>http://www.stuartaxon.com/2009/08/21/using-java2python-to-port-a-javacairo-tutorial/comment-page-1/#comment-5067</link>
		<dc:creator>Oscar</dc:creator>
		<pubDate>Fri, 20 Nov 2009 13:55:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuartaxon.com/?p=158#comment-5067</guid>
		<description>Hi again, this was helpful, I&#039;m trying to convert java regex into python re, just for a homework, but this is a good tool, I&#039;d do the example but when I type this command &#039;$ javac GSimple.java&#039; show a lot of compilation bugs. In some aplications the .py file shows and and exception with character &#039;@&#039;, maybe cannot handle actions commands with interface like &#039;@Action&#039;.

Well i&#039;ll show what I&#039;d do for installation:

1.  $ sudo apt-get install antlr python2.5 sun-java6-bin libjava-gnome-java
2.  $ sudo easy_install-2.5 java2python Don&#039;t work at the beggining but I tried with:
    $ sudo apt-get install python-setuptools and again with 2.
3.  But the command $ j2py -i don&#039;t work, and then run $ antlr, the system show me try with &#039;apt-get install  pccts&#039; I&#039;d do and try again with j2py -i, but nothing.
4. $ sudo synaptic, then search and check all antlr 2.7.7 related packages and then all works without problems.</description>
		<content:encoded><![CDATA[<p>Hi again, this was helpful, I&#8217;m trying to convert java regex into python re, just for a homework, but this is a good tool, I&#8217;d do the example but when I type this command &#8216;$ javac GSimple.java&#8217; show a lot of compilation bugs. In some aplications the .py file shows and and exception with character &#8216;@&#8217;, maybe cannot handle actions commands with interface like &#8216;@Action&#8217;.</p>
<p>Well i&#8217;ll show what I&#8217;d do for installation:</p>
<p>1.  $ sudo apt-get install antlr python2.5 sun-java6-bin libjava-gnome-java<br />
2.  $ sudo easy_install-2.5 java2python Don&#8217;t work at the beggining but I tried with:<br />
    $ sudo apt-get install python-setuptools and again with 2.<br />
3.  But the command $ j2py -i don&#8217;t work, and then run $ antlr, the system show me try with &#8216;apt-get install  pccts&#8217; I&#8217;d do and try again with j2py -i, but nothing.<br />
4. $ sudo synaptic, then search and check all antlr 2.7.7 related packages and then all works without problems.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stu</title>
		<link>http://www.stuartaxon.com/2009/08/21/using-java2python-to-port-a-javacairo-tutorial/comment-page-1/#comment-5038</link>
		<dc:creator>stu</dc:creator>
		<pubDate>Wed, 18 Nov 2009 14:20:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuartaxon.com/?p=158#comment-5038</guid>
		<description>Cool, I thought I was the only one crazy to try this :)

Keep us posted if you do anything with gtk and jython !</description>
		<content:encoded><![CDATA[<p>Cool, I thought I was the only one crazy to try this <img src='http://www.stuartaxon.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Keep us posted if you do anything with gtk and jython !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oscar</title>
		<link>http://www.stuartaxon.com/2009/08/21/using-java2python-to-port-a-javacairo-tutorial/comment-page-1/#comment-5037</link>
		<dc:creator>Oscar</dc:creator>
		<pubDate>Wed, 18 Nov 2009 13:46:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuartaxon.com/?p=158#comment-5037</guid>
		<description>Well, problem solved, it&#039;s maybe a conflict with python 2.6.x and 2.5.x, 
I installed antlr 2.7.x from synaptic and all is done.</description>
		<content:encoded><![CDATA[<p>Well, problem solved, it&#8217;s maybe a conflict with python 2.6.x and 2.5.x,<br />
I installed antlr 2.7.x from synaptic and all is done.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oscar</title>
		<link>http://www.stuartaxon.com/2009/08/21/using-java2python-to-port-a-javacairo-tutorial/comment-page-1/#comment-5036</link>
		<dc:creator>Oscar</dc:creator>
		<pubDate>Wed, 18 Nov 2009 13:25:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuartaxon.com/?p=158#comment-5036</guid>
		<description>Hi,
After follow all steps with succes, I have a problem at the moment to execute this command 
$ j2py -i
I get this:
Traceback (most recent call last):
  File &quot;/usr/local/bin/j2py&quot;, line 9, in 
    from java2python.lib.lexer import Lexer
  File &quot;/usr/local/lib/python2.6/dist-packages/java2python/lib/lexer.py&quot;, line 4, in 
    import antlr
ImportError: No module named antlr
I have antlr installed, so what else can I do?
Thanks for help.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
After follow all steps with succes, I have a problem at the moment to execute this command<br />
$ j2py -i<br />
I get this:<br />
Traceback (most recent call last):<br />
  File &#8220;/usr/local/bin/j2py&#8221;, line 9, in<br />
    from java2python.lib.lexer import Lexer<br />
  File &#8220;/usr/local/lib/python2.6/dist-packages/java2python/lib/lexer.py&#8221;, line 4, in<br />
    import antlr<br />
ImportError: No module named antlr<br />
I have antlr installed, so what else can I do?<br />
Thanks for help.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

