commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r924549 - /commons/proper/daemon/trunk/src/native/nt/procrun/src/javajni.c
Date Wed, 17 Mar 2010 23:12:35 GMT
Author: sebb
Date: Wed Mar 17 23:12:34 2010
New Revision: 924549

URL: http://svn.apache.org/viewvc?rev=924549&view=rev
Log:
Method might not be called 'main'; use the actual name.

Modified:
    commons/proper/daemon/trunk/src/native/nt/procrun/src/javajni.c

Modified: commons/proper/daemon/trunk/src/native/nt/procrun/src/javajni.c
URL: http://svn.apache.org/viewvc/commons/proper/daemon/trunk/src/native/nt/procrun/src/javajni.c?rev=924549&r1=924548&r2=924549&view=diff
==============================================================================
--- commons/proper/daemon/trunk/src/native/nt/procrun/src/javajni.c (original)
+++ commons/proper/daemon/trunk/src/native/nt/procrun/src/javajni.c Wed Mar 17 23:12:34 2010
@@ -624,7 +624,8 @@ apxJavaLoadMainClass(APXHANDLE hJava, LP
                                          szMethodName, "([Ljava/lang/String;)V");
     if (!lpJava->clWorker.jMethod) {
         JVM_EXCEPTION_CLEAR(lpJava);
-        apxLogWrite(APXLOG_MARK_ERROR "Static method 'void main(String[])' in Class %s not
found", szClassName);
+        apxLogWrite(APXLOG_MARK_ERROR "Method 'static void %s(String[])' not found in Class
%s",
+        		szMethodName, szClassName);
         return FALSE;
     }
     nArgs = apxMultiSzToArrayW(hJava->hPool, lpArguments, &lpArgs);



Mime
View raw message