summaryrefslogtreecommitdiffstats
path: root/src/bind/javabind.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bind/javabind.cpp')
-rw-r--r--src/bind/javabind.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/bind/javabind.cpp b/src/bind/javabind.cpp
index f4905e153..b03d562ce 100644
--- a/src/bind/javabind.cpp
+++ b/src/bind/javabind.cpp
@@ -930,11 +930,19 @@ String JavaBinderyImpl::getException()
* method of a given class
*
* @param className full name of the java class
+ * @args the argument strings to the method
* @return true if successful, else false
*/
-bool JavaBinderyImpl::callMain(const String &className)
+bool JavaBinderyImpl::callMain(const String &className,
+ const std::vector<String> &args)
{
std::vector<Value> parms;
+ for (unsigned int i=0 ; i<args.size() ; i++)
+ {
+ Value v;
+ v.setString(args[i]);
+ parms.push_back(v);
+ }
Value retval;
return callStatic(Value::BIND_VOID, className, "main",
"([Ljava/lang/String;)V", parms, retval);