关于eclipse启动时报Failed to create the Java Virtural Machine.错误的解决方案

简介: <p>最近媳妇在学习android的开发,我给她把环境搭好以后。在网上下载了一个最新的eclpse,在启动的时候报错:<span style="color:#ff0000">Failed to create the Java Virtural Machine.</span></p> <p>翻译一下,其意思就是说打开eclipse的失败原因是创建java虚拟机失败!</p> <p>一般在

最近媳妇在学习android的开发,我给她把环境搭好以后。在网上下载了一个最新的eclpse,在启动的时候报错:Failed to create the Java Virtural Machine.

翻译一下,其意思就是说打开eclipse的失败原因是创建java虚拟机失败!

一般在启动的时候,出错,基本上除了虚拟机出错,就是jdk配置出错。

问题截图:


看原来的配置文件eclipse.ini的内容:


看最后一行“-XX:MaxPermSize=512M”改为256即可。

在看看找不到jdk启动报错的另外一个截图:


同样的找到eclipse.ini文件,改其中的配置E:/Program Files/Java/jdk1.6.0_05/bin/javaw.exe为你自己安装jdk的位置即可。

如我的jdk安装在C盘中,即改为:C:/Program Files/Java/jdk1.6.0_05/bin/javaw.exe,再次启动成功了。

改后的截图:


好的,问题已经解决,大家如果还有什么问题,请留言。欢迎大家关注我的博客!!


目录
相关文章
|
7月前
|
网络协议 Java Shell
java spring 项目若依框架启动失败,启动不了服务提示端口8080占用escription: Web server failed to start. Port 8080 was already in use. Action: Identify and stop the process that’s listening on port 8080 or configure this application to listen on another port-优雅草卓伊凡解决方案
java spring 项目若依框架启动失败,启动不了服务提示端口8080占用escription: Web server failed to start. Port 8080 was already in use. Action: Identify and stop the process that’s listening on port 8080 or configure this application to listen on another port-优雅草卓伊凡解决方案
341 7
|
10月前
|
JSON Java 关系型数据库
Java更新数据库报错:Data truncation: Cannot create a JSON value from a string with CHARACTER SET 'binary'.
在Java中,使用mybatis-plus更新实体类对象到mysql,其中一个字段对应数据库中json数据类型,更新时报错:Data truncation: Cannot create a JSON value from a string with CHARACTER SET 'binary'.
1024 4
Java更新数据库报错:Data truncation: Cannot create a JSON value from a string with CHARACTER SET 'binary'.
|
10月前
|
Java Android开发
Eclipse Java 构建路径
Eclipse Java 构建路径
127 3
|
10月前
|
Java Linux Windows
Java“Could Not Create Java Virtual Machine”解决
当在Java中遇到“Could Not Create Java Virtual Machine”错误时,通常是由于内存设置不当、Java版本不兼容、类路径错误或操作系统限制等原因导致JVM无法启动。解决方法包括调整内存参数、确认Java版本兼容性、检查类路径和启动参数、以及检查用户权限和文件系统。
4063 1
|
Java 编译器
Error:java: Compilation failed: internal java compiler error
Error:java: Compilation failed: internal java compiler error
1181 1
|
Android开发
Cannot create android app from an archive...containing both DEX and Java-bytecode content
Cannot create android app from an archive...containing both DEX and Java-bytecode content
121 2
|
Java 网络安全 开发工具
新手入门Java。如何下载Eclipse、写出最基本的“Hello word”以及如何连接github并且上传项目。
新手入门Java。如何下载Eclipse、写出最基本的“Hello word”以及如何连接github并且上传项目。
163 0
Unable to create tempDir. java.io.tmpdir is set to /tmp
Unable to create tempDir. java.io.tmpdir is set to /tmp
140 0
|
数据采集 Java Linux
Java异常之【sun.security.validator.ValidatorException: PKIX path building failed: sun.security...】
Java异常之【sun.security.validator.ValidatorException: PKIX path building failed: sun.security...】
475 0
Java异常之【sun.security.validator.ValidatorException: PKIX path building failed: sun.security...】
|
IDE Java 开发工具
06. 【Java教程】Java 集成开发环境 - Eclipse
06. 【Java教程】Java 集成开发环境 - Eclipse
202 1

推荐镜像

更多