-
Notifications
You must be signed in to change notification settings - Fork 79
Closed
Description
This is my java code:
public String launch() throws Exception {
// Launcher.main(null);
// Launcher4Dev.main(null);
System.err.println("Error:" + new File("").getAbsolutePath());
System.out.println("Output:" + new File("").getAbsolutePath());
new InputMismatchException("fejfoejfwef").printStackTrace();
return "Hello this is eGPS for R!";
}
But I run it in the R:
setLib_and_launchJVM();
tryCatch(
expr = {
instance <- .jnew(launchClass)
words <- .jcall(obj = instance, returnSig = "S", method = "launch")
cat('The words of eGPS Java is: ', words, '\n');
}
,
Exception = function(e) {
e$printStackTrace()
}
)
I can not see any error messages????
Metadata
Metadata
Assignees
Labels
No labels