-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.cpp
More file actions
executable file
·43 lines (39 loc) · 1.08 KB
/
main.cpp
File metadata and controls
executable file
·43 lines (39 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include <iostream>
#include "java4cpp/jvm_launcher.h"
#include "java4cpp/java_classes.h"
#include "leak.h"
#include "allocation.h"
#include "superclass.h"
#include "enumeration.h"
#include "arrays.h"
#include "exceptionHandling.h"
#include "classloading.h"
#include "benchmark.h"
#include "multithread.h"
int main(void)
{
#ifdef _WIN32
//jvm_setJrePath("c:/Program Files (x86)/Java/jre7/bin/client/jvm.dll" );
jvm_setJrePath("c:/Program Files (x86)/Java/jdk1.7.0_45/jre/bin/client/jvm.dll" );
#else
jvm_setJrePath("/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Libraries/libserver.dylib");
#endif
jvm_addClassPath("../../jars/java4cpp-sample-1.0.0-SNAPSHOT.jar");
try
{
// un-comment for memory leak testing
//allLeak();
allAllocation();
allSuperclass();
allEnumeration();
allArrays();
allExceptionHandling();
allClassloading();
allBenchmark();
allMultithread();
} catch (std::exception& e)
{
std::cout << e.what() << std::endl;
}
return 0;
}