You are incorrectly invoiking the method using parameters.getClass() which is passing an argument of type java.lang. Class into the signature that is expecting a String object. Simply pass the parameters object in as it is.
You are incorrectly invoiking the method using; parameters.getClass() which is passing an argument of type java.lang. Class into the signature that is expecting a String object. Simply pass the parameters object in as it is.
Public Method getMethod(String name, Class... parameterTypes) throws NoSuchMethodException, SecurityException I guess he's right in that. – alamar May 19 '09 at 8:36 now I get this exception: InternalError: Unable to convert JavaScript value to Java value of type java.lang. Class – Giancarlo May 19 '09 at 8:36 try changing the two reflecting lines to; var aStaticMethod = aClass.
GetMethod("main", parameters.getClass()); //gets the main(String args) method, here I get the exception* var myJava = aStaticMethod. Invoke(null, parameters); removing the initializers since they already seem to have been created by the reflection call. – simon622 May 19 '09 at 8:41 new error: There is no Java method java.lang.Class.
GetMethod that matches JavaScript argument types (string, object). Candidate methods with the same name are: java.lang.reflect. Method getMethod(java.lang.
String, java.lang. Class) – Giancarlo May 19 '09 at 8:47.
Assuming your complete class name is "your.package. Firefox" you could do: importPackage("your. Package"); args = java.lang.reflect.Array.
NewInstance(java.lang.String. TYPE, 1); Firefox. Main(args).
– Giancarlo May 19 '09 at 8:50 ReferenceError: importPackage is not defined – Giancarlo May 19 '09 at 8:56 in "plain" rhino this is supposed to work sorry :( – dfa May 19 '09 at 9:26 just following-up DFA's comment: Related info:: developer.mozilla. Org/en/Core_JavaScript_1.5_Guide/… – ATorras May 19 '09 at 11:12 I've already tried out all stuff from developer.mozilla.Org, with no success... – Giancarlo May 19 '09 at 12:37.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.