Meaningless Drivel is fun!*
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
JavaRanch » Java Forums » Languages » Jython/Python
Bookmark "Jython & NetBeans" Watch "Jython & NetBeans" New topic
Author

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:
code:
--------------------------------------------------------------------------------
Traceback (innermost last): File "", line 1, in ?ImportError: no module named string at org.python.core.Py.ImportError(Py.java) at org.python.core.imp.import_first(imp.java) at org.python.core.imp.import_name(imp.java) at org.python.core.imp.importName(imp.java) at org.python.core.ImportFunction.load(__builtin__.java) at org.python.core.ImportFunction.__call__(__builtin__.java) at org.python.core.PyObject.__call__(PyObject.java) at org.python.core.__builtin__.__import__(__builtin__.java) at org.python.core.imp.importOne(imp.java) at org.python.pycode._pyx19.f$0(:1) at org.python.pycode._pyx19.call_function() at org.python.core.PyTableCode.call(PyTableCode.java) at org.python.core.PyCode.call(PyCode.java) at org.python.core.Py.runCode(Py.java) at org.python.core.Py.exec(Py.java) at org.python.util.PythonInterpreter.exec(PythonInterpreter.java) at org.netbeans.modules.scripting.JPythonScriptType.exec(JPythonScriptType.java:99) at org.openide.execution.ScriptType.exec(ScriptType.java:95) at org.netbeans.modules.scripting.ScriptUtils$3.run(ScriptUtils.java:143) at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:119)
--------------------------------------------------------------------------------
Is there anything I could do to rectify this - some sort of path problem perhaps...
Thanks in advance
Bob
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jython & NetBeans