Skip to content

Where is the error message #335

@yudalang3

Description

@yudalang3

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions