无法创建Java虚拟机实例,Jdeveloper 10g
Posted
技术标签:
【中文标题】无法创建Java虚拟机实例,Jdeveloper 10g【英文标题】:Unable to create an instance of Java virtual machine, Jdeveloper 10g 【发布时间】:2018-10-27 20:31:18 【问题描述】:我是新手。我正在启动旧版本的 JDeveloper;但我无法启动这个版本。
第一次:我有这个对话框。
注意:我使用的是cmder
。
这里是日志
C:\jdevstudio10134\jdev\bin
λ jdev -verbose
JNI Option: -Dide.product=oracle.jdeveloper
JNI Option: -Dide.splash.screen=splash.gif
JNI Option: -Xverify:none
JNI Option: -XX:MaxPermSize=512M
JNI Option: -Xmx1024M
JNI Option: -XX:JavaPriority10_To_OSPriority=10
JNI Option: -XX:JavaPriority9_To_OSPriority=9
JNI Option: -Dice.browser.forcegc=false
JNI Option: -Dice.pilots.html4.tileOptThreshold=0
JNI Option: -Xbootclasspath/p:../lib/lwawt.jar
JNI Option: -Dreserved_filenames=con,aux,prn,lpt1,lpt2,lpt3,lpt4,lpt5,lpt6,lpt7,lpt8,lpt9,com1,com2,com3,com4,com5,com6,com7,com8,com9,conin$,conout$
JNI Option: -DEDITOR_J2SE_VERSION=1.5
JNI Option: -DINSIGHT_OMIT_HIDDEN=true
JNI Option: -Doracle.xdkjava.compatibility.version=9.0.4
JNI Option: -Doracle.translated.locales=ja
JNI Option: -Dwindows.shell.font.languages=en
JNI Option: -Dide.debug.controller.stack=false
JNI Option: -Dceditor.java.parse.small=300
JNI Option: -Dceditor.java.parse.large=1500
JNI Option: -Dide.extension.cpmissing.nowarn=true
JNI Option: -Dcompiler.vmargs=-mx512m
JNI Option: -Doracle.soap.transport.noHTTPClient=true
JNI Option: -Djbo.debugoutput=silent
JNI Option: -Djbo.showdebugwarningbanner=false
JNI Option: -Djava.library.path=C:\OtrosProgramas\cmder\bin;C:\OtrosProgramas\cmder\vendor\conemu-maximus5\ConEmu\Scripts;C:\OtrosProgramas\cmder\vendor\conemu-maximus5;C:\OtrosProgramas\cmder\vendor\conemu-maximus5\ConEmu;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Dell\Dell Data Protection\Drivers\TSS\bin\;C:\Program Files (x86)\Skype\Phone\;C:\Program Files\NetBeans 8.1\java\maven\bin;C:\Program Files\Java\jdk1.6.0_45\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Git\cmd;C:\Program Files\EmEditor;C:\Program Files\Git\usr\bin;C:\Program Files\Git\usr\share\vim\vim74;C:\OtrosProgramas\cmder\;..\lib\ext;..\..\lib
JNI Option: -Dide.user.dir=
JNI Option: -Dide.startingArg0=C:\jdevstudio10134\jdev\bin\jdev.exe
JNI Option: -Dide.startingArg1=-verbose
JNI Option: -Dide.launcherProcessId=7644
JNI Option: -Dide.config_pathname=C:\jdevstudio10134\jdev\bin\jdev.conf
JNI Option: -Dide.startingcwd=C:\jdevstudio10134\jdev\bin
JNI Option: -Dide.shell.fileTypeKeyDefined=true
JNI Option: -Dide.shell.enableFileTypeAssociation=true
JNI Option: -Djava.class.path=..\lib\jdev-loader.jar
JNI Option: -Djdev.class.path=..\..\..\classes;..\..\ide\lib\javax-ide.jar;..\..\ide\lib\javatools.jar;..\..\ide\lib\ide.jar;..\..\jlib\jewt4.jar;..\..\jlib\share.jar;..\..\jlib\help4.jar;..\..\jlib\inspect4.jar;..\..\lib\xmlparserv2.jar;..\..\jdbc\lib\orai18n.jar;..\lib\jdev-ep.jar;..\..\jdk\lib\tools.jar;..\..\jdk\lib\dt.jar
JNI Option: -Djava.system.class.loader=oracle.ideimpl.IdeClassLoader
JVM path is ..\..\jdk\jre\bin\client\jvm.dll
Error occurred during initialization of VM
Could not reserve enough space for object heap
C:\jdevstudio10134\jdev\bin
λ
现在验证文件jdev.conf
C:\jdevstudio10134\jdev\bin
λ cat -n jdev.conf | grep AddVMOption
40 AddVMOption -Dide.product=oracle.jdeveloper
45 AddVMOption -Dide.splash.screen=splash.gif
82 # AddVMOption -DVFS_ENABLE=true
90 AddVMOption -Xverify:none
96 #AddVMOption -Xmx756M
98 #AddVMOption -XX:MaxHeapSize=1024m
109 AddVMOption -XX:MaxPermSize=512M
110 AddVMOption -Xmx1024M
118 AddVMOption -XX:JavaPriority10_To_OSPriority=10
119 AddVMOption -XX:JavaPriority9_To_OSPriority=9
124 # AddVMOption -XX:+UseConcMarkSweepGC
125 # AddVMOption -XX:+UseParNewGC
132 # AddVMOption -XOd
138 # AddVMOption -Xsinglecpu
144 # AddVMOption -Dsun.java2d.noddraw=true
152 # AddVMOption -Dapplication.handle.help=true
160 # AddVMOption -Dno.shell.integration=true
165 AddVMOption -Dice.browser.forcegc=false
170 AddVMOption -Dice.pilots.html4.tileOptThreshold=0
177 # AddVMOption -Xbootclasspath/p:../../jdk/jre/lib/patches/rtpatch.jar
182 AddVMOption -Xbootclasspath/p:../lib/lwawt.jar
202 # AddVMOption -Xheapbase100000000
207 AddVMOption -Dreserved_filenames=con,aux,prn,lpt1,lpt2,lpt3,lpt4,lpt5,lpt6,lpt7,lpt8,lpt9,com1,com2,com3,com4,com5,com6,com7,com8,com9,conin$,conout$
211 AddVMOption -DEDITOR_J2SE_VERSION=1.5
217 AddVMOption -DINSIGHT_OMIT_HIDDEN=true
224 # AddVMOption -Dbuffer.deadlock.detection=true
230 # AddVMOption -Dice.pilots.html4.ignoreNonGenericFonts=true
235 AddVMOption -Doracle.xdkjava.compatibility.version=9.0.4
251 AddVMOption -Doracle.translated.locales=ja
265 AddVMOption -Dwindows.shell.font.languages=en
271 AddVMOption -Dide.debug.controller.stack=false
279 # AddVMOption -Drmi.disablePropagation=true
290 AddVMOption -Dceditor.java.parse.small=300
298 AddVMOption -Dceditor.java.parse.large=1500
308 AddVMOption -Dide.extension.cpmissing.nowarn=true
315 AddVMOption -Dcompiler.vmargs=-mx512m
326 AddVMOption -Doracle.soap.transport.noHTTPClient=true
332 AddVMOption -Djbo.debugoutput=silent
333 AddVMOption -Djbo.showdebugwarningbanner=false
C:\jdevstudio10134\jdev\bin
λ
评论 109
和 110
行,因为我对标准感到困惑。
#AddVMOption -XX:MaxPermSize=512M
#AddVMOption -Xmx1024M
我明白了:
但在幕后:
C:\jdevstudio10134\jdev\bin
λ jdev -verbose
JNI Option: -Dide.product=oracle.jdeveloper
JNI Option: -Dide.splash.screen=splash.gif
JNI Option: -Xverify:none
JNI Option: -XX:JavaPriority10_To_OSPriority=10
JNI Option: -XX:JavaPriority9_To_OSPriority=9
JNI Option: -Dice.browser.forcegc=false
JNI Option: -Dice.pilots.html4.tileOptThreshold=0
JNI Option: -Xbootclasspath/p:../lib/lwawt.jar
JNI Option: -Dreserved_filenames=con,aux,prn,lpt1,lpt2,lpt3,lpt4,lpt5,lpt6,lpt7,lpt8,lpt9,com1,com2,com3,com4,com5,com6,
com7,com8,com9,conin$,conout$
JNI Option: -DEDITOR_J2SE_VERSION=1.5
JNI Option: -DINSIGHT_OMIT_HIDDEN=true
JNI Option: -Doracle.xdkjava.compatibility.version=9.0.4
JNI Option: -Doracle.translated.locales=ja
JNI Option: -Dwindows.shell.font.languages=en
JNI Option: -Dide.debug.controller.stack=false
JNI Option: -Dceditor.java.parse.small=300
JNI Option: -Dceditor.java.parse.large=1500
JNI Option: -Dide.extension.cpmissing.nowarn=true
JNI Option: -Dcompiler.vmargs=-mx512m
JNI Option: -Doracle.soap.transport.noHTTPClient=true
JNI Option: -Djbo.debugoutput=silent
JNI Option: -Djbo.showdebugwarningbanner=false
JNI Option: -Djava.library.path=C:\OtrosProgramas\cmder\bin;C:\OtrosProgramas\cmder\vendor\conemu-maximus5\ConEmu\Script
s;C:\OtrosProgramas\cmder\vendor\conemu-maximus5;C:\OtrosProgramas\cmder\vendor\conemu-maximus5\ConEmu;C:\Program Files
(x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:
\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)
\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Pro
gram Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Compo
nents\IPT;C:\Program Files\Dell\Dell Data Protection\Drivers\TSS\bin\;C:\Program Files (x86)\Skype\Phone\;C:\Program Fil
es\NetBeans 8.1\java\maven\bin;C:\Program Files\Java\jdk1.6.0_45\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\G
it\cmd;C:\Program Files\EmEditor;C:\Program Files\Git\usr\bin;C:\Program Files\Git\usr\share\vim\vim74;C:\OtrosProgramas
\cmder\;..\lib\ext;..\..\lib
JNI Option: -Dide.user.dir=
JNI Option: -Dide.startingArg0=C:\jdevstudio10134\jdev\bin\jdev.exe
JNI Option: -Dide.startingArg1=-verbose
JNI Option: -Dide.launcherProcessId=10956
JNI Option: -Dide.config_pathname=C:\jdevstudio10134\jdev\bin\jdev.conf
JNI Option: -Dide.startingcwd=C:\jdevstudio10134\jdev\bin
JNI Option: -Dide.shell.fileTypeKeyDefined=true
JNI Option: -Dide.shell.enableFileTypeAssociation=true
JNI Option: -Djava.class.path=..\lib\jdev-loader.jar
JNI Option: -Djdev.class.path=..\..\..\classes;..\..\ide\lib\javax-ide.jar;..\..\ide\lib\javatools.jar;..\..\ide\lib\ide
.jar;..\..\jlib\jewt4.jar;..\..\jlib\share.jar;..\..\jlib\help4.jar;..\..\jlib\inspect4.jar;..\..\lib\xmlparserv2.jar;..
\..\jdbc\lib\orai18n.jar;..\lib\jdev-ep.jar;..\..\jdk\lib\tools.jar;..\..\jdk\lib\dt.jar
JNI Option: -Djava.system.class.loader=oracle.ideimpl.IdeClassLoader
JVM path is ..\..\jdk\jre\bin\client\jvm.dll
*** Unable to find class oracle.tip.tools.ide.pm.addin.BPELOptions.
*** This object will be loaded as null.
java.lang.OutOfMemoryError: Java heap space
Exception in thread "Timer-0" java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
Exception in thread "Timer-2" Exception in thread "JavaProjectIndex1" java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
Exception in thread "Keyword Index Builder1" java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
oracle.javatools.util.ClosureException: java.lang.reflect.InvocationTargetException
at oracle.javatools.util.SwingClosure.run(SwingClosure.java:78)
at oracle.ideimpl.MainWindowImpl.postInitialize(MainWindowImpl.java:718)
at oracle.ide.IdeCore.startupImpl(IdeCore.java:1230)
at oracle.ide.Ide.startup(Ide.java:674)
at oracle.ideimpl.Main.start(Main.java:49)
at oracle.ideimpl.Main.main(Main.java:25)
Caused by: java.lang.reflect.InvocationTargetException
at java.awt.EventQueue.invokeAndWait(EventQueue.java:853)
at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1257)
at oracle.javatools.util.SwingClosure.run(SwingClosure.java:73)
... 5 more
Caused by: java.lang.OutOfMemoryError: Java heap space
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
我不知道如何解决这个问题。 如何解决?
编辑:这里是我的记忆状态:
C:\jdevstudio10134\jdev\bin
λ systeminfo | grep Memor
Memoria f▒sica disponible: 1.951 MB
Memoria virtual: tama▒o m▒ximo: 16.147 MB
Memoria virtual: disponible: 9.385 MB
Memoria virtual: en uso: 6.762 MB
C:\jdevstudio10134\jdev\bin
λ wmic OS get FreePhysicalMemory,FreeVirtualMemory,FreeSpaceInPagingFiles,TotalVisibleMemorySize /VALUE
FreePhysicalMemory=2066872
FreeSpaceInPagingFiles=8156216
FreeVirtualMemory=9704172
TotalVisibleMemorySize=8268212
C:\jdevstudio10134\jdev\bin
检查此 java 版本的选项:
C:\jdevstudio10134\jdev\bin
λ "\jdevstudio10134\jdk 14-11-2014\bin\java" -X
-Xmixed mixed mode execution (default)
-Xint interpreted mode execution only
-Xbootclasspath:<directories and zip/jar files separated by ;>
set search path for bootstrap classes and resources
-Xbootclasspath/a:<directories and zip/jar files separated by ;>
append to end of bootstrap class path
-Xbootclasspath/p:<directories and zip/jar files separated by ;>
prepend in front of bootstrap class path
-Xnoclassgc disable class garbage collection
-Xincgc enable incremental garbage collection
-Xloggc:<file> log GC status to a file with time stamps
-Xbatch disable background compilation
-Xms<size> set initial Java heap size
-Xmx<size> set maximum Java heap size
-Xss<size> set java thread stack size
-Xprof output cpu profiling data
-Xfuture enable strictest checks, anticipating future default
-Xrs reduce use of OS signals by Java/VM (see documentation)
-Xcheck:jni perform additional checks for JNI functions
-Xshare:off do not attempt to use shared class data
-Xshare:auto use shared class data if possible (default)
-Xshare:on require using shared class data, otherwise fail.
The -X options are non-standard and subject to change without notice.
C:\jdevstudio10134\jdev\bin
λ
【问题讨论】:
你的机器有多少内存?如果请求 512MB 的堆不起作用,我建议您根本没有足够的 RAM 来运行 JDeveloper(或任何最新的 IDE,就此而言)。 测试:AddVMOption -Xms512M
和 AddVMOption -Xmx1024M
检查这个***.com/a/12114284/1410223和这个indrayanblog.blogspot.com.co/2011/03/cxv.html
@chepelucho 为我提供您建议的选项。
这里有一个答案:***.com/a/3442360/1410223
【参考方案1】:
执行以下步骤可能会起作用,
-
进入控制面板->系统->高级系统设置->环境变量
您可能已经为 JDEV_USER_HOME 创建了新变量,如果没有这样做
变量名:JDEV_USER_HOME,值:U:\Jdev OAF\jdevhome\jdev(你有jdeveloper的地方)。
除此之外,对于上述错误,转到环境变量并选择路径变量,单击编辑。然后通过单击 New ----->'U:\LKQ_OAF\jdevbin\jdk\bin' 在此处再添加一条路径。
Please refer this image if you are not clear yet.
【讨论】:
【参考方案2】:使用以下导航路径访问桌面环境变量设置:
Control Panel->System->Advanced System Settings->Environmental Variables
更新“路径”设置以包含以下目录:
'\jdevbin\jdk\bin'
如果变量 JDEV_JAVA_HOME 存在,则删除它。
重新测试 jDeveloper 安装并确认错误已解决。
【讨论】:
以上是关于无法创建Java虚拟机实例,Jdeveloper 10g的主要内容,如果未能解决你的问题,请参考以下文章