Flex -> JDK8: Unable to Resolve javax.swing ?
来源:互联网 发布:运动控制软件有哪些 编辑:程序博客网 时间:2024/06/05 22:36
JDK8: Unable to Resolve javax.swing ?
The other day I was running an OSGi project with JDK8 and noticed, that the javax.swing package could not be found. This worked in JDK7. Switching to JDK8 in osgisnippets was leading to the following error, when Swing is about to be loaded:
The reason is simple: A Felix version was used, which does not know about JDK8. Upgrading to a newer version like org.apache.felix.main-4.2.1.jar solves the issue.
The OSGi framework makes java.* packages available automatically. The JDK contains several packages outside the java.* namespace such as javax.swing or org.xml.sax, which are made available too, but specific to the Java version. The felix main jar contains a file default.properties which also defines the exported packages for each Java version. So felix detected jre-1.8, but in the default.properties file of v4.0.2 there is no entry for that. Hence all the extra JRE packages (other than java.*) were not exported.
Resources
- Apache Felix: http://felix.apache.org/
- Source code of OSGi snippets is at the project site:
https://sourceforge.net/projects/osgisnippets/
- Flex -> JDK8: Unable to Resolve javax.swing ?
- Unable to resolve target
- Unable to resolve target
- unable to resolve module
- Unable to resolve host
- javax.naming.NameNotFoundException: Unable to resolve 'jdbc.mydb'. Resolved 'jdbc'; remaining name '
- javax.naming.NameNotFoundException: Unable to resolve 'jdbc.mydb'. Resolved 'jdbc'; remaining name
- unable to resolve ... for transcoding
- fsck.ext3:Unable to resolve
- fsck.ext3:unable to resolve
- Unable to resolve superclass of ***
- sudo: unable to resolve host ****
- Unable to resolve target 'android
- unable to resolve target “android_8”
- unable to resolve host address
- sudo: unable to resolve host
- sudo: unable to resolve host
- Ubuntu-unable to resolve host
- "黑魔法"Method Swizzling和IMP指针
- C语言基础测试题02
- ViewPager数据加载错乱的问题
- 如何在LINUX VPS上安装VPN详细步骤
- quick-cocos2d-x源文件编译及加密详解
- Flex -> JDK8: Unable to Resolve javax.swing ?
- easyui重载数据表格当前页面脚本发生错误
- 职责链模式(一):采购单的分级审批
- Android SurfaceView 详解(一)
- sql语句中的数字不需要用引号,会影响效率
- poj 3237 Tree 【LCA or 树链剖分】
- 常见内存错误
- OS X10.9 环境下部署 QT5.3.1 常见的编译问题
- oracle 实现多字段匹配一个关键字查询语句