mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
GP-1143: fix for random java call
This commit is contained in:
parent
928bc5508a
commit
ac0340dc58
1 changed files with 3 additions and 1 deletions
|
@ -66,7 +66,9 @@ public class LinuxPtyChild extends LinuxPtyEndpoint implements PtyChild {
|
|||
protected PtySession sessionUsingJavaLeader(String[] args, Map<String, String> env)
|
||||
throws IOException {
|
||||
final List<String> argsList = new ArrayList<>();
|
||||
argsList.add("java");
|
||||
String javaCommand =
|
||||
System.getProperty("java.home") + File.separator + "bin" + File.separator + "java";
|
||||
argsList.add(javaCommand);
|
||||
argsList.add("-cp");
|
||||
argsList.add(System.getProperty("java.class.path"));
|
||||
argsList.add(LinuxPtySessionLeader.class.getCanonicalName());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue