DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Python (http://www.daniweb.com/forums/forum114.html)
-   -   Jython question (http://www.daniweb.com/forums/thread155809.html)

jcafaro10 Nov 6th, 2008 11:01 pm
Jython question
 
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.

sillyboy Nov 7th, 2008 2:38 am
Re: Jython question
 
myInterpretter.exec("import java.util")

Not too sure what you are trying to do here. You should be able to simply use:

import java.util

Jython is python with access to java packages.

evstevemd Nov 9th, 2008 11:33 pm
Re: Jython question
 
Also not sure but is not spelling of Interpreter is wrong??


All times are GMT -4. The time now is 8:15 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC