[Pydev-users] [Users] importing a Java class
Brought to you by:
fabioz
|
From: SourceForge.net <no...@so...> - 2011-06-09 15:28:43
|
The following forum message was posted by gmseed at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4566881: Hi I'm working my way thro the Jython book at: http://www.jython.org/jythonbook/en/1.0/DataTypes.html#lists-dictionaries-sets-a nd-tuples and in Listing 2-27 it states: # Import and use a Java ArrayList >>> import java.util.ArrayList as ArrayList This works in the command-line window but does not work in Eclipse and complains with "Unresolved import". I'm confused by this as I'm using the Jython interpreter and assumed it has access to the Java api, as illustrated by how the command-line works. Thanks Graham |