Jython question

Reply

Join Date: Oct 2008
Posts: 19
Reputation: jcafaro10 is an unknown quantity at this point 
Solved Threads: 0
jcafaro10 jcafaro10 is offline Offline
Newbie Poster

Jython question

 
0
  #1
Nov 6th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 685
Reputation: sillyboy is on a distinguished road 
Solved Threads: 61
sillyboy's Avatar
sillyboy sillyboy is offline Offline
Practically a Master Poster

Re: Jython question

 
0
  #2
Nov 7th, 2008
  1. myInterpretter.exec("import java.util")

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

  1. import java.util

Jython is python with access to java packages.
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 1,309
Reputation: evstevemd has a spectacular aura about evstevemd has a spectacular aura about evstevemd has a spectacular aura about 
Solved Threads: 124
evstevemd's Avatar
evstevemd evstevemd is online now Online
Nearly a Posting Virtuoso

Re: Jython question

 
0
  #3
Nov 9th, 2008
Also not sure but is not spelling of Interpreter is wrong??
Atheist: God is man made imagination, he doesn't exist!
Theist: It's okay, can you imagine anything else that doesn't exist?
Junior MD --- Python, C++ and PHP
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Python Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC