Results 1 to 5 of 5
  1. #1
    diggitydoggz is offline Member
    Join Date
    Dec 2008
    Posts
    55
    Rep Power
    0

    Default java3d installation help

    Hey all. I've been working on a new book I got called "Killer Game Programming in Java." Running the examples in this book requires that I install java3d on my computer. I went to the author's website and he listed this link:

    https://java3d.dev.java.net/binary-builds-pre.html

    I have Windows Vista and I wasn't sure which of those to download so I chose the one that ends with windows amd64 (since I didn't see anything with vista).

    I followed the installation instructions outlined here:

    Windows

    The 1.5.2 release of the Java 3D API for Windows 2000, Windows XP (x86 or amd64), and Windows Vista runs on JDK version 1.5.0 and higher. To manually install this release, do the following:

    Download and unzip j3d-1_5_2-XXX.zip (using Windows Explorer or an unzip tool such as WinZip) to a temporary download folder, for example, c:\Downloads. This will create a j3d-1_5_2-XXX subfolder in your download folder where the downloaded files can be found. The file you need for manual installation is j3d-jre.zip.

    Create a folder for the j3d jar files and native libraries, for example, C:\Users\myhome\j3d, and unzip j3d-jre.zip into this folder.

    Modify your CLASSPATH environment variable to include the full paths to j3dcore.jar, j3dutils.jar, and vecmath.jar. For example, add the following to your CLASSPATH variable, using the System control panel, Advanced tab, Environment Variables button:

    .;C:\Users\myhome\j3d\lib\ext\j3dcore.jar;C:\Users \myhome\j3d\lib\ext\j3dutils.jar;C:\Users\myhome\j 3d\lib\ext\vecmath.jar

    Modify your PATH environment variable to contain the full path to the lib\i386 folder (or lib\amd64 for Windows/x64). For example, on 32-bit Windows, add the following to your PATH variable, using the System control panel, Advanced tab, Environment Variables button.

    C:\Users\myhome\j3d\lib\i386
    At this point your Java installation should be able to see the j3d class files. Users of IDEs such as NetBeans and Eclipse should consult the IDE's documentation to see how to add jar files and native libraries to their current project.
    The following is what I have in my classpath variable (I double checked and the folder is correct):

    .;C:\Program Files\Java\jre1.6.0\lib\ext\QTJava.zip;C:\Users\An drew\Desktop\Programs\j3d\lib\ext\j3dcore.jar;C:\U sers\Andrew\Desktop\Programs\j3d\lib\ext\j3dutils. jar;C:\Users\Andrew\Desktop\Programs\j3d\lib\ext\v ecmath.jar
    The following is what I have in my path variable:

    %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\Sy stem32\Wbem;C:\PROGRA~1\COMMON~1\ULEADS~1\MPEG;C:\ Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\QuickTime\QTSystem;C:\Users\Andrew\Desktop\P rograms\j3d\lib\i386
    Yet when I try to compile the sample program in DrJava I get 27 various "does not exist" errors for the java3d components. Could somebody help me out with this?

  2. #2
    dawiz001 is offline Member
    Join Date
    Feb 2009
    Posts
    21
    Rep Power
    0

    Default

    Are you trying to compile from the command line?

  3. #3
    scrap is offline Member
    Join Date
    Oct 2009
    Posts
    11
    Rep Power
    0

    Default

    Hi, I'm having a similar problem. I installed the latest jre-6u16 and Java 3D 1.5.1. I am using eclipse under windows 7 on my desktop and windows vista on my laptop. Both are 32bit with the latest updates and have the same errors. After installing J3D i open a project in eclipse and I have a ton of errors, 66 to be exact in a program consisting of 55 lines of code.

    I have a Java Graphics class at school and I'm not on campus enough to use the lab. Does anyone have any suggestions on what to try to get it working? Here is a list of the errors and below it I will put the code.


    *********ERRORS************

    Description Resource Path Location Type
    Access restriction: The constructor Appearance() is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 32 Java Problem
    Access restriction: The constructor BoundingSphere() is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 49 Java Problem
    Access restriction: The constructor BranchGroup() is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 30 Java Problem
    Access restriction: The constructor Canvas3D(GraphicsConfiguration) is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 19 Java Problem
    Access restriction: The constructor Color3f(Color) is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\vecmath.jar Hello3D.java /Assignment5/src line 46 Java Problem
    Access restriction: The constructor Font3D(Font, FontExtrusion) is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 34 Java Problem
    Access restriction: The constructor FontExtrusion() is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 35 Java Problem
    Access restriction: The constructor MainFrame(Applet, int, int) is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dutils.jar Hello3D.java /Assignment5/src line 14 Java Problem
    Access restriction: The constructor Material() is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 33 Java Problem
    Access restriction: The constructor Point3f(float, float, float) is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\vecmath.jar Hello3D.java /Assignment5/src line 47 Java Problem
    Access restriction: The constructor Point3f(float, float, float) is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\vecmath.jar Hello3D.java /Assignment5/src line 48 Java Problem
    Access restriction: The constructor PointLight(Color3f, Point3f, Point3f) is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 46 Java Problem
    Access restriction: The constructor Shape3D(Geometry, Appearance) is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 37 Java Problem
    Access restriction: The constructor SimpleUniverse(Canvas3D) is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dutils.jar Hello3D.java /Assignment5/src line 24 Java Problem
    Access restriction: The constructor Text3D(Font3D, String) is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 36 Java Problem
    Access restriction: The constructor Transform3D() is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 39 Java Problem
    Access restriction: The constructor TransformGroup(Transform3D) is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 42 Java Problem
    Access restriction: The constructor Vector3f(float, float, float) is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\vecmath.jar Hello3D.java /Assignment5/src line 41 Java Problem
    Access restriction: The method addBranchGraph(BranchGroup) from the type SimpleUniverse is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dutils.jar Hello3D.java /Assignment5/src line 26 Java Problem
    Access restriction: The method addChild(Node) from the type Group is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 43 Java Problem
    Access restriction: The method addChild(Node) from the type Group is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 44 Java Problem
    Access restriction: The method addChild(Node) from the type Group is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 51 Java Problem
    Access restriction: The method compile() from the type BranchGroup is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 23 Java Problem
    Access restriction: The method getPreferredConfiguration() from the type SimpleUniverse is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dutils.jar Hello3D.java /Assignment5/src line 18 Java Problem
    Access restriction: The method getViewingPlatform() from the type SimpleUniverse is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dutils.jar Hello3D.java /Assignment5/src line 25 Java Problem
    Access restriction: The method setInfluencingBounds(Bounds) from the type Light is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 50 Java Problem
    Access restriction: The method setMaterial(Material) from the type Appearance is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 33 Java Problem
    Access restriction: The method setNominalViewingTransform() from the type ViewingPlatform is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dutils.jar Hello3D.java /Assignment5/src line 25 Java Problem
    Access restriction: The method setScale(double) from the type Transform3D is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 40 Java Problem
    Access restriction: The method setTranslation(Vector3f) from the type Transform3D is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 41 Java Problem
    Access restriction: The type Appearance is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 32 Java Problem
    Access restriction: The type Appearance is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 32 Java Problem
    Access restriction: The type BoundingSphere is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 49 Java Problem
    Access restriction: The type BoundingSphere is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 49 Java Problem
    Access restriction: The type BranchGroup is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 22 Java Problem
    Access restriction: The type BranchGroup is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 29 Java Problem
    Access restriction: The type BranchGroup is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 30 Java Problem
    Access restriction: The type BranchGroup is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 30 Java Problem
    Access restriction: The type Canvas3D is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 19 Java Problem
    Access restriction: The type Canvas3D is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 19 Java Problem
    Access restriction: The type Color3f is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\vecmath.jar Hello3D.java /Assignment5/src line 46 Java Problem
    Access restriction: The type Font3D is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 34 Java Problem
    Access restriction: The type Font3D is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 34 Java Problem
    Access restriction: The type FontExtrusion is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 35 Java Problem
    Access restriction: The type MainFrame is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dutils.jar Hello3D.java /Assignment5/src line 14 Java Problem
    Access restriction: The type Material is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 33 Java Problem
    Access restriction: The type Point3f is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\vecmath.jar Hello3D.java /Assignment5/src line 47 Java Problem
    Access restriction: The type Point3f is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\vecmath.jar Hello3D.java /Assignment5/src line 48 Java Problem
    Access restriction: The type PointLight is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 46 Java Problem
    Access restriction: The type PointLight is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 46 Java Problem
    Access restriction: The type Shape3D is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 37 Java Problem
    Access restriction: The type Shape3D is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 37 Java Problem
    Access restriction: The type SimpleUniverse is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dutils.jar Hello3D.java /Assignment5/src line 18 Java Problem
    Access restriction: The type SimpleUniverse is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dutils.jar Hello3D.java /Assignment5/src line 24 Java Problem
    Access restriction: The type SimpleUniverse is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dutils.jar Hello3D.java /Assignment5/src line 24 Java Problem
    Access restriction: The type Text3D is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 36 Java Problem
    Access restriction: The type Text3D is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 36 Java Problem
    Access restriction: The type Transform3D is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 39 Java Problem
    Access restriction: The type Transform3D is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 39 Java Problem
    Access restriction: The type TransformGroup is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 42 Java Problem
    Access restriction: The type TransformGroup is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 42 Java Problem
    Access restriction: The type Vector3f is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\vecmath.jar Hello3D.java /Assignment5/src line 41 Java Problem
    listener cannot be resolved MickeyMouse.java /Primitives/src line 164 Java Problem
    Syntax error, insert ";" to complete Statement MickeyMouse.java /Primitives/src line 165 Java Problem
    Syntax error, insert "AssignmentOperator Expression" to complete Expression MickeyMouse.java /Primitives/src line 165 Java Problem
    t.start cannot be resolved or is not a field MickeyMouse.java /Primitives/src line 165 Java Problem
    The field MickeyGamePanel.score is never read locally MickeyMouseGame.java /Assignment4/src line 42 Java Problem
    The import java.awt is never used MickeyMouse.java /Assignment4/src line 7 Java Problem
    The import java.awt.event is never used ClippingTextAndFontExamples.java /Clipping/src line 3 Java Problem
    The import java.awt.event is never used Diamond.java /Assignment3/src line 2 Java Problem
    The import java.awt.event is never used EllipseExample.java /091609/src line 2 Java Problem
    The import java.awt.event is never used GeneralPathExample.java /091809/src line 2 Java Problem
    The import java.awt.event is never used GeneralPathExample.java /GeneralPath/src line 2 Java Problem
    The import java.awt.event is never used GeneralPathExamples.java /091809/src line 2 Java Problem
    The import java.awt.event is never used GeneralPathExamples.java /GeneralPath/src line 2 Java Problem
    The import java.awt.event is never used Mickey.java /Assignment1A/src line 11 Java Problem
    The import java.awt.event is never used MickeyMouse.java /Assignment4/src line 8 Java Problem
    The import java.awt.event is never used Mouse.java /Primitives/src line 2 Java Problem
    The import java.awt.event is never used Template.java /Checkers/src line 2 Java Problem
    The import java.awt.event is never used Template.java /House/src line 2 Java Problem
    The import java.awt.event is never used Template.java /Template2D/src line 2 Java Problem
    The import java.awt.event is never used TestColorsWithAlpha.java /ColorPaint/src line 4 Java Problem
    The import java.awt.event is never used TransformationsExample.java /Transformations/src line 2 Java Problem
    The import java.awt.event is never used YingYang.java /Assignment1B/src line 10 Java Problem
    The import java.awt.geom is never used CAExample.java /Animation/src line 7 Java Problem
    The import java.awt.geom is never used Mouse.java /Primitives/src line 4 Java Problem
    The import java.awt.geom is never used Template.java /Template2D/src line 4 Java Problem
    The import java.lang.Integer is never used Transform.java /Transformations/src line 6 Java Problem
    The import java.util is never used Transformations.java /Transformations/src line 4 Java Problem
    The import javax.swing is never used MickeyMouse.java /Assignment4/src line 9 Java Problem
    The local variable c2 is never read Template.java /House/src line 42 Java Problem
    The local variable g is never read Transformations.java /Transformations/src line 109 Java Problem
    The local variable g2 is never read Mouse.java /Primitives/src line 36 Java Problem
    The local variable g2 is never read Template.java /Template2D/src line 36 Java Problem
    The local variable h is never read Mickey.java /Assignment1A/src line 47 Java Problem
    The local variable h is never read Template.java /House/src line 38 Java Problem
    The local variable h is never read YingYang.java /Assignment1B/src line 46 Java Problem
    The local variable w is never read Mickey.java /Assignment1A/src line 46 Java Problem
    The local variable w is never read Template.java /House/src line 37 Java Problem
    The local variable w is never read YingYang.java /Assignment1B/src line 45 Java Problem
    The method neighbors(boolean[][], int, int) from the type CAExamplePanel is never used locally CAExample.java /Animation/src line 103 Java Problem
    The method show() from the type Window is deprecated Transform.java /Transformations/src line 177 Java Problem
    The serializable class CAExample does not declare a static final serialVersionUID field of type long CAExample.java /Animation/src line 9 Java Problem
    The serializable class CAExamplePanel does not declare a static final serialVersionUID field of type long CAExample.java /Animation/src line 27 Java Problem
    The serializable class ClippingExamplesPanel does not declare a static final serialVersionUID field of type long ClippingTextAndFontExamples.java /Clipping/src line 25 Java Problem
    The serializable class ClippingTextAndFontExamples does not declare a static final serialVersionUID field of type long ClippingTextAndFontExamples.java /Clipping/src line 7 Java Problem
    The serializable class ColorPanel2 does not declare a static final serialVersionUID field of type long TestColorsWithAlpha.java /ColorPaint/src line 65 Java Problem
    The serializable class Diamond does not declare a static final serialVersionUID field of type long Diamond.java /Assignment3/src line 12 Java Problem
    The serializable class DiamondPanel does not declare a static final serialVersionUID field of type long Diamond.java /Assignment3/src line 30 Java Problem
    The serializable class Display does not declare a static final serialVersionUID field of type long Java2D001.java /Transformations/src line 151 Java Problem
    The serializable class EllipseExample does not declare a static final serialVersionUID field of type long EllipseExample.java /091609/src line 13 Java Problem
    The serializable class GeneralPathExample does not declare a static final serialVersionUID field of type long GeneralPathExample.java /091809/src line 6 Java Problem
    The serializable class GeneralPathExample does not declare a static final serialVersionUID field of type long GeneralPathExample.java /GeneralPath/src line 6 Java Problem
    The serializable class GeneralPathExamples does not declare a static final serialVersionUID field of type long GeneralPathExamples.java /091809/src line 6 Java Problem
    The serializable class GeneralPathExamples does not declare a static final serialVersionUID field of type long GeneralPathExamples.java /GeneralPath/src line 6 Java Problem
    The serializable class GeneralPathPanel does not declare a static final serialVersionUID field of type long GeneralPathExample.java /091809/src line 26 Java Problem
    The serializable class GeneralPathPanel does not declare a static final serialVersionUID field of type long GeneralPathExample.java /GeneralPath/src line 24 Java Problem
    The serializable class GUI does not declare a static final serialVersionUID field of type long Java2D001.java /Transformations/src line 121 Java Problem
    The serializable class Hello3D does not declare a static final serialVersionUID field of type long Hello3D.java /Assignment5/src line 12 Java Problem
    The serializable class Java2D001 does not declare a static final serialVersionUID field of type long Java2D001.java /Transformations/src line 36 Java Problem
    The serializable class Mickey does not declare a static final serialVersionUID field of type long Mickey.java /Assignment1A/src line 15 Java Problem
    The serializable class MickeyGamePanel does not declare a static final serialVersionUID field of type long MickeyMouseGame.java /Assignment4/src line 28 Java Problem
    The serializable class MickeyMouseGame does not declare a static final serialVersionUID field of type long MickeyMouseGame.java /Assignment4/src line 9 Java Problem
    The serializable class Mouse does not declare a static final serialVersionUID field of type long Mouse.java /Primitives/src line 6 Java Problem
    The serializable class PathPanel does not declare a static final serialVersionUID field of type long GeneralPathExamples.java /091809/src line 24 Java Problem
    The serializable class PathPanel does not declare a static final serialVersionUID field of type long GeneralPathExamples.java /GeneralPath/src line 24 Java Problem
    The serializable class Template does not declare a static final serialVersionUID field of type long Template.java /Checkers/src line 6 Java Problem
    The serializable class Template does not declare a static final serialVersionUID field of type long Template.java /House/src line 6 Java Problem
    The serializable class Template does not declare a static final serialVersionUID field of type long Template.java /Template2D/src line 6 Java Problem
    The serializable class TemplatePanel does not declare a static final serialVersionUID field of type long Mickey.java /Assignment1A/src line 33 Java Problem
    The serializable class TemplatePanel does not declare a static final serialVersionUID field of type long MickeyMouse.java /Primitives/src line 141 Java Problem
    The serializable class TemplatePanel does not declare a static final serialVersionUID field of type long Mouse.java /Primitives/src line 24 Java Problem
    The serializable class TemplatePanel does not declare a static final serialVersionUID field of type long Template.java /Checkers/src line 24 Java Problem
    The serializable class TemplatePanel does not declare a static final serialVersionUID field of type long Template.java /House/src line 24 Java Problem
    The serializable class TemplatePanel does not declare a static final serialVersionUID field of type long Template.java /Template2D/src line 24 Java Problem
    The serializable class TemplatePanel does not declare a static final serialVersionUID field of type long YingYang.java /Assignment1B/src line 32 Java Problem
    The serializable class TemplatePanel3 does not declare a static final serialVersionUID field of type long EllipseExample.java /091609/src line 31 Java Problem
    The serializable class TestColorsWithAlpha does not declare a static final serialVersionUID field of type long TestColorsWithAlpha.java /ColorPaint/src line 9 Java Problem
    The serializable class Transform does not declare a static final serialVersionUID field of type long Transform.java /Transformations/src line 23 Java Problem
    The serializable class Transformations does not declare a static final serialVersionUID field of type long Transformations.java /Transformations/src line 7 Java Problem
    The serializable class TransformationsExample does not declare a static final serialVersionUID field of type long TransformationsExample.java /Transformations/src line 6 Java Problem
    The serializable class TransformationsExamplePanel does not declare a static final serialVersionUID field of type long TransformationsExample.java /Transformations/src line 24 Java Problem
    The serializable class TransformPanel does not declare a static final serialVersionUID field of type long Transformations.java /Transformations/src line 62 Java Problem
    The serializable class TransPanel does not declare a static final serialVersionUID field of type long Transform.java /Transformations/src line 182 Java Problem
    The serializable class YingYang does not declare a static final serialVersionUID field of type long YingYang.java /Assignment1B/src line 14 Java Problem
    The static field TransformPanel.REFLECTION should be accessed in a static way Transformations.java /Transformations/src line 57 Java Problem
    The static field TransformPanel.ROTATION should be accessed in a static way Transformations.java /Transformations/src line 51 Java Problem
    The static field TransformPanel.SCALING should be accessed in a static way Transformations.java /Transformations/src line 53 Java Problem
    The static field TransformPanel.SHEARING should be accessed in a static way Transformations.java /Transformations/src line 55 Java Problem
    The static field TransformPanel.TRANSLATION should be accessed in a static way Transformations.java /Transformations/src line 49 Java Problem

    ************CODE*************

    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
    import javax.media.j3d.*;
    import javax.vecmath.*;
    import com.sun.j3d.utils.universe.*;
    import com.sun.j3d.utils.geometry.*;
    import com.sun.j3d.utils.applet.*; //this was import com.sun.j3d.utils.applet.MainFrame but gave an error, but not with the *, weird

    public class Hello3D extends Applet {
    public static void main(String s[]) {
    new MainFrame(new Hello3D(), 640, 480);
    }

    public void init() {
    GraphicsConfiguration gc = SimpleUniverse.getPreferredConfiguration();
    Canvas3D cv = new Canvas3D(gc);
    setLayout(new BorderLayout());
    add(cv, BorderLayout.CENTER);
    BranchGroup bg = createSceneGraph();
    bg.compile();
    SimpleUniverse su = new SimpleUniverse(cv);
    su.getViewingPlatform().setNominalViewingTransform ();
    su.addBranchGraph(bg);
    }

    private BranchGroup createSceneGraph() {
    BranchGroup root = new BranchGroup();
    //object
    Appearance ap = new Appearance();
    ap.setMaterial(new Material());
    Font3D font = new Font3D(new Font("SansSerif", Font.PLAIN, 1),
    new FontExtrusion());
    Text3D text = new Text3D(font, "Hello 3D");
    Shape3D shape = new Shape3D(text, ap);
    //transformation
    Transform3D tr = new Transform3D();
    tr.setScale(0.5);
    tr.setTranslation(new Vector3f(-0.95f, -0.2f, 0f));
    TransformGroup tg = new TransformGroup(tr);
    root.addChild(tg);
    tg.addChild(shape);
    //light
    PointLight light = new PointLight(new Color3f(Color.white),
    new Point3f(1f,1f,1f),
    new Point3f(1f,0.1f,0f));
    BoundingSphere bounds = new BoundingSphere();
    light.setInfluencingBounds(bounds);
    root.addChild(light);
    return root;
    }
    }

    **************END**************

    Any suggestions would be appreciated.

    Thanks
    Last edited by scrap; 10-27-2009 at 09:48 PM.

  4. #4
    gcampton Guest

    Default

    I have Windows Vista and I wasn't sure which of those to download so I chose the one that ends with windows amd64 (since I didn't see anything with vista).
    x86 is typically 32bit machines, which is what every home PC is the x stands for 2,3,4,5,6 remember back before pentium I there was the 286, the 386, and the 486, there were a couple 586's made but they weren't popular, then pentium I's hit the shelves. and shortly after mmx, pentium II, pentium III, etc etc, all keeping the old archetecture, back when the 486's come out the thought of 64bit machines as home PC's was nothing more than a pipe dream, or unless you had a few hundred thousand to spend it could be possible but would take up some room.

    Typically 64bit machines have 4gb to 12gb of ram, so if your PC is 3gb or less, then most likely you have an x86. You can easily check if you are using windows by going control panel -> system. Windows Vista has x86 and 64 bit archetectures but XP does not, there was a patched XP but it was a bust. If using Linux then lspci should tell you as well.

    Another note is that just because 64bits are more powerful does not mean that you should throw out your pc or/upgrade and get one, keep in mind that every software you have is made for x86 and therefore won't work on 64bit, Vista and 7 do have some legacy emulation modes, but for the most part this technology is still in BETA.

    Sorry for the off topic comment, but it sounded like you needed a little insight into this. If you are using "java3d 64bit" on your home pc which is x86 it won't work, get the x86 version.

    Additionally instead of using quote tags, you should be using code tags for your code blocks.
    Last edited by gcampton; 10-28-2009 at 01:25 PM.

  5. #5
    gcampton Guest

    Default

    the zip you want is the i586: j3d-1_6_0-pre1-0911010105-windows-i586.zip

    why on earth they called it i586 is beyond me, but being that all the x86's work on today's 32bit machines it shouldn't matter.

    @Scrap Errors will always report for everything if you have one typo take this code for example.
    Java Code:
    1    import java.util.*;
    2
    3    public static void main(String[] args)
    4    {
    5        Scanner input = new Scanner(System.in);
    6        System.out.println("Enter some data: );
    7
    8
    ...        ...
    ...
    109  }
    110
    see for every line of code(110) I'm going to continuously get errors because on line 6 I forgot to close my print statements inverted commas.

    The only important line you need to read when getting errors is the first error. Every other error either does not exist and is simply a result of the first, or is incorrectly displayed as a result from the first. So fixing the first error is always a priority, as this usually fixes every other error which are typically only due to the first error anyway...

    now your error I can only speculate
    *********ERRORS************

    Description Resource Path Location Type
    Access restriction: The constructor Appearance() is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\j3dcore.jar Hello3D.java /Assignment5/src line 32 Java Problem
    maybe the file does not exist, maybe it has the wrong permissions set, maybe the call method has an error, only you can check this by looking at the code and checking if the file is there or not.
    If your new to java then learning via a book called "killer game programming with java" is probably not the best resource to learn to program.
    Yes gaming is cool, and is the whole reason why I myself am interested in programming BUT I would not ever take a course that is dedicated to learning about games programming until I have learned the fundamentals on programming via university or simply online tutorials. Until you can write a program that say deals with remote file storage/sharing, or perhaps an advance text based chess game or the like, then stepping into games programming from scratch is only going to lead to massive confusion, and will more than likely lead to a number of poor programming practices, majorly bloated software, and/or other problems. Start with java, when you have that down pat then move onto java3d and the other libraries available. Did you guys not ever play Hellgate London?.... what a POS that game was, and you could tell from the amount and quality of patches that the programmers that put that game out had their heads up their asses. Even with 20% of their userbase paying to play online they still had to shut down the online servers after 1 year due to running at a loss.
    Last edited by gcampton; 11-02-2009 at 11:18 AM.

Similar Threads

  1. jvm installation
    By anjanrao2003 in forum New To Java
    Replies: 2
    Last Post: 01-05-2009, 04:26 AM
  2. Installation problem??
    By Somitesh Chakraborty in forum Eclipse
    Replies: 0
    Last Post: 08-26-2008, 08:01 PM
  3. Java3D
    By gowry in forum Advanced Java
    Replies: 0
    Last Post: 04-21-2008, 08:07 AM
  4. Rotations and traslations in java3d
    By elberral in forum AWT / Swing
    Replies: 0
    Last Post: 04-15-2008, 03:38 PM
  5. Java3D: Clicking and getting coordinates?
    By seabhcan in forum Advanced Java
    Replies: 0
    Last Post: 01-11-2008, 02:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •