`
milk_36
  • 浏览: 118591 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Eclipse 3.5 编译错误 :The type LineSeparator is not accessible due to ..\rt.jar

阅读更多

今天要弄个xml的解析,同事已经有一个写好的用例了.就直接拿过来用了!

但是导入eclipse后,确发现他用的几个xml解析类被提示编译错误!我找了很久,发现jdk的包我也是有的,但是编译器就是报错!


后来找到相关的一片文章说到了解决方法:

http://stackoverflow.com/questions/1517619/eclipse-3-5-1-compiler-error-the-type-outputformat-is-not-accessible-due-to-rest

大致内容是说,用了一个com.sun的包,兼容性减低了(因为其他的jdk版本可能不包含这内容) ,

如果需要使用 Apache Xerces-J ,还是直接去apache下载相关的包比较好!

 

另外一种方法就是,修改eclipse编译器的警告等级:

 The default configuration of the Eclipse compiler is too restrictive. You can loosen it up by opening the preferences for Java -> Compiler -> Errors/Warnings and under "Deprecated and restricted API" change the setting of "Forbidden reference (access rules)" from error to warning or ignore.

(看不明,找个翻译软件就明白了!)给个图吧!

 

 就是把这个error改成warning就可以了!但是还是建议直接使用外部的包比较好!

  • 大小: 5.6 KB
  • 大小: 7.4 KB
分享到:
评论

相关推荐

    Window系统无法调用OpenCV报错Directory separator should not appear in library name

    Window系统无法调用OpenCV代码报错:java.lang.UnsatisfiedLinkError: Directory separator should not appear in library name: C:\Windows\System32\opencv_java343.dll。出现该问题主要是安装的Windows系统缺乏...

    EurekaLog_7.5.0.0_Enterprise

    4)....Added "--el_injectjcl", "--el_createjcl", and "--el_createdbg" command-line options for ecc32/emake to inject JEDI/JCL debug info, create .jdbg file, and create .dbg file (Microsoft debug format...

    android java.lang.IllegalArgumentException contains a path separator

    NULL 博文链接:https://denghuijia1314521-gmail-com.iteye.com/blog/1341258

    Radmin自动登录器v3.0-多国语言绿色版-Release1-20150615

    为了在功能和稳定性方面进一步提高和改进,v2.0版使用VC++ Unicode(MFC)编程,程序在编译时已经集成了VC运行库,可独立运行。 由于MFC越益臃肿笨重,为了提高稳定性和效率,v3.0版使用WTL VC++ Unicode编程,程序...

    Oracle sqldeveloper without jdk (win+linux)

    Due to bug #5088284 in the JDBC 10.2 driver, the database character set ZHT16HKSCS31 is currently not supported. Support for displaying and entering characters in scripts outside of the ASCII ...

    Sakemail

    Some stupid mail servers put tabs in some fields (CC:, TO:) when they want to make a new line, the correct is to put at least a space in the beginning of the line, added a little code to "...

    Radmin自动登录器v3.0

    为了在功能和稳定性方面进一步提高和改进,v2.0版使用VC++ Unicode(MFC)编程,程序在编译时已经集成了VC运行库,可独立运行。 由于MFC越益臃肿笨重,为了提高稳定性和效率,v3.0版使用WTL VC++ Unicode编程,程序...

    php.ini-development

    Note: This directive is hardcoded to Off for the CLI SAPI ; Default Value: Off ; Development Value: 4096 ; Production Value: 4096 ; http://php.net/output-buffering output_buffering = 4096 ; You can ...

    python3.6.5参考手册 chm

    PEP 451: A ModuleSpec Type for the Import System Other Language Changes New Modules asyncio ensurepip enum pathlib selectors statistics tracemalloc Improved Modules abc aifc argparse ...

    au3反编译源码

    au3反编译源码 myAut2Exe - The Open Source AutoIT Script Decompiler 2.9 ======================================================== *New* full support for AutoIT v3.2.6++ :) ... mmh here's what I ...

    使用System.getProperty(line.separator).md

    这是本人在进行使用递归替换HTML文件中的图片内容时,所遇到的问题解决方案,喜欢能够帮到大家,让自己懂得东西越来愈多,做更多的分享

    Ext Js权威指南(.zip.001

    4.2.1 平台检测工具:ext.is / 107 4.2.2 当前运行环境检测工具:ext.supports / 109 4.3 ext js的静态方法 / 112 4.3.1 概述 / 112 4.3.2 ext.object中的静态方法 / 113 4.3.3 ext.function中的静态方法 / ...

    Working with JavaFX UI Components.pdf

    In this tutorial, you learn how to build user interfaces in your JavaFX applications with the UI components available through the JavaFX API. 介绍了JavaFX所有UI控件。目录如下: 1. What Is New 2. ...

    pgrep [Win]

    Search for PATTERN in each FILE or standard input and output a paragraph separated by separator. Example: python pgrep.py -i 'hello world' menu.h main.c OPTIONS: -c, --count Suppress normal output; ...

    Delphi7.1 Update

    TClientDataSet allocates values against nested dataset AutoInc fields but it should not (Quality Central 5509).* When using a TimeStamp type parameter with a TClientDataSet an error occurs when the ...

    9异常,系统属性,Math类.rar

     ●file.separator:文件分隔符,Windows环境下为“",Unix环境下为“/”;  ●user.home:用户主目录;  ●java.home:Java实时运行环境的安装目录;  ●java.ext.dirs:JDK的安装目录;  ●os.name:操作...

    pdfbox-2.0.7.jar

    String path=imgDir+File.separator; if(new File(path).exists()==false){ new File(path).mkdirs(); } ImageIO.write(image, "PNG", new File(imgDir+File.separator+i+".png")); }...

    MaTeX v1.6.3

    The size of vertical borders is slightly different now: use LineSpacing -> {0, 14.4} to reproduce the older behaviour Bug fixes in line height and baseline calculation Downloads 14 KB MaTeX.m ...

    numpad-decimal-separator:从 code.google.compnumpad-decimal-separator 自动导出

    1.1.4 介绍 使用这个 jQuery 插件,您可以配置用于小键盘小数点分隔符的字符。 这个插件是用 jsTestDriver 和 jasmine 测试的。 依赖关系 jQuery ( ) jQuery 扩展函数 numpadDecSeparator 这个函数有三个选项: ...

    CentOS7.2.1511 gcc4.8.5 通过编译的 tfs2.2.16

    client_request_server.cpp:167:21: error: 'abs' is not a member of '__gnu_cxx' stat[3] = __gnu_cxx::abs(out.size() - block_count); 解决:替换成cstdlib的abs 问题: meta_server_service.cpp:1584:48: ...

Global site tag (gtag.js) - Google Analytics