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
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