From 42bfec1ca4e1b99e0a15701ae3651c891f925556 Mon Sep 17 00:00:00 2001
From: vitawrap <thevitawrap@gmail.com>
Date: Fri, 5 May 2023 09:43:03 +0200
Subject: [PATCH] Java: JDK 17 + C

---
 Makefile                     | 4 ++--
 src/application_Scheduling.c | 4 ++++
 2 files changed, 6 insertions(+), 2 deletions(-)
 create mode 100644 src/application_Scheduling.c

diff --git a/Makefile b/Makefile
index 8d9fc30..300e4db 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@ TEST = runtest
 LIB = $(JDIR)/libscheduling.so
 EXPE = $(SCDIR)/expe
 
-JAVA_HOME = /usr/lib/jvm/java-11-openjdk-amd64
+JAVA_HOME = /usr/lib/jvm/java-17-openjdk-amd64
 JINCLUDES = -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux
 
 _DEP = util.h list.h tree.h instance.h schedule.h algo.h
@@ -74,4 +74,4 @@ $(EXPE) : $(OBJ) $(ODIR)/expe.o
 	$(CC) -o $@ $^ -lm
 
 $(LIB) : $(OBJ) $(ODIR)/application_Scheduling.o
-	$(CC) -shared -o $@ $^ -lm
\ No newline at end of file
+	$(CC) -shared -o $@ $^ -lm
diff --git a/src/application_Scheduling.c b/src/application_Scheduling.c
new file mode 100644
index 0000000..43f1e5b
--- /dev/null
+++ b/src/application_Scheduling.c
@@ -0,0 +1,4 @@
+#include <jni.h>
+#include "schedule.h"
+
+
-- 
GitLab