Skip to content

Commit 5f71ce6

Browse files
authored
Update README.md
1 parent dfb582a commit 5f71ce6

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

‎README.md‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,16 @@
11
# CSharpCallJava
2-
C# code invoke java
2+
C# invoke java via C++ as a wraper.
3+
4+
C# invoke C++ via P/invoke. C++ starts a JVM to run the java code.
5+
6+
c# code should be compiled in .NET core 2.0
7+
8+
You should edit the Makefile to set the Path of Java SDK
9+
export LD_LIBRARY_PATH=/usr/lib/jvm/java-1.9.0-openjdk-amd64/lib/amd64/server
10+
or add it into your enviroment
11+
# Compile:
12+
javac MyTest.java
13+
14+
make
15+
16+
dotnet build

0 commit comments

Comments
 (0)