报错:Exception in thread "main" java.lang.ClassNotFoundException: "java.util.ArrayList"
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
at com.itheima.day1.ReflectTest_2.main(ReflectTest_2.java:23)
config.properties已经创建了啊,为什么还是错,求大神指点。。
package com.itheima.day1;
import java.io.InputStream;
import java.util.*;
public class ReflectTest_2
{
/**
* @param args
*/
public static void main(String[] args) throws Exception
{
// InputStream is = new FileInputStream("config.properties");
InputStream is = ReflectTest_2.class.getResourceAsStream("config.properties");
Properties pros = new Properties();
pros.load(is);
is.close();