try{ Process p = Runtime.getRuntime().exec("C:/R/R-3.2.0/Rscript.exe arrayqualitymetrics.R"); int processComplete = p.waitFor(); if (processComplete == 0) { System.out.println("successfull"); JOptionPane.showMessageDialog(null,"Process is completed"); } else { System.out.println("Could not complete"); JOptionPane.showMessageDialog(null,"You have selected wrong input file"); } } catch (Exception e) { e.printStackTrace(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)