| | |
| | | public static void main(String[] args){ |
| | | |
| | | SpringApplication.run(CountApplication.class, args); |
| | | final Runtime runtime = Runtime.getRuntime(); |
| | | String [] brs = new String[2]; |
| | | brs[0] ="C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"; |
| | | brs[1]="C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe"; |
| | | for(String str : brs){ |
| | | try { |
| | | runtime.exec(str); |
| | | // final Runtime runtime = Runtime.getRuntime(); |
| | | // String [] brs = new String[2]; |
| | | // String str ="C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"; |
| | | // brs[1]="C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe"; |
| | | // for(String str : brs){ |
| | | // try { |
| | | // runtime.exec(str); |
| | | // break; |
| | | } catch (IOException e){ |
| | | |
| | | } |
| | | } |
| | | // } catch (IOException e){ |
| | | // |
| | | // } |
| | | // } |
| | | } |
| | | } |