Message6913
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>
> _______________________________________
> |
|
Date |
User |
Action |
Args |
2012-03-20 04:09:10 | jimmycool | set | recipients:
+ jimmycool, amak |
2012-03-20 04:09:10 | jimmycool | link | issue1845 messages |
2012-03-20 04:09:10 | jimmycool | create | |
|