Skip to content
Snippets Groups Projects
Commit 32cbaf8d authored by vitawrap's avatar vitawrap
Browse files

JNI: Projet IntelliJ

parent ec270c77
Branches
No related tags found
No related merge requests found
import java.io.IOException;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.control.SplitPane;
import javafx.stage.Stage;
public class App extends Application {
public static void main(String[] args) throws Exception {
launch(args);
}
@Override
public void start(Stage primaryStage) throws Exception {
try {
SplitPane root = FXMLLoader.load(getClass().getResource("resources/ProjetView.fxml"));
primaryStage.setTitle("Hello World");
primaryStage.setScene(new Scene(root, 800, 600));
primaryStage.show();
}
catch (IOException e)
{
System.err.println("FXML indisponible.");
}
}
}
File deleted
File deleted
#include <jni.h> #include <jni.h>
#include "application_Scheduling.h"
#include "instance.h" #include "instance.h"
#include "algo.h" #include "algo.h"
#include "Scheduling.h"
JNIEXPORT void JNICALL Java_Scheduling_runSchedule JNIEXPORT void JNICALL Java_Scheduling_runSchedule
(JNIEnv * env, jclass cl, jstring inst_in, jstring sched_out, jint m, jint preempt, jint balanced) (JNIEnv * env, jclass cl, jstring inst_in, jstring sched_out, jint m, jint preempt, jint balanced)
...@@ -11,4 +11,4 @@ JNIEXPORT void JNICALL Java_Scheduling_runSchedule ...@@ -11,4 +11,4 @@ JNIEXPORT void JNICALL Java_Scheduling_runSchedule
Instance i = read_instance(instance_file); Instance i = read_instance(instance_file);
struct schedule_t *s = create_schedule(i, m, preempt, balanced); struct schedule_t *s = create_schedule(i, m, preempt, balanced);
save_schedule(s, schedule_file); save_schedule(s, schedule_file);
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment