Hello,
I am reading a book called "Ready-to-Run Java 3D" where in chapter five is
an application called Planets. When running the application I continue to
receive an error message "images will not load" through the internet or on
local disk. The errors are as follows.
Java(TM) Plug-in: Version 1.2.2.pxUsing JRE version 1.2.2User home directory
= C:\WINDOWSProxy Configuration: no proxyJAR cache disabled.ERROR: reading
image URL: C:\Downloads\Planets\SUN.JPGERROR: reading image URL:
C:\Downloads\Planets\VENUS.JPGERROR: reading image URL:
C:\Downloads\Planets\EARTH.JPGERROR: reading image URL:
C:\Downloads\Planets\MOON.JPG
Java(TM) Plug-in: Version 1.2.2.pxUsing JRE version 1.2.2User home directory
= C:\WINDOWSProxy Configuration: no proxyJAR cache disabled.Opening
http://www.wiley.com/sun.jpg no proxyError: in loading
imagejava.lang.NullPointerException at
com.sun.j3d.utils.image.TextureLoader.getTexture(TextureLoader.java:342) at
Planets.createSceneGraph(Planets.java, Compiled Code) at
Planets.init(Planets.java:1145) at sun.applet.AppletPanel.run(Unknown
Source) at java.lang.Thread.run(Unknown Source)
I have attached the source code of the application for reference. Please
advise me as to how I can render these images within the application.
Reynold
BEGIN:VCARD
VERSION:2.1
N:DeMarco Jr;Reynold;;Mr.
FN:Reynold DeMarco Jr
NICKNAME:Reynold
ORG:same;none
TITLE:same
TEL;WORK;VOICE:617-720-4527
TEL;HOME;VOICE:6177204527
TEL;CELL;VOICE:none
TEL;PAGER;VOICE:none
TEL;WORK;FAX:none
TEL;HOME;FAX:none
ADR;WORK:;none;P.O. Box 3584;Boston;Massachusetts;02101;United States
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:none=0D=0AP.O. Box 3584=0D=0ABoston, Massachusetts 02101=0D=0AUnited States
ADR;HOME:;;P.O. BOX 3584;BOSTON;MA;02101-3584;United States
LABEL;HOME;ENCODING=QUOTED-PRINTABLE:P.O. BOX 3584=0D=0ABOSTON, MA 02101-3584=0D=0AUnited States
X-WAB-GENDER:2
BDAY:19990127
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:19990409T045118Z
END:VCARD
Planets.java