Posted by
Michael Schell on
Jun 02, 2008; 6:02pm
URL: http://imagej.273.s1.nabble.com/Problems-running-ImageJ-on-64x-WinXP-with-max-mem-set-to-6-GB-tp3696088p3696092.html
Hi Shawn,
The problem has something to do with where ImageJ looks for the
virtual machine. I am not a Java expert, so somebody else in the is
group may be able to explain this better or provide a more elegant
solution. However, I got this to work with Tony Collins' MBF-
ImageJ bundle by using the following protocol, and now my RAM
limitation is eliminated.
1. Go to this website and download JDK 6 Update 2, the first one on
the list (this may not be the current version; I did this last autumn).
http://java.sun.com/javase/downloads/index.jsp2. After you click the download button, you will get some choices
for which version. Click the accept button, then scroll down to the
last choice, which is:
Windows x64 Platform - Java(TM) SE Development Kit 6 Update 2
3. After it downloads, install it where the installer defaults: C:/
programs/Java
4. Open the MBF-ImageJ folder and discard the Imagej.cfg file and
also discard the /jre folder.
5. Also, for some unknown reason, MBF-ImageJ installs a *second* /
jre folder in /programs(x86) [not the same folder as /programs].
Discard this /jre folder too!
6. Try to launch ImageJ. It will freak out and tell you that it
cannot find a /jre folder
7. Re-direct it to the new version of Java you just installed,
i.e., dig down through C:\Programs\Java\jdk1.6.0_01\jre\bin\javaw.exe
8. Select javaw.exe
Now ImageJ will launch and you can assign up to 66% of the total
RAM. For my 8 GB system, I have assigned 5 GB
Good luck!
Mike
On Jun 2, 2008, at 1:38 PM, Shawn Mikula wrote:
> hello ImageJ community,
> this email may be better addressed to a Java mailing list, but
> hopefully someone here can help me out... To use ImageJ with
> images of several GB's in size, I have tried installing the 64x JRE
> (v1.6) on a 64x WinXP system with 16 GB RAM, but when I use ImageJ
> with Xmx option set to 6 GB, I am receiving a "Could not create the
> Java virtual machine" error and early termination of ImageJ. Has
> anyone used ImageJ on 64x WinXP systems successfully using multi-GB
> size images? Does anyone have any ideas why Java is not able to
> create the Java virtual machine?
> thanks.
> Shawn
>
>
>
> --
> Shawn Mikula, Ph.D.,
> Center for Neuroscience
> University of California-Davis,
> 1544 Newton Court,
> Davis, CA 95618,
> Phone: 530-754-9209
> Fax: 530-754-9136
> mail:
[hidden email]
> web:
http://brainmaps.orgMichael J. Schell, Ph.D., CIV, USUHS
Assist. Professor
Dept. of Pharmacology
Uniformed Services University
4301 Jones Bridge Rd.
Bethesda, MD 20814-3220
tel: (301) 295-3249
[hidden email]