File tree 1 file changed +5
-2
lines changed
src/jdk.jpackage/share/native/applauncher
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -116,7 +116,10 @@ Jvm* AppLauncher::createJvmLauncher() const {
116
116
117
117
(*jvm)
118
118
.setPath (findJvmLib (cfgFile, defaultRuntimePath, jvmLibNames))
119
- .addArgument (launcherPath);
119
+ .addArgument (launcherPath)
120
+ .addArgument (_T (" -Djava.library.path=" )
121
+ + appDirPath + FileUtils::pathSeparator
122
+ + FileUtils::dirname (launcherPath));
120
123
121
124
if (initJvmFromCmdlineOnly) {
122
125
tstring_array::const_iterator argIt = args.begin ();
You can’t perform that action at this time.
0 commit comments