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

    Default Installing Java3D with eclipse, not working

    Hi, I'm having a problem getting java3d to work with eclipse. I installed the latest jre-6u16 and Java 3D 1.5.1. I am running 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 I am trying to use. The code is from my textbook and should run, but it doesn't.


    *********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

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,525
    Blog Entries
    7
    Rep Power
    20

    Default

    If you're running Vista or Windows 7 try to switch off that darn UAC; it that helps switch it back on and reinstall your code somewhere else (not in c:/Program Files/). If it doesn't help you haven't installed the software correctly; read the installation manual.

    kind regards,

    Jos

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

    Default

    Found this...

    h**p://blog.js-development.com/2008/11/type-x-is-not-accessible-due-to.html

    I guess there are settings in the newer version of Eclipse that are not in the older versions installed in the computer labs at school. Instead of switching the setting to warning, I set it to ignore and all errors went away and it works fine. I tried uninstalling and reinstalling everything to no avail. I then downloaded and installed NetBeans which worked fine leading me to think it was a problem with Eclipse, which it was. Hope this helps others...

Similar Threads

  1. Getting httpclient working with eclipse.
    By int80 in forum Eclipse
    Replies: 4
    Last Post: 03-31-2009, 01:17 PM
  2. JSP 2.0 not working on eclipse
    By iuna in forum Eclipse
    Replies: 1
    Last Post: 03-25-2009, 09:39 PM
  3. Problem installing own eclipse/equinox plug-in
    By lahitsitely78 in forum Eclipse
    Replies: 0
    Last Post: 02-06-2009, 02:36 PM
  4. Working with org.eclipse.draw2d .IFigure
    By Billy777 in forum Eclipse
    Replies: 1
    Last Post: 09-26-2008, 06:09 PM
  5. Replies: 1
    Last Post: 08-22-2008, 10:12 AM

Tags for this Thread

Posting Permissions

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