We are about to switch to a new forum software. Until then we have removed the registration on this forum.
A friend of mine is a teacher and is interested in programming but has never really done it before. I wrote a clock program after I saw a similar project online and sent it to her. One of her students was trying to run the program and got an error saying "Target VM failed to initialize". I know that the program works. I have been trying to run it on multiple operating systems including on a raspberry pi and have had no issues getting it to run. Could someone try and explain what exactly might be going wrong on their end?
I have verified that they have the Clock.pde and the ttf font I used in a folder called Clock and I can't seem to figure out why the program will not run.
Thanks in advance!
Answers
What OS does she have? Processing version?
Notice there was issues recently with NVidia cars and a version of processing: https://forum.processing.org/two/discussion/20562/could-not-run-the-sketch-target-vm-failed-to-initialize-errors-windows-nvidia
https://forum.processing.org/two/discussion/comment/87939/#Comment_87939
Also, can she run any of the provided examples? Does it work? if it does, then the issue is in your code and if you post it, people will e able to run it in other machines and maybe figure out the problem....
Kf
I believe she is running windows 7 and i know that she is using version 3.3.
The student I was talking to trying to get it working had to go to class but i will ask them to try to run a sample program when they get back.
Sorry i dont know how to format the code but i posted it there anyways.
No problem about formatting. Edit your post, select your code and hit ctrl+o to format your code. Make sure there is an empty line above and below your code
I removed the PFont references and it works by the way.
Kf
Simple fix. They did not have java installed on the school computer. Didn't know that was absolutely necessary as I thought processing covered those files for setting up the VM.
When exporting a sketch, we've got the option to bundle Java's runtime or not. L-)