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.

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.

Also not sure but is not spelling of Interpreter is wrong??

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.