It's not a secret anymore!
The moose likes Jython/Python and the fly likes Jython & NetBeans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Languages » Jython/Python
Bookmark "Jython & NetBeans" Watch "Jython & NetBeans" New topic

Jython & NetBeans

bob dapaah
Ranch Hand

Joined: Jan 15, 2002
Posts: 46
Has anyone here tried to use the integrated Jython capability of NetBeans. I'm trying to import 'string' and I get the following error:
Traceback (innermost last): File "", line 1, in ?ImportError: no module named string at org.python.core.Py.ImportError( at org.python.core.imp.import_first( at org.python.core.imp.import_name( at org.python.core.imp.importName( at org.python.core.ImportFunction.load( at org.python.core.ImportFunction.__call__( at org.python.core.PyObject.__call__( at org.python.core.__builtin__.__import__( at org.python.core.imp.importOne( at org.python.pycode._pyx19.f$0(:1) at org.python.pycode._pyx19.call_function() at at at org.python.core.Py.runCode( at org.python.core.Py.exec( at org.python.util.PythonInterpreter.exec( at org.netbeans.modules.scripting.JPythonScriptType.exec( at org.openide.execution.ScriptType.exec( at org.netbeans.modules.scripting.ScriptUtils$ at
Is there anything I could do to rectify this - some sort of path problem perhaps...
Thanks in advance
I agree. Here's the link:
subject: Jython & NetBeans
It's not a secret anymore!