Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
embedded_systems_public
Java-Exercises-8-JNI-PiFaceCAD
Commits
8037a2c2
Commit
8037a2c2
authored
Nov 28, 2018
by
Martin Deinhofer
Browse files
removed eclipse doc, added description for running from command line and make
parent
5f549774
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
8037a2c2
...
...
@@ -12,22 +12,15 @@ At times, it is necessary to use native codes (C/C++) to overcome the memory man
# Clone project
```
git clone https://es.technikum-wien.at/embedded_systems_public/Java-Exercises-7-JNI-HW-Interfacing.git```
# Create Eclipse project
1. *File/New/Project*
2. Select *General/Project* and click *Next*
3. Unselect *Use default location* and browse to cloned diretory, click *OK*
4. Enter *Project name* and click *Finish*
# Build project
Building the project involves two steps
1. Building Java code
* Click on *Project/Build All*. This is not necessary if *Build Automatically* is selected.
2. Building native code either on command line or using the configured Eclipse build targets
* Command line:```cd jni && make``` or
* Double click on *jni/Build Targets/all*
2. Building native code
These tasks are done in the makefile, so call:
```
cd jni && make
```
# Run project
...
...
@@ -38,6 +31,10 @@ This can be done via the VM argument ```-Djava.library.path```.
```
java -cp bin -Djava.library.path=jni java_exercises8_1_1.HelloJNI
```
or using the makefile
```
cd jni && make run
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment