Actually, he cannot find java.io.
It recognizes import java.io.*;
import java.io.IOException;
but when I try InputStream = this.getClass().getResourceAsStream("users.xml");
, i get the following error:
C:\Users\cpantaziu\Documents\NetBeansProjects\url\src\main\java\com\mkyong\common\controller\FailRegisterController.java:[120,12] cannot find symbol symbol : variable InputStream.
Tools -> Java Platforms ses my jdk 1.6.
Why am I getting this?
you have to assign a reference variable:
InputStream ref= this.getClass().getResourceAsStream("users.xml");