Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VMStartException when running the main method from InMemory #10

Open
lindstrum opened this issue Jun 17, 2018 · 4 comments
Open

VMStartException when running the main method from InMemory #10

lindstrum opened this issue Jun 17, 2018 · 4 comments

Comments

@lindstrum
Copy link

I am getting the following error when running the main method from InMemory and inputting the text from test-input.txt.

image

I notice if I remove the highlighted line, I get output similar to the expected output, but it differs in the that there is an exception message as shown below.

image

I have tried changing the classpath manually in the program to a few things, but not much changes. I am not very experienced in programming, so this may be a small error I don't see.

@daveagp
Copy link
Owner

daveagp commented Jun 17, 2018

Hi Ethan,

I would be surprised if this would work if you try to run it interactively in Eclipse. I've only ever used it by command-line java and javac. Have you tried using that approach instead?

@lindstrum
Copy link
Author

When I try from the command prompt, I get the following

image

This exception that is generated I previously solved in eclipse by adding the line System.getProperties().put("java.home", "C:\Program Files\Java\jdk1.8.0_20\jre"); but this nor changing the JAVA_HOME variable seems to change anything.

@daveagp
Copy link
Owner

daveagp commented Jun 18, 2018

I also should mention that I've never tried running this on Windows.

Well, the latter screenshot seems more informative. Do you know what is the problematic null? Looking at the code, I guess it could be the result of ToolProvider.getSystemJavaCompiler()? If you can check whether that's the case, maybe there's some caveats online about running that method on Windows.

@malavancs
Copy link

malavancs commented Feb 16, 2019

What are the major different between pythontutor's java_jail and this version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants