.. | .. |
---|
595 | 595 | |
---|
596 | 596 | public static void main(String argv[]) |
---|
597 | 597 | { |
---|
| 598 | + String osArch = System.getProperty("os.arch"); |
---|
| 599 | + System.out.println("os.arch = " + osArch); |
---|
| 600 | + |
---|
598 | 601 | if (argv.length == 0) |
---|
599 | 602 | { |
---|
600 | 603 | String javaPath = System.getProperty("java.home") + File.separator + "bin" + File.separator + "java"; |
---|
.. | .. |
---|
626 | 629 | System.out.println("jarfile = " + jarfile); |
---|
627 | 630 | jarpath = jarpath.substring(1, jarpath.length()); |
---|
628 | 631 | System.out.println("jarpath = " + jarpath); |
---|
629 | | - command += "native" + File.separator + "windows_amd64"; |
---|
| 632 | + command += "native" + File.separator; |
---|
| 633 | + if (osArch.equals("amd64")) |
---|
| 634 | + command += "windows_amd64"; |
---|
| 635 | + else |
---|
| 636 | + command += "windows_i586"; |
---|
630 | 637 | } |
---|
631 | 638 | else |
---|
632 | 639 | command += "native" + File.separator + "macosx"; |
---|