I am viewing a big visual object. In my code I am invoking the garbage
collector and checking if I always have available memory as follow.
Runtime.getRuntime().gc();
System.out.println (" totalMemory() after gc()="
+Runtime.getRuntime().totalMemory());
System.out.println (" freeMemory() after g
Yes, the JRE can be installed with your application. Just download the JRE
from java.sun.com as well as the Java3D_For_JRE from java.sun.com. Install
both on your computer. Then copy the JRE folder into your application
folder.
Then set up a batch file with the following text:
JRE\bin\java -cp .
(Continued)
Oops. I meant "j3d.dll", not "java3d.dll".
Also, both j3d.dll and jvm.dll are located somewhere inside the JRE folder.
Rob
===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the mess
I was wondering how robust is this way of doing it by copying the JRE with
the application. I am sure many of you have had the problem with more than
one JDK installed on a single Windows machine that it complains about some
registry entries not having the exact version number they needed (in my
-Ursprüngliche Nachricht-
Von: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED]]Im Auftrag von Mohammed Akacem
Gesendet: Wednesday, November 01, 2000 4:35 PM
An: [EMAIL PROTECTED]
Betreff: [JAVA3D] OutOfMemoryError <>
I am viewing a big visual object. In my code I am invoking th
(Continued, part 2)
In addition to j3d.dll and jvm.dll, it may be necessary to copy those other
.dll files from JRE\bin and elsewhere in the JRE folder into the same folder
where the batch file is, although, for some reason, I've never needed
anything but j3d.dll and jvm.dll.
Rob
==
> Because Java3D guarantees that rendering is halted during
> execution of a behavior's processStimulus() method we can
> guarantee that (a) the computation thread gets put in the run
> queue next and (b) that the rendering thread waits until it is
> signalled that computation has completed before
Don't run the JRE installation, just copy it onto the target machine. Also
put in a batch file that runs the "java.exe" you copied in for the JVM.
Here are step-by-step instructions:
1) Create a new directory somewhere on your PC.
2) Create a new directory \JRE
3) Copy all of the contents of
>MIME-Version: 1.0
>Content-Transfer-Encoding: 7bit
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
>Date: Wed, 1 Nov 2000 11:53:15 -0500
>From: Fred Klingener <[EMAIL PROTECTED]>
>Subject: Re: [JAVA3D] Consistent rendering timing concurrent with
co
>Date: Wed, 1 Nov 2000 11:31:41 -0800
>From: Kelvin Chung <[EMAIL PROTECTED]>
>
>>Date: Wed, 1 Nov 2000 11:53:15 -0500
>>From: Fred Klingener <[EMAIL PROTECTED]>
>>Subject: Re: [JAVA3D] Consistent rendering timing concurrent with
>complexcalculation.
>>To: [EMAIL PROTECTED]
>>
>>> Because
Try:
There is a registry entry you can set to disable
fast double-buffering; when this is set to 1, your
app's gui works correctly. The path in the registry
for this entry is
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/glint/Device
My method does not require touching the registry at all. One should not
modify the registry when using my method.
The only thing to worry about is whether the correct version of j3d.dll and
jvm.dll are found, which is why I advocate copying them into the same folder
as the batch file.
Of course,
12 matches
Mail list logo