It is not too mysterious what is going on. I don't want to insult anyone's
intelligence.
Running an applet is DIFFERENT in several ways from running from the command line:
1) The browser wants to use its own JVM. If you need a special JVM, like the 1.3 VM,
you need to use the Java PlugIn. You can tell the PlugIn which JVM to use (based
on
its path). For example, you need to decide whether you want to run out of
c:\jdk1.3
or out of C:\program files\javasoft\jre\1.3 (or whatever your installation paths).
2) The simplest way to add extensions or user jar files is to put them in the ext
directory where the JVM will always find them and regard them as trusted:
C:\jdk1.3\jre\lib\ext
or C:\program files\javasoft\jre\1.3\lib\ext
Note that if you run using the JVM (java.exe) in C:\jdk1.3\... the JVM will look
only
in the first directory above and if you run using the JVM in C:\program
files\javasoft\...
the JVM will look only in the second directory. If you want to use J3D with
either
JVM you probably should copy all four J3D jar files into both lib\ext
directories.
3) The JVM will also need the dlls (J3D.dll, j3daudio.dll or others).
They are located in the bin directories:
C:\jdk1.3\jre\bin
or C:\program files\javasoft\jre\1.3\bin
corresponding to each JVM.
4) You should also be aware that lots of Windows installers will unhelpfully put
another JVM in c:\windows\java.exe or similar. I always delete these when
I see them since I usually want to run from one of the other locations. The
presence or absence of other JVMs on your system has no effect on the
PlugIn since it knows which JVM to use.
5) Be sure you are using the 1.3 PlugIn. You should have a "Java PlugIn" control panel
applet. Run it and verify that it is set up correctly. You can add items to the
classpath with the control panel applet if you wish, or set the memory
limits, etc. The PlugIn control used to be a command that showed up in the start
menu
but it is now a control panel applet.
6) Remember that the browser's "Java console" serves no useful function when
you are using the PlugIn. No amount of messing with it will have any benefit.
7) If you need to do any local I/O or various other things that require security
priviledges
from an applet, they will fail unless you enable them. Again, the "Java console"
and
the various hints you will find on the Web about enabling privileges through the
browser are all totally useless because they function only if you are using the
JVM
built into the browser. Maybe some future browser will be less brain dead and
will understand about different JVMs and deal with them in a rational fashion
but that isn't what we have today. To enable priviledges, use -
-Djava.security.policy=<policy file path>
on the JVM command line in the Java PlugIn applet and set appropriate policies.
For example, the JVM comes with a standard java.policy file, but the default
policy file doesn't grant very many privileges.
Some of the above details are Windows-specific. In its infinite wisdom, Sun
has made the details for Solaris more complicated.
At 12:59 PM 8/27/2000 +0200, you wrote:
>Hello Aant,
>
>At 11:25 27.08.00 , you wrote:
>>It wasn't my intention to trick you. I strated now a demo applet (sorry i
>>didn't mentioned it) I thought it was the same problem, but i gues it is a
>>different kind of problem (or where files must be placed). When i used java
>>1.2.2 i didn't get thes problem but now im using java 1.3 so i hope i can
>>use java 3d .
>
>I'm sorry if I sounded accusing - I was only joking. Since the problem is yours
>I'm sure you have every intention of contributing to its solution.
>
>Java applications and applets in many cases find their classes in different
>directories so it makes sense to get one kind of program working first. I'm
>very sorry we aren't making more progress. Would anyone else like to try
>to help Aant?
>
>-Carl-
>
>===========================================================================
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff JAVA3D-INTEREST". For general help, send email to
>[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".