Re: JPype - passing to Java main

2007-08-15 Thread Gary Duzan
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: >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 belo

Re: JPype - passing to Java main

2007-08-14 Thread Alan Kennedy
> -ERROR_- > File "tester.py", line 10, in > com.JPypeTest.main("arg") > RuntimeError: No matching overloads found. at src/native/common/ > jp_method.cpp:121 > --END ERROR- I haven't used jpype, but the signature for java main functions is public

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

Re: JPype - passing to Java main

2007-08-14 Thread Laurent Pointal
[EMAIL PROTECTED] a écrit : >> Try this: >> com.JPypeTest.main("arg") >> >> Ian > > Thanks for your suggestion, but it doesn't work (produces an error). This is where you should have copy/pasted the error. ;-) > > Does anybody else have any ideas? Sorry, no. -- http://mail.python.org/mailma

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-13 Thread Ian Clark
[EMAIL PROTECTED] wrote: > 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]);

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