417 if (classname == NULL) { |
417 if (classname == NULL) { |
418 ReportExceptionDescription(env); |
418 ReportExceptionDescription(env); |
419 goto leave; |
419 goto leave; |
420 } |
420 } |
421 mainClass = LoadClass(env, classname); |
421 mainClass = LoadClass(env, classname); |
422 if(mainClass == NULL) { /* exception occured */ |
422 if(mainClass == NULL) { /* exception occurred */ |
423 ReportExceptionDescription(env); |
423 ReportExceptionDescription(env); |
424 message = "Could not find the main class. Program will exit."; |
424 message = "Could not find the main class. Program will exit."; |
425 goto leave; |
425 goto leave; |
426 } |
426 } |
427 (*env)->ReleaseStringUTFChars(env, mainClassName, classname); |
427 (*env)->ReleaseStringUTFChars(env, mainClassName, classname); |
439 if (classname == NULL) { |
439 if (classname == NULL) { |
440 ReportExceptionDescription(env); |
440 ReportExceptionDescription(env); |
441 goto leave; |
441 goto leave; |
442 } |
442 } |
443 mainClass = LoadClass(env, classname); |
443 mainClass = LoadClass(env, classname); |
444 if(mainClass == NULL) { /* exception occured */ |
444 if(mainClass == NULL) { /* exception occurred */ |
445 ReportExceptionDescription(env); |
445 ReportExceptionDescription(env); |
446 message = "Could not find the main class. Program will exit."; |
446 message = "Could not find the main class. Program will exit."; |
447 goto leave; |
447 goto leave; |
448 } |
448 } |
449 (*env)->ReleaseStringUTFChars(env, mainClassName, classname); |
449 (*env)->ReleaseStringUTFChars(env, mainClassName, classname); |