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

[ERROR] Failure executing javac, but could not parse the error: [ERROR] java

阅读更多
maven 打包编译异常
Compilation failure
Failure executing javac, but could not parse the error:
编译器 (1.6.0_21) 中出现异常。 
java.nio.BufferOverflowException
解决方案:
1、设置内存占用大小:MAVEN_OPTS=-Xmx512m。
2、设置编译编码
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
<!-- 增加字符编码,要与项目编码一致 -->
<encoding>UTF-8</encoding>
</configuration>
</plugin>

可能原因是由于字符集不统一,使用GBK、UTF-8或者UTF-16导致使用多字节存放字符,内存使用增加,堆(heap)的尺寸无法提供程序所需的空间,造成异常。更深入的分析还在进行中。
分享到:
评论

相关推荐

    erlang-script.rpm.sh

    erlang-script.rpm 安装mq前的依赖 来源:https://packagecloud.io/rabbitmq/erlang/install#bash-rpm

    maven settings.xml 解决在项目新建时报错,Error executing Maven. 2 problems

    maven settings.xml 解决在项目新建时报错 Error executing Maven. 2 problems were encountered while building the effective settings。下载这个,注意54行的目录,修改成自己的项目目录,直接覆盖原来的\conf...

    Hibernate错误及解决办法集合

    本人做系统时遇到的一些Hibernate问题及解决方案。

    Python-FixIDAPython修复IDA加载IDAPython时出现的错误

    FixIDAPython - 修复IDA加载IDAPython时出现的错误

    acpi控制笔记本风扇转速

    ResourceTemplate, but cannot be disassembled as such because the EndTag does not appear at the very end of the buffer. AcpiExec - Added the "-t" command line option to enable the serialized mode of ...

    微软内部资料-SQL性能优化3

    For example, a second transaction traversing the doubly linked list mentioned above would see the list before or after the insert, but it will see only complete changes. Durability After a ...

    2009 达内Unix学习笔记

    集合了 所有的 Unix命令大全 ...telnet 192.168.0.23 自己帐号 sd08077-you0 ftp工具 192.168.0.202 tools-toolss ... 各个 shell 可互相切换 ksh:$ sh:$ csh:guangzhou% bash:bash-3.00$ ... 命令和参数之间必需用空格隔...

    Neo4j Java Reference 3.0

    Neo4j Java Reference 3.0

    swingx包

    &lt;br&gt;If jUnit is not properly configured, you may get an error like this: BUILD FAILED c:\swingx\nbproject\build-impl.xml:407: Following error occured while executing this line c:\\...

    Java2核心技术卷I+卷2:基础知识(第8版) 代码

    Java 核心技术 卷1 Index Chapter 1: An Introduction to Java 1 Java As a Programming Platform 2 The Java “White Paper” Buzzwords 2 Java Applets and the Internet 7 A Short History of Java 9 ...

    ruby and watir 安装指南

    I am not sure when this started to occur, but the documentation on the site is lacking. answer: 3 down vote accepted On Windows XP (Professional, Version 2002, Service Pack 3, fully pathched) I ...

    import-html-entry:HTML输入原始码

    HTML条目原始分析 文章发布于,通过对比JS Entry,... &lt;!... &lt;...-- mark the entry script with entry attribute --&gt; &lt; script src =" https://unpkg.com/mobx@5.0.3/lib/mobx.umd.js " entry &gt; &lt;/ sc

    Google C++ Style Guide(Google C++编程规范)高清PDF

    For example, if your header file uses the File class in ways that do not require access to the declaration of the File class, your header file can just forward declare class File; instead of having ...

    jsp java access跨平台组件

    java是跨平台的,但是数据库不是, ...HXTT Access Version 3.2 For Evaluation Purpose allows executing not more than 50 queries once. You can order it from . 所以使用时请大家支持正版!自行购买!

    Executing SOA (执行SOA)2008

    Executing SOA (执行SOA)2008

    php.ini-development

    An empty string can be denoted by simply not writing anything after the equal ; sign, or by using the None keyword: ; foo = ; sets foo to an empty string ; foo = None ; sets foo to an empty string ;...

    Using LUA with Visual C++ (Introduction)

    Executing an LUA script isn't that straight-forward at first but at the end it turns out the be very simple. I'm explaining you the full implementation of how to execute a script by creating your own ...

    视图切换问题

    Compiling... ControlTree.cpp e:\newpaintgraph\newpaintgraph\newpaintgraphview.h(23) : error C2143: syntax error : missing ';...Error executing cl.exe. NewPaintGraph.exe - 3 error(s), 0 warning(s)

    The Definitive Guide to JSF in JavaEE8 2018

    The Definitive Guide to JSF in Java EE 8 pdf Learn and master the new features in the JSF 2.3 MVC web framework in this definitive guide written by two of the JavaServer Faces (JSF) specification ...

    微软内部资料-SQL性能优化5

    There is also a column for the first page of the table, but this is not guaranteed to be reliable. SQL Server can find all pages belonging to an index or table by examining the IAM pages. Sysindexes...

Global site tag (gtag.js) - Google Analytics