1
에서 클래스를로드? 나는이 문자열은 클래스 경로 안 http://docs.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html#loadClass(java.lang.String)에 따르면 String str ="myclass";
에 main
내가 주어진 경로에서 클래스를로드하는 코드의 간단한 조각이 주어진 경로
감사
에서 클래스를로드? 나는이 문자열은 클래스 경로 안 http://docs.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html#loadClass(java.lang.String)에 따르면 String str ="myclass";
에 main
내가 주어진 경로에서 클래스를로드하는 코드의 간단한 조각이 주어진 경로
감사
변경 String str ="/Users/path/to/myclass.class";
을 실행할 때 ClassNotFoundException
을 받고 있지만, 계속 ("java.lang.String의"같은) 클래스 전체 이름.
나는 이것이 정확하다고 생각합니다. –
덕분에 xvorsx와 Ryan – Satya
어떻게 수업이 어디 있는지 알 수 있습니까? (실제 위치에서와 마찬가지로 메모리에 있습니까?) –