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
> -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
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
[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
>
> 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
[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]);
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