Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mbe-tools
TTool
Commits
7e30fb04
Commit
7e30fb04
authored
May 09, 2022
by
Ludovic Apvrille
Browse files
Adding compatibility with 11 for java
parent
d49f0148
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
build.gradle
View file @
7e30fb04
...
...
@@ -12,7 +12,7 @@ ext {
subprojects
{
apply
plugin:
'java'
sourceCompatibility
=
1.
11
sourceCompatibility
=
11
// version =
sourceSets
{
...
...
ttool/src/main/java/Main.java
View file @
7e30fb04
...
...
@@ -135,8 +135,7 @@ public class Main implements ActionListener, InterpreterOutputInterface{
splashFrame
.
setMessage
(
"Checking Java version"
);
}
String
s
=
System
.
getProperty
(
"java.vendor"
);
//String s = Version.getFullVersion().toLowerCase();
String
s
=
System
.
getProperty
(
"java.vendor"
).
toLowerCase
();
//System.out.println("Full version:" + s);
if
(!
s
.
contains
(
"oracle"
))
{
System
.
out
.
println
(
"** WARNING: you seem to use a Java Virtual Machine not provided by Oracle **.\n "
+
...
...
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