| | |
Jython question
![]() |
•
•
Join Date: Oct 2008
Posts: 19
Reputation:
Solved Threads: 0
I can't really seem to find a jython forum and this question is somewhere between a jython and a python question.
I'm trying to get a java Scanner in python. So in java I say myInterpretter.exec("import java.util") and then in python I try and access jav.util.Scanner but it says java package 'java.util' has no attribute 'Scanner' but java.util.Scanner is correct for java.
I'm trying to get a java Scanner in python. So in java I say myInterpretter.exec("import java.util") and then in python I try and access jav.util.Scanner but it says java package 'java.util' has no attribute 'Scanner' but java.util.Scanner is correct for java.
Python Syntax (Toggle Plain Text)
myInterpretter.exec("import java.util")
Not too sure what you are trying to do here. You should be able to simply use:
Python Syntax (Toggle Plain Text)
import java.util
Jython is python with access to java packages.
![]() |
Similar Threads
- Is it too late to learn Python (Python)
- C++ is dying a slow death (C++)
Other Threads in the Python Forum
- Previous Thread: wxWidgets - RichTextCtrl - Is ther one?
- Next Thread: List Index Question
| Thread Tools | Search this Thread |
alarm ansi app assignment avogadro backend beginner binary bluetooth character cipher cmd customdialog cx-freeze data decimals dictionary directory dynamic error exe file float format function generator getvalue gnu graphics halp heads homework http ideas import input ip itunes java keycontrol leftmouse line linux list lists loop maintain maze millimeter module mouse number numbers output parsing path pointer prime programming progressbar push py2exe pygame python queue random recursion schedule screensaverloopinactive script scrolledtext slicenotation sqlite ssh statistics string strings sudokusolver sum text thread threading time tlapse tuple tutorial ubuntu unicode urllib urllib2 variable variables ventrilo vigenere web webservice wikipedia write wxpython xlib






