Yes, Gary, i have just tried to get image via absolute URL address and
succeeded. But i still want to be able to load images from applet via
getImage(String str). Possilby any access from applets to external files
is allowed only via URL addresses? Is there a way to know weather Java
program is run as applet or as application?

Thanks 4 help,

vladimir

[EMAIL PROTECTED] wrote:
>
> Did you get this yet?  Did it help at all?  I ask this because my message to
> the list bounced and your next plea for help didn't sound to me like you had
> read my response yet.
>
> -Gary
> ---------------------- Forwarded by Gary Moss/arl on 06/23/99 01:14 PM
> ---------------------------
>
> Gary Moss
> 06/23/99 08:49 AM
> To: Vladimir Olenin <[EMAIL PROTECTED]>
> cc: [EMAIL PROTECTED]
> Subject: Re: Running applet. Another question.
>
> Vladimir Olenin <[EMAIL PROTECTED]> on 06/23/99 05:20:31 AM
> To: [EMAIL PROTECTED]
> cc:  (bcc: Gary Moss/arl)
> Subject: Re: Running applet. Another question.
>
> Well, it's amazing, but this worked. I swear i would have never resoved
> this problem if you didn't help me. And as far as i remeber it was
> mentioned in neither of numerious FAQs i read in vain attempts to find
> the answer to the question. But another problem arised. Now i got the
> following error:
>
> ---------------------------
> Error: in loading image
>
> java.lang.NullPointerException
>
>         at
> com.sun.j3d.utils.image.TextureLoader.getTexture(TextureLoader.java:342)
>
>         at ColumnScene.<init>(ColumnScene.java:70)
>
>         at ExClip.buildScene(ExClip.java:98)
>         .........
>
> ---------------------------
>
>  Looks to me like you passed a null Image object into TextureLoader
> constructor, so that the subsequent call to getTexture() got a
> NullPointerException when attempting to access the Image's methods.  This is
> likely the result of not finding your texture file.
>
> Remember, the applet i'm trying to run DID work as an application. All i
> did was putting appropriate html into the directory with already
> compiled classes. I ran applet in NS4.61 and tried to use ".", "./" as a
> codebase or don't use codebase at all. I tried to put codebase in front
> of and behind of code parameter. But nothing helped. Possilby that's
> because an external file is being read and some kind of security
> violation happens again.
>
>   This is not on the surface a security issue.  I believe that it's just a
> matter of installing your textures in the proper place on the web server host
> machine and you probably need to specifiy the texture files as URLs, not simple
> path names since they are now being found by the web server using http
> protocol.  Codebase needs to be a URL.  For instance if your web server is
> foo.bar.net and your classes are installed under /usr/local/http/htdocs/classes
> and htdocs is where all your HTML files go, then your codebase would be
> http://foo.bar.net/classes.
>
> HTH,
> -Gary

--
>~~~~~~~<============>~~~~~~~<
Join in Java community now!
http://javacafe.virtualave.net
>~~~~~~~<============>~~~~~~~<

===========================================================================
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".

Reply via email to