We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

yishai
Posts: 54
Joined: Wed Nov 23, 2005 11:54 pm

JNI Exception: Failed to create the Java VM

When I try to run the exe file crated by AA, I get an error message "JNI Exception: Failed to create the Java VM".

My JRE is installed with the instaler package. The ini file has a path to the JRE and it seems to ve valid.

Any idea what can be the reason?

The ini file looks like:

[Java Runtime Environment]
Maximum Version=1.4
JRE Path=D:\Program Files\My Photo Books\jre\;
Library Path=D:\Program Files\My Photo Books\jre\;
Minimum Version=1.4
System Path=D:\Program Files\My Photo Books\jre\;
JVM Type=favor_client
Main Class=com.digilabs.photobook.PhotoBookApp
Virtual Machine Parameters=-Xms50:384:1200P -Xmx100:384:2048P

-Dsun.java2d.noddraw=true "-Xmx512000000" ""
Preferred versions=1.4;
[Application]
Application Type=gui
Error File=D:\Program Files\My Photo Books\error.log
Failure Check=yes
Single Instance=yes
Output File=D:\Program Files\My Photo Books\output.log
[Class Path]
Class Path=D:\Program Files\My Photo Books\;D:\Program Files\My Photo

Books\JavaClasses.jar;D:\Program Files\My Photo Books\jre\;

Thanks

-Yishai
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

I notice two possible problems:

1. You set to hight values for the heap size in the "Edit JVM Parameters" dialog. We recommend that the Max. (MB) value to be under 1200. There is a similar discussion about this on the forum please see:
http://www.advancedinstaller.com/forums ... =heap+size

2. In the INI file at this line:
-Dsun.java2d.noddraw=true "-Xmx512000000" ""
I can't see from where is this code: "-Xmx512000000" "". You edit the INI file manually?

Please let me know if the problem persist.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”