Sorry, I do not know how to make your IDE change the manifest file it uses.
I tried this experiment:
// Test using getResource() from jar
import java.net.*;
public class...
Type: Posts; User: Norm
Sorry, I do not know how to make your IDE change the manifest file it uses.
I tried this experiment:
// Test using getResource() from jar
import java.net.*;
public class...
The getResource() method uses the classpath to find the resource.
In the IDE the classpath included:
C:\Users\giannis\Documents\NetBeansProjects\SnoozeShutdown\build\classes
and the path to the...
What is printed out for the value of the URL for when the code works and for when it does not work?
Print the value of pageURL right after the call to getResource();
What is the value of the...
Add a call to printStackTrace() to the exception's catch block to get the full text of the error message.
Also add a println() to print out the URL to the page. Compare the value when the code...