# Target VM failed to initialise error message

**URL:** https://discourse.processing.org/t/target-vm-failed-to-initialise-error-message/4490
**Category:** Libraries
**Created:** [October 15, 2018, 12:41pm UTC](https://discourse.processing.org/t/target-vm-failed-to-initialise-error-message/4490 "2018-10-15T12:41:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![RossY99](https://avatars.discourse-cdn.com/v4/letter/r/3ec8ea/32.png) [@RossY99](https://discourse.processing.org/u/RossY99)
#### Post date: [October 15, 2018, 12:41pm UTC](https://discourse.processing.org/t/target-vm-failed-to-initialise-error-message/4490/1 "2018-10-15T12:41:46Z")

</div>

I’m trying to test and see if a particular audio file I have is working but i’m receiving an error message that I don’t fully understand. The code looks like this:

```auto
import processing.sound.*;

SoundFile file;
String audioName = "correct.mp3";
String path;

void setup() {
  path = sketchPath(audioName);
  file = new SoundFile(this, path);
  file.play();
}

void draw(){
}

```

and the error message states,

> “Could not run the sketch (Target VM failed to initialize).”

Anyone able to help?
