Home » jAlbum forums » Bug reports

This question is not answered. Helpful answers available: 1. Correct answers available: 1.


Permlink Replies: 18 - Pages: 2 [ 1 2 | Next ] - Last Post: 11-Oct-2011 04:41 Last Post By: jGromit
tttp

Posts: 12
Registered: 02/12/08
JNI exception failed to create the Java VM. Reason:unknown.
Posted: 16-Jul-2009 03:10
 
  Click to reply to this thread Reply
Attachment err.GIF (7,1 KB)
Hi there, I am using the most recent version of the software.
But I have met some strange error message after I finished the installing of jalbum.
I attach my error message below.

Any ideas on what might be causing this?

Thanks for reading and for any replies! :)
jGromit

Posts: 26,111
Registered: 01/31/06
Re: JNI exception failed to create the Java VM. Reason:unknown.
Posted: 16-Jul-2009 04:48   in response to: tttp in response to: tttp
 
  Click to reply to this thread Reply
More information is needed. What operating system? What version of Java?
tttp

Posts: 12
Registered: 02/12/08
Re: JNI exception failed to create the Java VM. Reason:unknown.
Posted: 16-Jul-2009 06:52   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
os: winxp sp3
java version: build 1.6.0_14-b08
jalbum version: 8.3.5
When I want to start the program, it just only shows this error message.
davidekholm

Posts: 18,581
Registered: 10/18/02
Re: JNI exception failed to create the Java VM. Reason:unknown.
Posted: 16-Jul-2009 10:09   in response to: tttp in response to: tttp
 
  Click to reply to this thread Reply
That seems to be a problem in layers below Jalbum. I.e, your Java virtual machine, display driver or OS. Reinstalling Java or updating your display driver could help.
davidekholm

Posts: 18,581
Registered: 10/18/02
Re: JNI exception failed to create the Java VM. Reason:unknown.
Posted: 16-Jul-2009 10:10   in response to: davidekholm in response to: davidekholm
Helpful
  Click to reply to this thread Reply
As a debug measure, try double clicking Jalbum's "Jalbum.jar" file directly. Does Jalbum launch then? This bypasses the standard launcher, but doesn't allow enough RAM for Jalbum. Anyway it is a good way to help isolating what component causes failure.
tttp

Posts: 12
Registered: 02/12/08
Re: JNI exception failed to create the Java VM. Reason:unknown.
Posted: 16-Jul-2009 11:24   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Yes, It really works.
When I double click jalbum.jar, jalbum runs normally.
I think that the problem is the jalbum.exe can't launch the jalbum.jar through JNI.
But I don't know how to debug this....XD
davidekholm

Posts: 18,581
Registered: 10/18/02
Re: JNI exception failed to create the Java VM. Reason:unknown.
Posted: 16-Jul-2009 12:20   in response to: tttp in response to: tttp
 
  Click to reply to this thread Reply
Assuming you don't have enough continous free RAM memory, edit the file "Jalbum.ini" and lower the amount of RAM memory allowed for Jalbum. See if that enables Jalbum to launch.
tttp

Posts: 12
Registered: 02/12/08
Re: JNI exception failed to create the Java VM. Reason:unknown.
Posted: 16-Jul-2009 12:31   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
No, it doesn't work whatever I adjust the memory parameter........
davidekholm

Posts: 18,581
Registered: 10/18/02
Re: JNI exception failed to create the Java VM. Reason:unknown.
Posted: 16-Jul-2009 13:13   in response to: tttp in response to: tttp
 
  Click to reply to this thread Reply
Can't figure out what could be the cause apart from uninstalling and reinstalling Java.
tttp

Posts: 12
Registered: 02/12/08
Re: JNI exception failed to create the Java VM. Reason:unknown.
Posted: 16-Jul-2009 17:52   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
I don't thinkthat reinstall is a good idea to solve this program.
I have ever tried this, and it maked no difference......XD
davidekholm

Posts: 18,581
Registered: 10/18/02
Re: JNI exception failed to create the Java VM. Reason:unknown.
Posted: 17-Jul-2009 09:54   in response to: tttp in response to: tttp
 
  Click to reply to this thread Reply
Attachment StartJAlbum.bat (178 bytes)
Here's my only workaround right now:
Put the attached .bat file inside Jalbum's installation folder and use it to launch Jalbum instead. The bat file will take care of allowing Jalbum to grab enough RAM for it's image scaling operations (normally handled by the ordinary launcher)
tttp

Posts: 12
Registered: 02/12/08
Re: JNI exception failed to create the Java VM. Reason:unknown.
Posted: 18-Jul-2009 10:09   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Therefore, it is caused by memory parameter´╝č
davidekholm

Posts: 18,581
Registered: 10/18/02
Re: JNI exception failed to create the Java VM. Reason:unknown.
Posted: 18-Jul-2009 12:36   in response to: tttp in response to: tttp
 
  Click to reply to this thread Reply
As you tested with different memory parameters I think it's something else with the launcher that causes problems, but this BAT file should work.
colinfaed

Posts: 4
Registered: 01/19/09
Re: JNI exception failed to create the Java VM. Reason:unknown.
Posted: 16-Aug-2009 19:43   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Hi,
I just though I'd let you know I had the same problem happen to me (I am using 8.3.1). However, after reading this thread I amended the Jalbum.ini changing "Xmx512" to "Xmx256" and Jalbum now starts perfectly!
Thanks!

Edited by: colinfaed on 16-Aug-2009 19:43
davidekholm

Posts: 18,581
Registered: 10/18/02
Re: JNI exception failed to create the Java VM. Reason:unknown.
Posted: 17-Aug-2009 10:54   in response to: colinfaed in response to: colinfaed
 
  Click to reply to this thread Reply
Thanks for this info! Lately, we have received a number of user issues where they can't launch Jalbum. The weird thing is that -Xmx is an upper bound, not a lower one (Xms is a lower/initial bound) so I can't see why one would need to lower -Xmx in order for Jalbum to launch, but it's good that it helps anyway. How much RAM do you have?
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums