---
title: "Compiler internal error. Process terminated with exit code 4"
author: "IThead"
date: "2012-11-28T14:02:35Z"
tags: []
categories: ["企业架构"]
slug: "compiler-internal-error-process-terminated-with-exit-code-4"
draft: false
lastmod: "2012-11-28T14:05:38Z"
id: 1736183
url: "https://ithead.iteye.com/blog/1736183"
---

IDEA编译异常：
编译器 (1.5.0_09) 中出现异常。 如果在 Bug Parade 中没有找到该错误，请在 Java Developer Connection (http://java.sun.com/webapps/bugreport)  对该错误进行归档。 请在报告中附上您的程序和以下诊断信息。谢谢您的合作。
java.nio.BufferOverflowException
at java.nio.Buffer.nextPutIndex(Buffer.java:419)
...
Compiler internal error. Process terminated with exit code 4

<span style="color:red">解决办法：</span>
从google里面找了几个方法尝试都不行，最后发现，是项目的编码是utf-8问题，在IDEA的Settings ——> File Encoding 中，将编码都设置成utf-8，问题解决。

![](http://dl.iteye.com/upload/attachment/0077/1724/c5bea863-edfe-368b-bf8e-a2e0db7cdf35.jpg)