Skip to content

Commit

Permalink
feat: adoptium jdks ok
Browse files Browse the repository at this point in the history
  • Loading branch information
ystyle committed Apr 9, 2023
1 parent e2a5640 commit d96d39e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ store
*.exe
.idea
*.zip
.run
14 changes: 0 additions & 14 deletions .run/go build github.com_ystyle_jvms.run.xml

This file was deleted.

2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ func getJavaHome(jdkTempFile string) string {
var javaHome string
fs.WalkDir(os.DirFS(jdkTempFile), ".", func(path string, d fs.DirEntry, err error) error {
if filepath.Base(path) == "java.exe" {
temPath := strings.Replace(path, "/bin/java.exe", "", 1)
temPath := strings.Replace(path, "bin/java.exe", "", -1)
javaHome = filepath.Join(jdkTempFile, temPath)
return fs.SkipDir
}
Expand Down

0 comments on commit d96d39e

Please sign in to comment.