{"provider_name":"Hatena Blog","blog_url":"https://megascus.hatenablog.com/","author_name":"megascus","image_url":null,"blog_title":" \u6c34\u307e\u3093\u3058\u3085\u30462","title":"Class#forName\u306f\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u304c\u5927\u6587\u5b57\u5c0f\u6587\u5b57\u306e\u533a\u5225\u3092\u3057\u306a\u3044\u5834\u5408\u306bNoClassDefFoundError\u3092\u6295\u3052\u308b\u3053\u3068\u304c\u3042\u308b","published":"2016-08-16 17:39:08","categories":["Java"],"url":"https://megascus.hatenablog.com/entry/20160816/1471336748","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmegascus.hatenablog.com%2Fentry%2F20160816%2F1471336748\" title=\"Class#forName\u306f\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u304c\u5927\u6587\u5b57\u5c0f\u6587\u5b57\u306e\u533a\u5225\u3092\u3057\u306a\u3044\u5834\u5408\u306bNoClassDefFoundError\u3092\u6295\u3052\u308b\u3053\u3068\u304c\u3042\u308b -  \u6c34\u307e\u3093\u3058\u3085\u30462\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","author_url":"https://blog.hatena.ne.jp/megascus/","provider_url":"https://hatena.blog","description":"\u30bf\u30a4\u30c8\u30eb\u306e\u3068\u304a\u308a\u3002 \u901a\u5e38\u3001Class#forName\u3067\u30af\u30e9\u30b9\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u5834\u5408\u306fClassNotFoundException\u304c\u767a\u751f\u3059\u308b\u304c\u3001 Windows\u4e0a\u3067\u306f\u4ee5\u4e0b\u306eJUnit\u306e\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u306e\u3088\u3046\u306a\u6319\u52d5\u3092\u793a\u3059\u3002 package test; import org.junit.Test; public class TestMain { @Test public void test1() throws ClassNotFoundException { Class.forName(\"test.TestMain\");// \u3053\u306e\u30af\u30e9\u30b9\u3092\u547c\u3073\u51fa\u3059 } @Test public void test2() th\u2026","type":"rich","version":"1.0"}