JPype - passing to Java main

2007-08-13 Thread unlikeablePorpoise
I am trying to get JPype to pass a String into a Java class main function. Demonstration code below: =JAVA package com; public class JPypeTest { public static void main(String args[]) { System.out.println(args[0]); } public void printArgument(String a

Re: JPype - passing to Java main

2007-08-14 Thread unlikeablePorpoise
> > Try this: > com.JPypeTest.main("arg") > > Ian Thanks for your suggestion, but it doesn't work (produces an error). Does anybody else have any ideas? Thanks, Sarah -- http://mail.python.org/mailman/listinfo/python-list

Re: JPype - passing to Java main

2007-08-14 Thread unlikeablePorpoise
Good point Laurent. Here is the error produced when I try to access main() using 'com.JPypeTest.main("arg")' The original code is pasted at the top of this thread. I only added 'com.JPypeTest.main("arg")' which causes the error below -ERROR_- File "tester.py", line 10, i