FATAL ERROR - can't find Java Virtual Machine on 7.0
-
- Posts: 7
- Joined: Wed Jan 18, 2006 12:53 am
- Contact:
FATAL ERROR - can't find Java Virtual Machine on 7.0
"FATAL ERROR
<oXygen/> requires a Java Virtual Machine..."
My java version is 1.4.2 which shouldn't be too old. What gives?
What's really weird is that this is not a very fatal FATAL ERROR since if I ignore it and click "continue" things seem to work fine.
Anybody know how to fix this?
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
If you change directory to the <oXygen/> install directory in a console and run:
Code: Select all
sh oxygen.sh
Regards,
Sorin
-
- Posts: 7
- Joined: Wed Jan 18, 2006 12:53 am
- Contact:
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
The complete message is:
<oXygen/> requires a Java Virtual Machine from Sun Microsystems Inc.
Please either get the oXygen distribution that includes a JVM (if available for
your platform) or download a Java Runtime Environment (JRE) from Sun Microsystems Inc.:
http://java.sun.com/
So it means that you run oXygen with a JRE that is not from Sun and it is not supported. It may run without problems but you also may hit somtimes strange behaviour with that. It is recommended to use a JVM from Sun.
Best Regards,
George
-
- Posts: 7
- Joined: Wed Jan 18, 2006 12:53 am
- Contact:
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
If you launch <oXygen/> from the shortcut created by the installer wizard you have to add a line like this:
Code: Select all
export app_java_home=/home/sorin/jdk1.5.0_05
Code: Select all
"$app_java_home/bin/java" -client -Dinstall4j.jvmDir="$app_java_home" -Dinstall4j.appDir="$app_home"
If you launch <oXygen/> using the oxygen.sh script located in the <oXygen/> home dir with a command
Code: Select all
sh oxygen.sh
Code: Select all
/home/sorin/jdk1.5.0_05/bin/java -Xmx256m "-Dcom.oxygenxml.editor.plugins.dir=$p/plugins" ...
Regards,
Sorin
-
- Posts: 7
- Joined: Wed Jan 18, 2006 12:53 am
- Contact:
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
A Java virtual machine not from Sun Microsystems is found in the Windows registry before a Sun JVM. Using the Windows installation kit which includes a JVM will ensure that <oXygen/> runs inside a Sun Microsystems JVM and that JVM will not interfere with any other applications on your machine. If you installed already the kit without JVM you have to set the home dir of a Sun JVM in the .ini file of the <oXygen/> executable as explained in the second note on this page.
Regards,
Sorin
-
- Posts: 51
- Joined: Fri Jan 27, 2006 12:51 am
In my oxygen7.0.ini I have the followingJNI exception: failed to create the Java VM.
Code: Select all
JRE Path=c:\dev\tools\win32\jdk\jdk1.5.0_02\jre
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
It seems the oxygen.bat script runs other Java virtual machine. Do you get any error if you edit the line which starts the Java virtual machine in the oxygen.bat script like this:
Code: Select all
c:\dev\tools\win32\jdk\jdk1.5.0_02\jre\bin\java -Xmx256m -cp %CP% ro.sync.exml.Oxygen %1 %2 %3 %4 %5 %6 %7
Regards,
Sorin
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
sanderson wrote:When I use the exe on Windows I occassionaly get the same errror. Using the batch file I never see the error.
sanderson wrote:My error is:
In my oxygen7.0.ini I have the followingJNI exception: failed to create the Java VM.
Code: Select all
JRE Path=c:\dev\tools\win32\jdk\jdk1.5.0_02\jre
sorin wrote:Do you get any error if you edit the line which starts the Java virtual machine in the oxygen.bat script like this:
and start up <oXygen/> using this script ?Code: Select all
c:\dev\tools\win32\jdk\jdk1.5.0_02\jre\bin\java -Xmx256m -cp %CP% ro.sync.exml.Oxygen %1 %2 %3 %4 %5 %6 %7
If oxygen.bat gives no error with c:\dev\tools\win32\jdk\jdk1.5.0_02\jre\bin\java then oxygen.exe should also give no error with JRE Path=c:\dev\tools\win32\jdk\jdk1.5.0_02\jre in oxygen.ini because it is the same Java virtual machine. The .exe is just a wrapper which starts up the Java virtual machine. Please post all the content of your oxygen7.0.ini file.sanderson wrote:The batch file never throws and error, only the executable.
Regards,
Sorin
-
- Posts: 6
- Joined: Mon Apr 10, 2006 12:43 pm
Error starting OxygenXML
Hello. I have the same problem. When I start OxygenXML by exe file it gives mesorin wrote:If oxygen.bat gives no error with c:\dev\tools\win32\jdk\jdk1.5.0_02\jre\bin\java then oxygen.exe should also give no error with JRE Path=c:\dev\tools\win32\jdk\jdk1.5.0_02\jre in oxygen.ini because it is the same Java virtual machine. The .exe is just a wrapper which starts up the Java virtual machine. Please post all the content of your oxygen7.0.ini file.
Regards,
Sorin
Code: Select all
JNI exception: failed to create the JavaVM
Code: Select all
[Display]
Splash Screen=C:\Program Files (x86)\Authoring\Oxygen 7.1\SplashScreen.bmp
[Java Runtime Environment]
JVM Type=favor_client
Virtual Machine Parameters=-Xmx40P -Dcom.oxygenxml.splash=false
Preferred versions=1.5;
Minimum Version=1.4.2
Main Class=ro.sync.exml.Oxygen
Maximum Version=any
JRE Path=C:\Program Files (x86)\Java\jre1.5.0_04
[Application]
Application Type=gui
Single Instance=yes
[Class Path]
Class Path=C:\Program Files (x86)\Authoring\Oxygen 7.1\lib\oxygen.jar;
But oxygenxml.bat starts oxygen perfectly. What shoudl I do?
Code: Select all
C:\Program Files (x86)\Oxygen 7.1>rem C:\Program Files (x86)\Oxygen 7.1\ is expanded pathname of the current script under NT
C:\Program Files (x86)\Oxygen 7.1>SET CP="C:\Program Files (x86)\Oxygen 7.1\;C:\Program Files (x86)\Oxygen 7.1\/lib/oxygen.jar;C:\Program Files (x86)\Oxygen 7.1\/classes;"
C:\Program Files (x86)\Oxygen 7.1>java -Xmx256m -cp "C:\Program Files (x86)\Oxygen 7.1\;C:\Program Files (x86)\Oxygen 7.1\/lib/oxygen.jar;C:\Program Files (x86)\Oxygen 7.1\/classes;" ro.sync.exml.Oxygen
Time 3218
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
sanderson wrote:The batch file never throws and error, only the executable.
First we need to identify the problem. Unzip this archive in the <oXygen/> install folder, C:\Program Files (x86)\Oxygen 7.1\ on your computer, and try to start <oXygen/> by double-clicking on each of the .exe files contained in the archive. Post here the effect of each one (<oXygen/> starts up normally, the same error message about the JNI exception, a different error message, etc). You will have to use the correct JRE path for your JRE installation in each .ini file corresponding to the .exe files. In your case that means replacing the linenetman wrote:But oxygenxml.bat starts oxygen perfectly. What shoudl I do?
Code: Select all
JRE Path=C:\Program Files\Java\jre1.5.0_06
Code: Select all
JRE Path=C:\Program Files (x86)\Java\jre1.5.0_04
Regards,
Sorin
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
First we need to identify the problem. Unzip this archive in the <oXygen/> install folder, C:\Program Files (x86)\Oxygen 7.1\ on your computer, and try to start <oXygen/> by double-clicking on each of the .exe files contained in the archive. Post here the effect of each one (<oXygen/> starts up normally, the same error message about the JNI exception, a different error message, etc). You will have to use the correct JRE path for your JRE installation in each .ini file corresponding to the .exe files. In your case that means replacing the linesanderson wrote:The batch file never throws and error, only the executable.
Code: Select all
JRE Path=C:\Program Files\Java\jre1.5.0_06
Code: Select all
JRE Path=C:\Program Files (x86)\Java\jre1.5.0_04
Regards,
Sorin
-
- Posts: 6
- Joined: Mon Apr 10, 2006 12:43 pm
The same error
Could this possibly help http://www.mytempdir.com/583909 ?
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
Thank you for the file. The problem is the maximum memory limit set for the Java virtual machine at startup which is too high on your machine. Please change the parameter -Xmx40P on the line Virtual Machine Parameters of the file [oXygen-install-folder]/oxygen7.1.ini to -Xmx1024m. That means 1 GB reserved for the heap space of the JVM and should be more than enough even for processing large documents in <oXygen/>. Then restart <oXygen/>. Anyway the launcher of version 7.2 will address this problem so that the JNI exception will not occur at startup.
Regards,
Sorin
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
It is possible that the maximum heap limit is not the only problem on your computer. Please try with -Xmx512m and if you still get the JNI exception sometimes at startup it would be really helpful if you can close <oXygen/> and start up again but by double clicking on OxygenMod0.exe which was included in the zip archive instead of oxygen7.1.exe which is launched by the Start menu shortcut.
Regards,
Sorin
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
Delete the file OxygenMod0.log, leave -Xmx1024m in OxygenMod0.ini and double click again on OxygenMod0.exe. After that please send the generated OxygenMod0.log file to support at oxygenxml dot com. How much RAM memory do you have on the computer ?
Regards,
Sorin
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
Thank you,
Sorin
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service