| | |
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 anydbm app assignment beginner bluetooth character cipher cmd conversion coordinates corners curves customdialog cx-freeze data decimals definedlines development directory dynamic excel exe feet file float format function generator getvalue gnu graphics halp handling homework http ideas input ip itunes keycontrol leftmouse line linux list lists loan loop maintain maze millimeter module mouse number numbers output parsing path prime programming push py2exe pygame pymailer python queue random raw_input recursion recursive schedule screensaverloopinactive script searchingfile slicenotation sqlite ssh string strings sudokusolver text time tlapse tooltip tuple type ubuntu unicode url urllib urllib2 variable ventrilo vigenere web webservice wikipedia wxpython xlib xlwt






