Message6913

Author jimmycool
Recipients amak, jimmycool
Date 2012-03-20.04:09:10
SpamBayes Score 3.5027536e-14
Marked as misclassified No
Message-id <CAMZj1Z06ak8_CeYefg5ytLS24GO5jdXpzsZqX2a7ipounXKOPA@mail.gmail.com>
In-reply-to <1332194236.97.0.28739027759.issue1845@psf.upfronthosting.co.za>
Content
i am using netbeans ide as my development environment we can do
everything in netbeans except the nltk tool kit

The class path for the nltk package is
C:\Python26\Lib\site-packages\nltk
the classpath for the jython package
C:\Program Files\NetBeans 6.7.1\python1\jython-2.5\Lib
the classpath for the jython package
C:\Program Files\NetBeans 6.7.1\python1\jython-2.5\Lib\sitepackages

In the java path of my jython installation i have added the nltk jar file
C:\Python26\Lib\site-packages\nltk\nltk.jar

The jython code gives error on importing nltk:
Traceback (most recent call last):
  File "C:\Documents and Settings\USER-1\My
Documents\NetBeansProjects\NewPythonProject2\src\newpythonproject2.py",
line 9, in <module>
    from nltk import *
ImportError: No module named nltk

The jython code is
from javax.swing import *
from nltk import *
frame=JFrame("Hello Jython");
label=JLabel("Hello Jython!")
frame.add(label)
frame.setSize(100,200)
frame.show()

On 3/20/12, Alan Kennedy <report@bugs.jython.org> wrote:
>
> Changes by Alan Kennedy <jython-dev@xhaus.com>:
>
>
> ----------
> assignee:  -> amak
>
> _______________________________________
> Jython tracker <report@bugs.jython.org>
> <http://bugs.jython.org/issue1845>
> _______________________________________
>
History
Date User Action Args
2012-03-20 04:09:10jimmycoolsetrecipients: + jimmycool, amak
2012-03-20 04:09:10jimmycoollinkissue1845 messages
2012-03-20 04:09:10jimmycoolcreate