---
title: "在linux的eclipse无法在控制台输入"
author: "showcup"
date: "2008-12-19T18:58:24Z"
tags: []
slug: "linux-eclipse"
draft: false
lastmod: "2008-12-19T18:58:24Z"
id: 297735
url: "https://showcup.iteye.com/blog/297735"
---

在linux平台中的eclipseIDE中运行如下代码：

```java

public static void main(String[] args) throws IOException {
		System.out.println("please input register name:");
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		System.out.println(reader.readLine());
		
	}

```


然后在在eclipse的console中尝试输入一些字符，确无奈根本就输入表了，把这段代码在终端运行，终端中完全允许输入，请问哪里需要设置什么嘛！