static String constructJVMPath()

in transaction/src/main/java/org/apache/geode_examples/transaction/Example.java [39:50]


  static String constructJVMPath() {
    StringBuilder builder = new StringBuilder();
    builder.append(System.getProperty("java.home"));
    builder.append(File.separator);
    builder.append("bin");
    builder.append(File.separator);
    builder.append("java");
    if (System.getProperty("os.name").toLowerCase().contains("win")) {
      builder.append("w.exe");
    }
    return builder.toString();
  }