summaryrefslogtreecommitdiff
path: root/stoc/test/javavm/testjavavm.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'stoc/test/javavm/testjavavm.cxx')
-rw-r--r--stoc/test/javavm/testjavavm.cxx32
1 files changed, 0 insertions, 32 deletions
diff --git a/stoc/test/javavm/testjavavm.cxx b/stoc/test/javavm/testjavavm.cxx
index e74cf0a8b417..c585e771a293 100644
--- a/stoc/test/javavm/testjavavm.cxx
+++ b/stoc/test/javavm/testjavavm.cxx
@@ -29,7 +29,6 @@
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_stoc.hxx"
-
#include <jni.h>
#include <stdio.h>
@@ -52,7 +51,6 @@ using namespace rtl;
using namespace cppu;
using namespace com::sun::star::uno;
using namespace com::sun::star::lang;
-//using namespace com::sun::star::reflection;
using namespace com::sun::star::lang;
using namespace com::sun::star::registry;
using namespace com::sun::star::java;
@@ -102,44 +100,15 @@ sal_Bool testJavaVM(const Reference< XMultiServiceFactory > & xMgr )
if( _jvm->AttachCurrentThread((void**) &p_env, 0))
return sal_False;
-// jclass aJProg = p_env->FindClass("TestJavaVM");
-// if( p_env->ExceptionOccurred()){
-// p_env->ExceptionDescribe();
-// p_env->ExceptionClear();
-// }
-//
-// jmethodID mid= p_env->GetStaticMethodID( aJProg,"main", "([Ljava/lang/String;)V");
-
jclass cls = p_env->FindClass( "TestJavaVM");
if (cls == 0) {
OSL_TRACE( "Can't find Prog class\n");
exit(1);
}
-// jmethodID methid = p_env->GetStaticMethodID( cls, "main", "([Ljava/lang/String;)V");
-// if (methid == 0) {
-// OSL_TRACE("Can't find Prog.main\n");
-// exit(1);
-// }
-
-// jstring jstr = p_env->NewStringUTF(" from C!");
-// if (jstr == 0) {
-// OSL_TRACE("Out of memory\n");
-// exit(1);
-// }
-// jobjectArray args = p_env->NewObjectArray( 1,
-// p_env->FindClass("java/lang/String"), jstr);
-// if (args == 0) {
-// OSL_TRACE( "Out of memory\n");
-// exit(1);
-// }
-// p_env->CallStaticVoidMethod( cls, methid, args);
-
-
jmethodID id = p_env->GetStaticMethodID( cls, "getInt", "()I");
if( id)
{
-// jint _i= p_env->CallStaticIntMethod(cls, id);
p_env->CallStaticIntMethod(cls, id);
}
@@ -193,7 +162,6 @@ SAL_IMPLEMENT_MAIN()
Reference< XComponent > xCompContext( context, UNO_QUERY );
xCompContext->dispose();
printf("javavm %s", bSucc ? "succeeded" : "failed");
-// cout << "javavm " << (bSucc ? "succeeded" : "failed") << " !" << endl;
return (bSucc ? 0 : -1);
}