Prev: Using string as file
Next: ActiveX control in python vs ActiveX control in vb 6 (piece of code)
From: Alan Kennedy on 14 Aug 2007 13:54 > -------------ERROR_------------- > File "tester.py", line 10, in <module> > 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 static void main (String [] args) So try com.JPypeTest.main(["arg"]) Note the addition of square brackets to create a *list* of arguments, which presumably jpype will transform into a java String[]. Alan.
From: Gary Duzan on 14 Aug 2007 12:18 In article <1187097639.176267.33050(a)d55g2000hsg.googlegroups.com>, <unlikeablePorpoise(a)gmail.com> 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 below > >-------------ERROR_------------- > File "tester.py", line 10, in <module> > com.JPypeTest.main("arg") >RuntimeError: No matching overloads found. at src/native/common/ >jp_method.cpp:121 >----------END ERROR------------- > >Thanks, >Sarah Just a guess, but try com.JPypeTest.main(["arg"]). Gary Duzan Motorola HNM >On Aug 14, 8:03 am, Laurent Pointal <laurent.poin...(a)limsi.fr> wrote: >> unlikeablePorpo...(a)gmail.com 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. > >
First
|
Prev
|
Pages: 1 2 Prev: Using string as file Next: ActiveX control in python vs ActiveX control in vb 6 (piece of code) |