File tree Expand file tree Collapse file tree 3 files changed +23
-6
lines changed Expand file tree Collapse file tree 3 files changed +23
-6
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " java-locator"
3
- version = " 0.1.8 "
3
+ version = " 0.1.9 "
4
4
authors = [
" aston <[email protected] >" ]
5
5
description = " Locates a Java installation in the host."
6
6
keywords = [" java" , " jni" ]
Original file line number Diff line number Diff line change @@ -65,6 +65,18 @@ The latter two commands should return something like:
65
65
66
66
> /usr/lib/jvm/java-11-openjdk-amd64/lib
67
67
68
+ ## Available Features
69
+
70
+ * ` build-binary ` : Generates a ` java-locator ` executable
71
+ * ` locate-jdk-only ` : Instructs ` java-locator ` to locate __ only JDKs__ .
72
+
73
+ In a system that has only JREs installed, ` java-locator ` will not find any Java installation if this feature is enabled.
74
+
75
+ This feature also solves issues when using JDK 8: In usual installations, the symlinks of the ` java ` executable in the ` $PATH `
76
+ lead to the ` jre ` directory that lies inside the JDK 8. When ` $JAVA_HOME ` is not defined in the system, ` java-locator ` attempts to locate the
77
+ Java installation following the symlinks of the ` java ` executable. Having done that, it cannot locate development artifacts like ` jni.h ` headers,
78
+ ` javac ` etc. With this feature enabled though, ` java-locator ` will locate development artifacts normally.
79
+
68
80
## License
69
81
70
82
At your option, under:
Original file line number Diff line number Diff line change @@ -78,12 +78,17 @@ The latter two commands should return something like:
78
78
79
79
> /usr/lib/jvm/java-11-openjdk-amd64/lib
80
80
81
- ## Extra Features
81
+ ## Available Features
82
82
83
- * `locate-jdk-only`: Attempts to locate the JDK by searching for the Java compiler,
84
- as opposed to searching for the runtime.
85
- This solves issues in JDK 8 where the JRE resides in a subdirectory and not in the JDK root,
86
- so development files are not found in JAVA_HOME as would be expected.
83
+ * `build-binary`: Generates a `java-locator` executable
84
+ * `locate-jdk-only`: Instructs `java-locator` to locate __only JDKs__.
85
+
86
+ In a system that has only JREs installed, `java-locator` will not find any Java installation if this feature is enabled.
87
+
88
+ This feature also solves issues when using JDK 8: In usual installations, the symlinks of the `java` executable in the `$PATH`
89
+ lead to the `jre` directory that lies inside the JDK 8. When `$JAVA_HOME` is not defined in the system, `java-locator` attempts to locate the
90
+ Java installation following the symlinks of the `java` executable. Having done that, it cannot locate development artifacts like `jni.h` headers,
91
+ `javac` etc. With this feature enabled though, `java-locator` will locate development artifacts normally.
87
92
88
93
## License
89
94
You can’t perform that action at this time.
0 commit comments