Skip to content

Commit

Permalink
fix: java vm version bug
Browse files Browse the repository at this point in the history
  • Loading branch information
saidelimam committed Jan 19, 2018
1 parent ee93ac4 commit fa9535e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/main/java/com/dcp/sm/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,11 @@ public static void main( String[] args )
}
else // GUI Application
{
String javaVersionFix = System.getProperty("java.vm.version").split("_")[0];
// Apache Pivot bugfix for Java VM versions containing '_'
String javaVersionFix = System.getProperty("java.runtime.version").split("_")[0];
System.setProperty("java.vm.version", javaVersionFix);
Out.print(LOG_LEVEL.INFO, "Fixing Java version to v" + System.getProperty("java.vm.version"));

DesktopApplicationContext.main(Master.class, args);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/resources/app.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ version=1.3.0
username=SAID EL IMAM, Said
# dependencies versions
jdk.version=1.8
pivot.version=2.0.4
pivot.version=2.0.5
truezip.version=7.7.1

0 comments on commit fa9535e

Please sign in to comment.