<?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 for The Number 42</title>
	<atom:link href="http://www.thenumber42.net/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thenumber42.net</link>
	<description>Mostly about software testing, but a little bit about life, the universe, and everything</description>
	<lastBuildDate>Thu, 05 Nov 2009 18:13:38 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on How to Use JPype by Dave Rissanen</title>
		<link>http://www.thenumber42.net/2008/03/31/how-to-use-jpype/comment-page-1/#comment-1794</link>
		<dc:creator>Dave Rissanen</dc:creator>
		<pubDate>Thu, 05 Nov 2009 18:13:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.thenumber42.net/2008/03/31/how-to-use-jpype/#comment-1794</guid>
		<description>I am new to Python and have never used jpype. I tried to execute the hello world sample program in the Jpype user&#039;s guide 0.4. I received no syntax errors and the program called startJVM and shutdownJVM but the hello world messsage did not appear in the Python shell window. Help! If I can&#039;t get this trivial snippet of code working I will never get more complex code to work. Please advise.</description>
		<content:encoded><![CDATA[<p>I am new to Python and have never used jpype. I tried to execute the hello world sample program in the Jpype user&#8217;s guide 0.4. I received no syntax errors and the program called startJVM and shutdownJVM but the hello world messsage did not appear in the Python shell window. Help! If I can&#8217;t get this trivial snippet of code working I will never get more complex code to work. Please advise.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to Use JPype by Rajkumar</title>
		<link>http://www.thenumber42.net/2008/03/31/how-to-use-jpype/comment-page-1/#comment-1366</link>
		<dc:creator>Rajkumar</dc:creator>
		<pubDate>Thu, 16 Jul 2009 12:25:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.thenumber42.net/2008/03/31/how-to-use-jpype/#comment-1366</guid>
		<description>Hope the above two examples useful.
Any queries contact: 

rajkumarece@gmail.com</description>
		<content:encoded><![CDATA[<p>Hope the above two examples useful.<br />
Any queries contact: </p>
<p><a href="mailto:%72%61%6A%6B%75%6D%61%72%65%63%65%40%67%6D%61%69%6C%2E%63%6F%6D"><span id="emob-enwxhznerpr@tznvy.pbz-55">rajkumarece {at} gmail(.)com</span><script type="text/javascript">
    var mailNode = document.getElementById('emob-enwxhznerpr@tznvy.pbz-55');
    var linkNode = document.createElement('a');
    linkNode.setAttribute('href', "mailto:%72%61%6A%6B%75%6D%61%72%65%63%65%40%67%6D%61%69%6C%2E%63%6F%6D");
    tNode = document.createTextNode("rajkumarece {at} gmail(.)com");
    linkNode.appendChild(tNode);
    linkNode.setAttribute('id', "emob-enwxhznerpr@tznvy.pbz-55");
    mailNode.parentNode.replaceChild(linkNode, mailNode);
</script></a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to Use JPype by Rajkumar</title>
		<link>http://www.thenumber42.net/2008/03/31/how-to-use-jpype/comment-page-1/#comment-1365</link>
		<dc:creator>Rajkumar</dc:creator>
		<pubDate>Thu, 16 Jul 2009 12:23:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.thenumber42.net/2008/03/31/how-to-use-jpype/#comment-1365</guid>
		<description>Sample program:
Dont Copy the Entire program. Please use this as sample to your step by step guide.

import jpype

class DocExport:
    def __init__(self):
        import os
        print &quot;current path:&quot;,os.getcwd()

        if __Cat__.jpype==0:
            jpype.startJVM(jpype.getDefaultJVMPath(), &quot;-ea&quot;, &quot;-Djava.class.path=jars/iText-2.1.6.jar;jars/jxl.jar;jars/iText-rtf.jar&quot;)
            __Cat__.jpype=1
        else:
            pass
##        jpype.startJVM(jpype.getDefaultJVMPath(), &quot;-ea&quot;, &quot;-Djava.class.path=jars/iText-2.1.6.jar;jars/iText-rtf.jar&quot;)

        ###Init All Packages Here

        #self.Document=jpype.JPackage(&quot;com.lowagie.text&quot;)
        self.package = jpype.JPackage(&quot;com.lowagie.text&quot;)#com.xsolutions.cat
        self.DocPack=jpype.JPackage(&quot;com.lowagie.text.rtf&quot;)
        self.AWT=jpype.JPackage(&quot;java.awt&quot;)
        self.ObjIO=jpype.JPackage(&quot;java.io&quot;)#com.xsolutions.cat
        self.iUtil=jpype.JPackage(&quot;java.util&quot;)


        print &quot;API:&quot;,dir(self.package)

        #self.iFontFactory=self.package.FontFactory

        #print &quot;JPype API:&quot;,dir(jpype)
        
    def Test(self):
        
        ### Init Document

        ObjDocDocument=self.package.Document
        print &quot;type:&quot;,type(ObjDocDocument)
        ObjDocDocument1=ObjDocDocument()
        print &quot;type:&quot;,type(ObjDocDocument1)

        ObjIONewFile=self.ObjIO.FileOutputStream(&quot;new.Doc&quot;)
        print &quot;type:&quot;,type(ObjIONewFile)

        ### Init Doc Writer
        iDocWriter=self.package.rtf.RtfWriter2
        ObjDocDocWriter1=iDocWriter.getInstance(ObjDocDocument1,ObjIONewFile)
        print &quot;API:&quot;,dir(ObjDocDocWriter1),type(ObjDocDocWriter1)
        
        
        ### Insert Footer
        iFont=self.package.Font
        ObjFont=iFont()
        print &quot;ObjFont API:&quot;,dir(ObjFont)
        iFontFactory=self.package.FontFactory
        print &quot;iFontFactory API:&quot;,dir(iFontFactory),type(iFontFactory)
        ResFont=iFontFactory.getFont(iFontFactory.HELVETICA,jpype.JFloat(8),ObjFont.NORMAL)
        iChunk=self.package.Chunk
        ObjChunk=iChunk(&quot;XOU Solutions Ltd&quot;,ResFont)
        iPhrase=self.package.Phrase
        ObjPhrase=iPhrase(ObjChunk)
        iHeaderFooter=self.package.HeaderFooter
        ObjHeaderFooter=iHeaderFooter(ObjPhrase,False)
        ObjDocDocument1.setFooter(ObjHeaderFooter)
        
        iRectangle=self.package.Rectangle
        ObjHeaderFooter.setAlignment(iRectangle.ALIGN_CENTER)
        ObjHeaderFooter.setBorder(iRectangle.NO_BORDER)

        ### Open Document
        try :
            ObjDocDocument1.open()
        except Exception, ex :
            print &quot;Caught the runtime exception : &quot;,ex

        ### Insert Image
        iImage=self.package.Image
        ObjImage=iImage.getInstance(&quot;Images/xou.png&quot;)
        ObjImage.setAlignment(iImage.LEFT)
        ObjDocDocument1.add(ObjImage)

        #### Insert Simple Text
            
        ObjDocParagraph=self.package.Paragraph(&quot;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nHello World&quot;)
        ObjDocDocument1.add(ObjDocParagraph)

        
        iPhrase=self.package.Phrase
        ObjPhrase=iPhrase()
        
        iChunk= self.package.Chunk
        ObjChunk1=iChunk(&quot;\nThis is Bold Value &quot;,iFontFactory.getFont(iFontFactory.HELVETICA,jpype.JFloat(12),ObjFont.BOLD))
        ObjChunk2=iChunk(&quot;This is Bold Value &quot;,iFontFactory.getFont(iFontFactory.HELVETICA,jpype.JFloat(14),ObjFont.BOLD))
        ObjPhrase.add(ObjChunk1)
        ObjPhrase.add(ObjChunk2)
        
        
        ObjDocDocument1.add(ObjPhrase)
##        phrase = new Phrase();
##        phrase.add(new Chunk(((String)headerList.get(headerCount)).trim()+&quot;  &quot;,FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD)));
##        phrase.add(new Chunk(systemuptime,FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL)));
##        document.add(new Paragraph(phrase));
        
        iTable=self.package.Table

        ObjDocPTable=iTable(1,1)
        print &quot;Dir:&quot;,dir(ObjDocPTable)
        
        iRectangle=self.package.Rectangle
        ObjDocPTable.setAlignment(iRectangle.ALIGN_LEFT)
        #ObjDocPTable.setPadding(jpype.JFloat(8));

        #ObjDocPTable.setWidth(jpype.JFloat(100));
        
##        ObjDocPTable.setSpacingBefore(jpype.JFloat(15))
##        ObjDocPTable.setWidthPercentage(jpype.JFloat(100))
        iPhrase=self.package.Phrase
        ObjPhrase=iPhrase()
        iChunk= self.package.Chunk
        ObjChunk3=iChunk(&quot;Heading&quot;,iFontFactory.getFont(iFontFactory.HELVETICA,jpype.JFloat(12),ObjFont.BOLD))
        ObjPhrase.add(ObjChunk3)
        iDocPCell=self.package.Cell
        ObjDocPCell=iDocPCell(ObjPhrase)
        ObjDocPTable.addCell(ObjDocPCell)
        ObjDocDocument1.add(ObjDocPTable);

        iPhrase=self.package.Phrase
        ObjPhrase=iPhrase()
        
        iChunk= self.package.Chunk
        ObjChunk1=iChunk(&quot;\b&quot;,iFontFactory.getFont(iFontFactory.HELVETICA,jpype.JFloat(12),ObjFont.BOLD))
        ObjPhrase.add(ObjChunk1)
                
        ObjDocDocument1.add(ObjPhrase)
        
        ObjDocPTable=iTable(2,2)
        print &quot;Dir:&quot;,dir(ObjDocPTable)
        
        iRectangle=self.package.Rectangle
        ObjDocPTable.setAlignment(iRectangle.ALIGN_LEFT)
##        ObjDocPTable.setSpacingBefore(jpype.JFloat(15))
##        ObjDocPTable.setWidthPercentage(jpype.JFloat(100))


        iPhrase=self.package.Phrase
        ObjPhrase=iPhrase()
        iChunk= self.package.Chunk
        ObjChunk3=iChunk(&quot;Datax \n DataY\n Data1&quot;,iFontFactory.getFont(iFontFactory.HELVETICA,jpype.JFloat(12),ObjFont.BOLD))
        ObjPhrase.add(ObjChunk3)
        iDocPCell=self.package.Cell
        ObjDocPCell=iDocPCell(ObjPhrase)
        ObjDocPTable.addCell(ObjDocPCell)


        
        
        iPhrase=self.package.Phrase
        ObjPhrase=iPhrase()
        iChunk= self.package.Chunk
        ObjChunk3=iChunk(&quot;Data1&quot;,iFontFactory.getFont(iFontFactory.HELVETICA,jpype.JFloat(12),ObjFont.BOLD))
        ObjPhrase.add(ObjChunk3)
        iDocPCell=self.package.Cell
        ObjDocPCell=iDocPCell(ObjPhrase)

        iColor=self.AWT.Color
        ObjDocPCell.setBackgroundColor(iColor.orange);
        
        ObjDocPTable.addCell(ObjDocPCell)


        iPhrase=self.package.Phrase
        ObjPhrase=iPhrase()
        iChunk= self.package.Chunk
        iColor=self.AWT.Color
        ObjChunk3=iChunk(&quot;Data1&quot;,iFontFactory.getFont(iFontFactory.HELVETICA,jpype.JFloat(12),ObjFont.BOLD,iColor.red))
        ObjPhrase.add(ObjChunk3)
        iDocPCell=self.package.Cell
        ObjDocPCell=iDocPCell(ObjPhrase)
        ObjDocPTable.addCell(ObjDocPCell)

        iPhrase=self.package.Phrase
        ObjPhrase=iPhrase()
        iChunk= self.package.Chunk
        iColor=self.AWT.Color
        ObjChunk3=iChunk(&quot;\nData New Data&quot;,iFontFactory.getFont(iFontFactory.HELVETICA,jpype.JFloat(12),ObjFont.BOLD,iColor.red))
        ObjPhrase.add(ObjChunk3)
        iDocPCell=self.package.Cell
        ObjDocPCell=iDocPCell(ObjPhrase)
        ObjDocPTable.addCell(ObjDocPCell)

    def __del__(self):
        shutdownJVM()
    
Docexportobject=DocExport()
Docexportobject.Test()</description>
		<content:encoded><![CDATA[<p>Sample program:<br />
Dont Copy the Entire program. Please use this as sample to your step by step guide.</p>
<p>import jpype</p>
<p>class DocExport:<br />
    def __init__(self):<br />
        import os<br />
        print &#8220;current path:&#8221;,os.getcwd()</p>
<p>        if __Cat__.jpype==0:<br />
            jpype.startJVM(jpype.getDefaultJVMPath(), &#8220;-ea&#8221;, &#8220;-Djava.class.path=jars/iText-2.1.6.jar;jars/jxl.jar;jars/iText-rtf.jar&#8221;)<br />
            __Cat__.jpype=1<br />
        else:<br />
            pass<br />
##        jpype.startJVM(jpype.getDefaultJVMPath(), &#8220;-ea&#8221;, &#8220;-Djava.class.path=jars/iText-2.1.6.jar;jars/iText-rtf.jar&#8221;)</p>
<p>        ###Init All Packages Here</p>
<p>        #self.Document=jpype.JPackage(&#8220;com.lowagie.text&#8221;)<br />
        self.package = jpype.JPackage(&#8220;com.lowagie.text&#8221;)#com.xsolutions.cat<br />
        self.DocPack=jpype.JPackage(&#8220;com.lowagie.text.rtf&#8221;)<br />
        self.AWT=jpype.JPackage(&#8220;java.awt&#8221;)<br />
        self.ObjIO=jpype.JPackage(&#8220;java.io&#8221;)#com.xsolutions.cat<br />
        self.iUtil=jpype.JPackage(&#8220;java.util&#8221;)</p>
<p>        print &#8220;API:&#8221;,dir(self.package)</p>
<p>        #self.iFontFactory=self.package.FontFactory</p>
<p>        #print &#8220;JPype API:&#8221;,dir(jpype)</p>
<p>    def Test(self):</p>
<p>        ### Init Document</p>
<p>        ObjDocDocument=self.package.Document<br />
        print &#8220;type:&#8221;,type(ObjDocDocument)<br />
        ObjDocDocument1=ObjDocDocument()<br />
        print &#8220;type:&#8221;,type(ObjDocDocument1)</p>
<p>        ObjIONewFile=self.ObjIO.FileOutputStream(&#8220;new.Doc&#8221;)<br />
        print &#8220;type:&#8221;,type(ObjIONewFile)</p>
<p>        ### Init Doc Writer<br />
        iDocWriter=self.package.rtf.RtfWriter2<br />
        ObjDocDocWriter1=iDocWriter.getInstance(ObjDocDocument1,ObjIONewFile)<br />
        print &#8220;API:&#8221;,dir(ObjDocDocWriter1),type(ObjDocDocWriter1)</p>
<p>        ### Insert Footer<br />
        iFont=self.package.Font<br />
        ObjFont=iFont()<br />
        print &#8220;ObjFont API:&#8221;,dir(ObjFont)<br />
        iFontFactory=self.package.FontFactory<br />
        print &#8220;iFontFactory API:&#8221;,dir(iFontFactory),type(iFontFactory)<br />
        ResFont=iFontFactory.getFont(iFontFactory.HELVETICA,jpype.JFloat(8),ObjFont.NORMAL)<br />
        iChunk=self.package.Chunk<br />
        ObjChunk=iChunk(&#8220;XOU Solutions Ltd&#8221;,ResFont)<br />
        iPhrase=self.package.Phrase<br />
        ObjPhrase=iPhrase(ObjChunk)<br />
        iHeaderFooter=self.package.HeaderFooter<br />
        ObjHeaderFooter=iHeaderFooter(ObjPhrase,False)<br />
        ObjDocDocument1.setFooter(ObjHeaderFooter)</p>
<p>        iRectangle=self.package.Rectangle<br />
        ObjHeaderFooter.setAlignment(iRectangle.ALIGN_CENTER)<br />
        ObjHeaderFooter.setBorder(iRectangle.NO_BORDER)</p>
<p>        ### Open Document<br />
        try :<br />
            ObjDocDocument1.open()<br />
        except Exception, ex :<br />
            print &#8220;Caught the runtime exception : &#8220;,ex</p>
<p>        ### Insert Image<br />
        iImage=self.package.Image<br />
        ObjImage=iImage.getInstance(&#8220;Images/xou.png&#8221;)<br />
        ObjImage.setAlignment(iImage.LEFT)<br />
        ObjDocDocument1.add(ObjImage)</p>
<p>        #### Insert Simple Text</p>
<p>        ObjDocParagraph=self.package.Paragraph(&#8220;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nHello World&#8221;)<br />
        ObjDocDocument1.add(ObjDocParagraph)</p>
<p>        iPhrase=self.package.Phrase<br />
        ObjPhrase=iPhrase()</p>
<p>        iChunk= self.package.Chunk<br />
        ObjChunk1=iChunk(&#8220;\nThis is Bold Value &#8220;,iFontFactory.getFont(iFontFactory.HELVETICA,jpype.JFloat(12),ObjFont.BOLD))<br />
        ObjChunk2=iChunk(&#8220;This is Bold Value &#8220;,iFontFactory.getFont(iFontFactory.HELVETICA,jpype.JFloat(14),ObjFont.BOLD))<br />
        ObjPhrase.add(ObjChunk1)<br />
        ObjPhrase.add(ObjChunk2)</p>
<p>        ObjDocDocument1.add(ObjPhrase)<br />
##        phrase = new Phrase();<br />
##        phrase.add(new Chunk(((String)headerList.get(headerCount)).trim()+&#8221;  &#8220;,FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD)));<br />
##        phrase.add(new Chunk(systemuptime,FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL)));<br />
##        document.add(new Paragraph(phrase));</p>
<p>        iTable=self.package.Table</p>
<p>        ObjDocPTable=iTable(1,1)<br />
        print &#8220;Dir:&#8221;,dir(ObjDocPTable)</p>
<p>        iRectangle=self.package.Rectangle<br />
        ObjDocPTable.setAlignment(iRectangle.ALIGN_LEFT)<br />
        #ObjDocPTable.setPadding(jpype.JFloat(8));</p>
<p>        #ObjDocPTable.setWidth(jpype.JFloat(100));</p>
<p>##        ObjDocPTable.setSpacingBefore(jpype.JFloat(15))<br />
##        ObjDocPTable.setWidthPercentage(jpype.JFloat(100))<br />
        iPhrase=self.package.Phrase<br />
        ObjPhrase=iPhrase()<br />
        iChunk= self.package.Chunk<br />
        ObjChunk3=iChunk(&#8220;Heading&#8221;,iFontFactory.getFont(iFontFactory.HELVETICA,jpype.JFloat(12),ObjFont.BOLD))<br />
        ObjPhrase.add(ObjChunk3)<br />
        iDocPCell=self.package.Cell<br />
        ObjDocPCell=iDocPCell(ObjPhrase)<br />
        ObjDocPTable.addCell(ObjDocPCell)<br />
        ObjDocDocument1.add(ObjDocPTable);</p>
<p>        iPhrase=self.package.Phrase<br />
        ObjPhrase=iPhrase()</p>
<p>        iChunk= self.package.Chunk<br />
        ObjChunk1=iChunk(&#8220;\b&#8221;,iFontFactory.getFont(iFontFactory.HELVETICA,jpype.JFloat(12),ObjFont.BOLD))<br />
        ObjPhrase.add(ObjChunk1)</p>
<p>        ObjDocDocument1.add(ObjPhrase)</p>
<p>        ObjDocPTable=iTable(2,2)<br />
        print &#8220;Dir:&#8221;,dir(ObjDocPTable)</p>
<p>        iRectangle=self.package.Rectangle<br />
        ObjDocPTable.setAlignment(iRectangle.ALIGN_LEFT)<br />
##        ObjDocPTable.setSpacingBefore(jpype.JFloat(15))<br />
##        ObjDocPTable.setWidthPercentage(jpype.JFloat(100))</p>
<p>        iPhrase=self.package.Phrase<br />
        ObjPhrase=iPhrase()<br />
        iChunk= self.package.Chunk<br />
        ObjChunk3=iChunk(&#8220;Datax \n DataY\n Data1&#8243;,iFontFactory.getFont(iFontFactory.HELVETICA,jpype.JFloat(12),ObjFont.BOLD))<br />
        ObjPhrase.add(ObjChunk3)<br />
        iDocPCell=self.package.Cell<br />
        ObjDocPCell=iDocPCell(ObjPhrase)<br />
        ObjDocPTable.addCell(ObjDocPCell)</p>
<p>        iPhrase=self.package.Phrase<br />
        ObjPhrase=iPhrase()<br />
        iChunk= self.package.Chunk<br />
        ObjChunk3=iChunk(&#8220;Data1&#8243;,iFontFactory.getFont(iFontFactory.HELVETICA,jpype.JFloat(12),ObjFont.BOLD))<br />
        ObjPhrase.add(ObjChunk3)<br />
        iDocPCell=self.package.Cell<br />
        ObjDocPCell=iDocPCell(ObjPhrase)</p>
<p>        iColor=self.AWT.Color<br />
        ObjDocPCell.setBackgroundColor(iColor.orange);</p>
<p>        ObjDocPTable.addCell(ObjDocPCell)</p>
<p>        iPhrase=self.package.Phrase<br />
        ObjPhrase=iPhrase()<br />
        iChunk= self.package.Chunk<br />
        iColor=self.AWT.Color<br />
        ObjChunk3=iChunk(&#8220;Data1&#8243;,iFontFactory.getFont(iFontFactory.HELVETICA,jpype.JFloat(12),ObjFont.BOLD,iColor.red))<br />
        ObjPhrase.add(ObjChunk3)<br />
        iDocPCell=self.package.Cell<br />
        ObjDocPCell=iDocPCell(ObjPhrase)<br />
        ObjDocPTable.addCell(ObjDocPCell)</p>
<p>        iPhrase=self.package.Phrase<br />
        ObjPhrase=iPhrase()<br />
        iChunk= self.package.Chunk<br />
        iColor=self.AWT.Color<br />
        ObjChunk3=iChunk(&#8220;\nData New Data&#8221;,iFontFactory.getFont(iFontFactory.HELVETICA,jpype.JFloat(12),ObjFont.BOLD,iColor.red))<br />
        ObjPhrase.add(ObjChunk3)<br />
        iDocPCell=self.package.Cell<br />
        ObjDocPCell=iDocPCell(ObjPhrase)<br />
        ObjDocPTable.addCell(ObjDocPCell)</p>
<p>    def __del__(self):<br />
        shutdownJVM()</p>
<p>Docexportobject=DocExport()<br />
Docexportobject.Test()</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to Use JPype by Rajkumar</title>
		<link>http://www.thenumber42.net/2008/03/31/how-to-use-jpype/comment-page-1/#comment-1364</link>
		<dc:creator>Rajkumar</dc:creator>
		<pubDate>Thu, 16 Jul 2009 12:21:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.thenumber42.net/2008/03/31/how-to-use-jpype/#comment-1364</guid>
		<description>###TypeError: Package org.wg3i.test.Test is not Callable 

###Can you give any advice on how to fix this error.



Please Have Handle or Interface to the Class and create object like following


like this :


self.package = jpype.JPackage(&quot;com.lowagie.text&quot;)

ObjDocDocument=self.package.Document  ## Here taking an interface to the class
print &quot;type:&quot;,type(ObjDocDocument)
ObjDocDocument1=ObjDocDocument()  ## After that creating Object
print &quot;type:&quot;,type(ObjDocDocument1)

it works with iText.

Tip:   Use &quot;public static methods or properties&quot; in the Java Code....</description>
		<content:encoded><![CDATA[<p>###TypeError: Package org.wg3i.test.Test is not Callable </p>
<p>###Can you give any advice on how to fix this error.</p>
<p>Please Have Handle or Interface to the Class and create object like following</p>
<p>like this :</p>
<p>self.package = jpype.JPackage(&#8220;com.lowagie.text&#8221;)</p>
<p>ObjDocDocument=self.package.Document  ## Here taking an interface to the class<br />
print &#8220;type:&#8221;,type(ObjDocDocument)<br />
ObjDocDocument1=ObjDocDocument()  ## After that creating Object<br />
print &#8220;type:&#8221;,type(ObjDocDocument1)</p>
<p>it works with iText.</p>
<p>Tip:   Use &#8220;public static methods or properties&#8221; in the Java Code&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Break Even Point for Fuel Efficiency Enhancements by Chris</title>
		<link>http://www.thenumber42.net/2009/07/01/break-even-point-for-fuel-efficiency-enhancements/comment-page-1/#comment-1326</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Thu, 02 Jul 2009 15:00:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.thenumber42.net/?p=155#comment-1326</guid>
		<description>When gas was going up; myself driving a truck; a fairly significant number of my friends factored in buying a motorcycle to replace their suv to &quot;save money on gas&quot;.  I worked out a spreadsheet that made all of them cringe on the point... (Erie; a bit worse weather wise that pgh; so numbers were worse there, I also factored in increasing gas prices).  I am going to use your formula and modify it a bit to do the same...

(bike cost) * (truck mpg) * (bike mpg)
--------------------------------------
(gas price) * (bike mpg*truck mpg)

In [6]: (5000*15*40)/(2.99*(40-15))
Out[6]: 40133.779264214048


from kbb.com...
(http://www.kbb.com/KBB/CompanyInfo/MotorcycleFAQ.aspx)
    8. What is the average yearly mileage for a motorcycle?
    Obviously mileage will vary from year to year and model to model. A simple guide could be to consider the type of bike you are looking at: If the bike is a sportbike 600 c.c. to 999 c.c., and since these bikes are traditionally weekend only bikes, you can expect to see lower miles, about 3,000 miles per year. Tourers or Sport Tourers usually see a lot of miles, but these are generally freeway miles, between 5,000 to 6,000 miles per year.

This is nationally; due to weather; I will half that for Pittsburgh (shorter riding season + rain), and I&#039;ll round up so 3500/year. So, that gives us...

In [7]: ((5000*15*40)/(2.99*(40-15))/3500)
Out[7]: 11.466794075489728

If you buy a *cheap* used bike; put no money into repairs at all (or offset normal vehicle maintenance with the bike maintenance; in my experience, bike is a bit more prone to breaking down) it will take you ~11.5 years to break even on gas alone.  Doesn&#039;t factor in entertainment value or hospital bills either...:)

-Chris</description>
		<content:encoded><![CDATA[<p>When gas was going up; myself driving a truck; a fairly significant number of my friends factored in buying a motorcycle to replace their suv to &#8220;save money on gas&#8221;.  I worked out a spreadsheet that made all of them cringe on the point&#8230; (Erie; a bit worse weather wise that pgh; so numbers were worse there, I also factored in increasing gas prices).  I am going to use your formula and modify it a bit to do the same&#8230;</p>
<p>(bike cost) * (truck mpg) * (bike mpg)<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
(gas price) * (bike mpg*truck mpg)</p>
<p>In [6]: (5000*15*40)/(2.99*(40-15))<br />
Out[6]: 40133.779264214048</p>
<p>from kbb.com&#8230;<br />
(<a href="http://www.kbb.com/KBB/CompanyInfo/MotorcycleFAQ.aspx" rel="nofollow">http://www.kbb.com/KBB/CompanyInfo/MotorcycleFAQ.aspx</a>)<br />
    8. What is the average yearly mileage for a motorcycle?<br />
    Obviously mileage will vary from year to year and model to model. A simple guide could be to consider the type of bike you are looking at: If the bike is a sportbike 600 c.c. to 999 c.c., and since these bikes are traditionally weekend only bikes, you can expect to see lower miles, about 3,000 miles per year. Tourers or Sport Tourers usually see a lot of miles, but these are generally freeway miles, between 5,000 to 6,000 miles per year.</p>
<p>This is nationally; due to weather; I will half that for Pittsburgh (shorter riding season + rain), and I&#8217;ll round up so 3500/year. So, that gives us&#8230;</p>
<p>In [7]: ((5000*15*40)/(2.99*(40-15))/3500)<br />
Out[7]: 11.466794075489728</p>
<p>If you buy a *cheap* used bike; put no money into repairs at all (or offset normal vehicle maintenance with the bike maintenance; in my experience, bike is a bit more prone to breaking down) it will take you ~11.5 years to break even on gas alone.  Doesn&#8217;t factor in entertainment value or hospital bills either&#8230;:)</p>
<p>-Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Recursive Find and Replace in Linux by Carlos MacLeod</title>
		<link>http://www.thenumber42.net/2006/09/25/recursive-find-and-replace-in-linux/comment-page-1/#comment-1271</link>
		<dc:creator>Carlos MacLeod</dc:creator>
		<pubDate>Mon, 25 May 2009 10:57:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.thenumber42.net/2006/09/25/recursive-find-and-replace-in-linux/#comment-1271</guid>
		<description>Thanks dude, it saved a lot of my time !</description>
		<content:encoded><![CDATA[<p>Thanks dude, it saved a lot of my time !</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to Use JPype by Isaac</title>
		<link>http://www.thenumber42.net/2008/03/31/how-to-use-jpype/comment-page-1/#comment-1006</link>
		<dc:creator>Isaac</dc:creator>
		<pubDate>Fri, 20 Mar 2009 14:50:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.thenumber42.net/2008/03/31/how-to-use-jpype/#comment-1006</guid>
		<description>&lt;blockquote&gt;&lt;p&gt;introduction is really helpful. I have a query , i want to user jpype.rmi functions to access a java applicaiton and get bac information from that java application. How can i do that using jpype. What are the inbuilt funcitons available with jpype.rmi . Any documentation or any sample code describing use of rmi. Anyhelp regardin this will be appericiated. Thanks a lot&lt;/p&gt;
&lt;p&gt;Regards&lt;br&gt;
Naveen&lt;/p&gt;
&lt;/blockquote&gt;

Unfortunately, I have never done any Java RMI programming so I can&#039;t give you any pointers.</description>
		<content:encoded><![CDATA[<blockquote><p>introduction is really helpful. I have a query , i want to user jpype.rmi functions to access a java applicaiton and get bac information from that java application. How can i do that using jpype. What are the inbuilt funcitons available with jpype.rmi . Any documentation or any sample code describing use of rmi. Anyhelp regardin this will be appericiated. Thanks a lot</p>
<p>Regards<br />
Naveen</p>
</blockquote>
<p>Unfortunately, I have never done any Java RMI programming so I can&#8217;t give you any pointers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to Use JPype by Isaac</title>
		<link>http://www.thenumber42.net/2008/03/31/how-to-use-jpype/comment-page-1/#comment-1005</link>
		<dc:creator>Isaac</dc:creator>
		<pubDate>Fri, 20 Mar 2009 14:49:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.thenumber42.net/2008/03/31/how-to-use-jpype/#comment-1005</guid>
		<description>&lt;blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;Thank you for this introduction. But, I got a Type Error in python. And I could not fix it.&lt;br&gt;
TypeError: Package org.wg3i.test.Test is not Callable&lt;br&gt;
Can you give any advice on how to fix this error.
&lt;/blockquote&gt;
&lt;p&gt;Can you post your python code?  Are you trying to use the class before creating an instance of it?
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;I believe Suprabhath is just running the class file example. I am getting the same result.&lt;/p&gt;
&lt;/blockquote&gt;

Hmmm....I&#039;m not sure what to tell you.  I just copied and pasted the code from above and it runs just fine on my system.  If it makes a difference I am using Sun Java 1.6 and Python 2.6.</description>
		<content:encoded><![CDATA[<blockquote><blockquote>
<blockquote>Thank you for this introduction. But, I got a Type Error in python. And I could not fix it.<br />
TypeError: Package org.wg3i.test.Test is not Callable<br />
Can you give any advice on how to fix this error.
</p></blockquote>
<p>Can you post your python code?  Are you trying to use the class before creating an instance of it?
</p>
</blockquote>
<p>I believe Suprabhath is just running the class file example. I am getting the same result.</p>
</blockquote>
<p>Hmmm&#8230;.I&#8217;m not sure what to tell you.  I just copied and pasted the code from above and it runs just fine on my system.  If it makes a difference I am using Sun Java 1.6 and Python 2.6.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to Use JPype by Naveen</title>
		<link>http://www.thenumber42.net/2008/03/31/how-to-use-jpype/comment-page-1/#comment-950</link>
		<dc:creator>Naveen</dc:creator>
		<pubDate>Tue, 10 Mar 2009 04:33:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.thenumber42.net/2008/03/31/how-to-use-jpype/#comment-950</guid>
		<description>introduction is really helpful. I have a query , i want to user jpype.rmi functions to access a java applicaiton and get bac information from that java application. How can i do that using jpype. What are the inbuilt funcitons available with jpype.rmi . Any documentation or any sample code describing use of rmi. Anyhelp regardin this will be appericiated. Thanks a lot

Regards
Naveen</description>
		<content:encoded><![CDATA[<p>introduction is really helpful. I have a query , i want to user jpype.rmi functions to access a java applicaiton and get bac information from that java application. How can i do that using jpype. What are the inbuilt funcitons available with jpype.rmi . Any documentation or any sample code describing use of rmi. Anyhelp regardin this will be appericiated. Thanks a lot</p>
<p>Regards<br />
Naveen</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to Use JPype by John Malich</title>
		<link>http://www.thenumber42.net/2008/03/31/how-to-use-jpype/comment-page-1/#comment-948</link>
		<dc:creator>John Malich</dc:creator>
		<pubDate>Mon, 09 Mar 2009 16:09:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.thenumber42.net/2008/03/31/how-to-use-jpype/#comment-948</guid>
		<description>&lt;blockquote&gt;&lt;blockquote&gt;Thank you for this introduction. But, I got a Type Error in python. And I could not fix it.  
TypeError: Package org.wg3i.test.Test is not Callable 
Can you give any advice on how to fix this error.
&lt;/blockquote&gt;
Can you post your python code?  Are you trying to use the class before creating an instance of it?
&lt;/blockquote&gt;
I believe Suprabhath is just running the class file example. I am getting the same result.</description>
		<content:encoded><![CDATA[<blockquote><blockquote>Thank you for this introduction. But, I got a Type Error in python. And I could not fix it.<br />
TypeError: Package org.wg3i.test.Test is not Callable<br />
Can you give any advice on how to fix this error.
</p></blockquote>
<p>Can you post your python code?  Are you trying to use the class before creating an instance of it?
</p></blockquote>
<p>I believe Suprabhath is just running the class file example. I am getting the same result.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
