踏上原路

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 4 5 6 7 8

2013年7月12日

摘要: java project中如何获得相对路径(编译后的目录是在/bin目录下)(一般图片 这些目录放在 项目目录下,与src同级)在static方法中,用String path = Test.class.getResource("").getPath();在非static方法中,用String path = this.getClass().getResource("").getPath();或String path = Test.class.getResource("").getPath();都行!!(因为在static方法中没有thi 阅读全文
posted @ 2013-07-12 10:44 踏上原路 阅读(942) 评论(0) 推荐(0) 编辑

摘要: 今天写代码时碰见一个这样的错误:java.lang.UnsupportedClassVersionError: com/ui/Test : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:616) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at jav 阅读全文
posted @ 2013-07-12 09:24 踏上原路 阅读(325) 评论(0) 推荐(0) 编辑

2013年7月3日

摘要: 进入:http://www.hibernate.org说明文档:英文:http://docs.jboss.org/hibernate/annotations/3.5/reference/en/html_single/中文:http://docs.jboss.org/hibernate/annotations/3.4/reference/zh_cn/html_single/下载:hibernate annotation 3.4.0 GA得到:hibernate-annotations.jar hibernate-commons-annotation.jar ejb3-persistenc... 阅读全文
posted @ 2013-07-03 17:04 踏上原路 阅读(173) 评论(0) 推荐(0) 编辑

上一页 1 ··· 4 5 6 7 8