• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

How to access files in 'included files' from extension (java)

J

JRLS

Guest
i made an extension using java code
From there i want to access a file, so i put the file under "Included Files" (in resource tree).

The extension refers to java code, where i try to access the included file (insnej.xm) , like this:

public static void main(String[] paramArrayOfString)
{
URL localURL = new File("insnej.xm").toURI().toURL();
playerThread = new PlayThread(localURL);
playerThread.start();
while (playerThread.isAlive()) {}
}

But, i doesnt seem to find the file from within the java code.
Do i need to put something in front of it, or move the file to somewhere else to make it work?

Any help appreciated :)
 
Top