- 浏览: 3437522 次
- 性别:
- 来自: China
文章分类
- 全部博客 (536)
- ajax (1)
- Algorithm (14)
- Android (40)
- CSS/HTML... (2)
- defy (3)
- DesignPattern (2)
- dorado (0)
- Drools (6)
- English/日本語 (7)
- Flex (2)
- Framework (0)
- Google (3)
- hibernate (13)
- homework (3)
- HTML5 (0)
- IDE (29)
- java (45)
- javaee (7)
- Javascript (14)
- java组件 (5)
- jQuery (4)
- jsp (8)
- jsf (2)
- Linux (2)
- lucene (0)
- mysql (6)
- news (3)
- Oracle (8)
- other (4)
- PHP (5)
- Python (0)
- Software Engineering (3)
- spring (7)
- struts1.x (14)
- struts2.x (14)
- strolling in cloud (1)
- subject:javaEnhance (20)
- Tomcat (7)
- validator (3)
- 学习·方法·心得 (8)
- .NET (2)
- vba (6)
- groovy (5)
- grails (2)
- SWT (0)
- big data (1)
- perl (1)
- objective-c (50)
- product (1)
- mac (7)
- ios (188)
- ios-phone (2)
- ios-system (15)
- ios-network (5)
- ios-file (4)
- ios-db (1)
- ios-media (3)
- ios-ui (27)
- ios-openSource (6)
- ios-animation (5)
- ios-drawing (7)
- c (2)
- ios-app (2)
- ios-course (15)
- ios-runtime (14)
- ios-code (8)
- ios-thread (8)
- ios-LBS (2)
- ios-issue (1)
- ios-design (2)
- Jailbreak (2)
- cocos2d (0)
- swift (16)
- ios-framework (4)
- apple watch (4)
- ios-web (1)
- react native (3)
- TVOS (1)
- OpenGL (1)
最新评论
-
xiaobinggg:
...
Session机制详解 -
菜鸟学生会:
Drools规则工作流引擎开发教程网盘地址:http://pa ...
Drools入门-----------环境搭建,分析Helloworld -
wangyudong:
不是很好用,不支持自动化测试RESTful API,也不支持自 ...
Simple REST Client POST使用方法 -
Paul0523:
很棒的一篇文章,感谢楼主分享
Session机制详解 -
啸笑天:
获取原型对象的三种方法<script>functi ...
复习JavaScript面向对象技术
Failed to create the Java Virtual Machine
- 博客分类:
- IDE
今天从eclipse官网下载了一个Eclipse IDE For Java EE Developers,
版本:eclipse-jee-indigo-SR1-win32
自己电脑上装的jdk版本是:1.6.0_20 (环境变量配置正确!)
解压后启动,发现弹出提示框“ Failed to create the Java Virtual Machine”
解决方法:
1 java虚拟机初始化失败!寻找eclipse解压路径,打开\eclipse-jee-indigo-SR1-win32\eclipse目录下的eclipse.ini
2
打开寻找初始化。虚拟机为java永久生成对象(Permanate generation)如,class对象、方法对象这些可反射(reflective)对象分配内存限制设置(原256,设置为128)
注意:此处设置不可太小,且有两处,图中已有标注
3 保存重启eclipse。
说明:PermSize和MaxPermSize指明虚拟机为java永久生成对象(Permanate generation)等这些可反射(reflective)对象分配内存限制,这些内存不包括在Heap(堆内存)区之中。
-Xms128m
表示JVM Heap(堆内存)最小尺寸128MB,初始分配
-Xmx512m
表示JVM Heap(堆内存)最大允许的尺寸256MB,按需分配。
-XX:PermSize=64MB 最小尺寸,初始分配
-XX:MaxPermSize=256MB 最大允许分配尺寸,按需分配
过小会导致:java.lang.OutOfMemoryError: PermGen space
另一个解决方法:(没试)
参考:http://wiki.eclipse.org/Eclipse.ini
修改一下Eclipse.ini,在其中加入
-vm
D:/Java/bin/javaw.exe
保存后,打开Eclipse就正常了.其中D:/Java/bin/javaw.exe是我的Java虚拟机路径.
一般出现这种情况跟安装了多个Java虚拟机有关吧,所以会出现这个情况,指定一个就解决了。
发表评论
-
OS X中Java版本管理工具jEnv
2017-02-14 00:47 1181我们经常需要在Mac中用到多个版本的JDK,6 ... -
非侵入性的Carthage包管理工具
2015-12-16 15:46 1725https://github.com/Cart ... -
iOS界面调试工具Reveal
2015-08-19 20:34 2791iOS界面调试工具Reveal http:// ... -
Origami五分钟入门秘籍
2015-05-27 20:02 1123早在Facebook推出Facebook ... -
Sketch设计工具
2015-05-27 19:59 792http://www.sketchcn.com/ http ... -
File Templates & Project Templates
2014-06-13 23:32 1836XcodeTemplates File Template ... -
CocoaPods 第三方库管理工作
2014-01-05 21:30 1622https://github.com/cocoapods/ ... -
Objective-C static libraries with categories
2014-01-05 21:14 1228参考:https://developer.apple.co ... -
Simple REST Client POST使用方法
2013-12-07 01:02 6357工具地址:https://chrome.google.co ... -
Java Decompiler
2013-12-07 00:41 1066mac 的 java反编译工具 -
矢量绘图工具,自动生成CG代码
2013-11-09 13:46 17281、PaintCode http://www.pain ... -
实用xcode5
2013-09-24 02:22 207371、新xcode 如果你遇到 ... -
GIT和SVN之间的五个基本区别
2013-09-17 11:42 1189如果你在读这篇文章,说明你跟大多数开发者一样对GIT感兴趣 ... -
免费的私人代码托管(bitbucket) 和 常用git指令
2013-09-02 17:31 8352今天想找个免费的私人代码托管平台,github,googl ... -
使用Uncrustify在Xcode中格式化Objective-C代码
2013-06-14 22:40 7285from:tinyfool的新杂志 Xcode是开发iO ... -
svn 上传.a 文件
2013-03-03 15:00 58931. 在每个用户主文件夹下有一个名为.subversion ... -
mac下eclipse的svn插件的安装
2012-12-26 22:32 21352一、 在Eclipse上安装svn插件有两种选择,一种是Su ... -
Xcode4.2 本地化 总结
2012-07-17 09:05 13671 xcode4.2,如果是简体中文,把国际化的文件放到zh ... -
eclipse全屏插件
2011-06-19 20:21 2382项目地址:http://code.google.com/p/e ... -
Eclipse 积累
2011-04-19 16:30 1169Eclipse对静态导入还不能自动插入导入语句。 解决方 ...
相关推荐
Eclipse运行时提示failed to create the java virtual machine 解决方法方法
主要介绍了解决Eclipse启动出错:Failed to create the Java Virtual Machine的相关资料,这里说明出错原因及查找错误和解决办法,需要的朋友可以参考下
主要介绍了Eclipse 开发java 出现Failed to create the Java Virtual Machine错误解决办法的相关资料,需要的朋友可以参考下
eclipse failed to create the java virtual machine 问题图文解析_收藏
Java Virtual Machine.xmind
假如你机器的内存不大,改大该参数的值,会导致MemoryAnalyzer启动时,报错:Failed to create the Java Virtual Machine。 2.当你导出的dump文件的大小大于你配置的1024m(说明1中,提到的配置:-vmargs– Xmx1024m...
假如你机器的内存不大,改大该参数的值,会导致MemoryAnalyzer启动时,报错:Failed to create the Java Virtual Machine。 2.当你导出的dump文件的大小大于你配置的1024m(说明1中,提到的配置:-vmargs– Xmx1024m...
was to create something that would help people of mixed backgrounds get up to speed on Docker as quickly as possible, but in such a way that they understand the underlying mechanisms. The hope is that...
解决virtualbox 不能为虚拟电脑打开一个新任务、修复Genymotion打不开问题 解决virtualbox 不能为虚拟电脑打开一个新任务、修复Genymotion打不开问题
The main reason for making a virtual function inline is to place its definition in the class, either for convenience or to document its behavior, e.g., for accessors and mutators. The -inl.h Files...
LSIP200232870 (DFCT) Add a Gen2 to Gen3 toggle function and a check for the PCI speed to MegaSCU/CLI [ PR : LSIP200231423 ] LSIP200232927 (DFCT) Port PR 198414 to MR5.4 (Headless Boot) ...
Thepath "/usr/share/doc/vmware-tools" does not exist currently.Thisprogram isgoing to create it, including needed parent directories.Isthis what you want? [yes] The installation of VMware Tools 5.5.1 ...
In addition to the default Bochs method using the CTRL key and the middle mouse button there are now the choices: - CTRL+F10 (like DOSBox) - CTRL+ALT (like QEMU) - F12 (replaces win32 'legacyF12'...
For example, you can run a system cleanup test that will restart the machine on which an automated test failed. Alternatively, you can create a system test to retrieve information about a machine's ...
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...
gpiochip_add: gpios 352..353 (GPIOM) failed to register NET: Registered protocol family 16 MINI2440: Option string mini2440=0tb MINI2440: LCD [0:240x320] 1:800x480 2:1024x768 S3C2440: Initialising ...
= '#'){ //the sub cmd end by '#' while(buf[i] != 'x' && buf[i] != ':' && buf[i] != '#') { if((i+1) > buf_len) return 0; *((char*)cmd + n*lenght + j++) = buf[i++]; …… } R:\wyb\gc2145_tinav...