Help in getting started with java 3d

Hi everyone,
I am very new to java3d and I started learning it from few books and online tutorial.
However, in my very first program that I trying to code, I get error when I try to import following:-
import com.sun.j3d.utils.universe.SimpleUniverse;
The compilation error that I am getting is that "com.sun.j3d cannot be resolved". I have already installed java 3d. I can see java3d package in the Program Files/java directory.
Any suggestions would be greatly appreciated.
Thanks!

On the instalation you have to use the default location, or the location where your SDK is installed.
Also, check if the CLASSPATH is defined correctly in your Environment Variables for JAVA_HOME and PATH.
You can also try to define the Java 3D jar files in you classpath before you try to run your file. Or can also try to use an IDE like NetBeans or Eclipse, it will help you a lot with your import declarations.

Similar Messages

  • Getting started with Java and XML

    Hi,
    Although I am pretty familiar with Java, I am a total newbie with using it to parse XML. I have been reading quite a few tutorials so am getting a good understanding of it and am thinking of using the DOM model for my purposes.
    What I haven't been able to find, however, is how I can actually get started with this. I have tried compiling a few examples and have been getting errors such as:
    xmltest.java package javax.xml.parsers does not exist
    xmltest.java package org.w3c.dom does not existetc etc...
    It looks like these packages don't come with J2SE. Can anyone confirm this? Do I need to download and install the Java Web Services Developer Pack to solve this problem?
    Finally, I know I will need an XML parser but have read that JDK 1.4 has it's own parser (Crimson). Is this adequate for parsing XML files or will I also need a parser such as Xerces?
    Thanks so much for any help!

    Hi DrClap,
    Thanks for the reply. I have JDK 1.4.1_02 installed on my server but the following error keeps coming up when I try to run my example:
    Exception in thread "main" java.lang.NoClassDefFoundError: org/w3c/dom/NodeAre there any further packages I need to download in order to run Java with XML? I have read some people install JAXP and XERCES... are these necessary for parsing an XML document or should J2SE 1.4.1 be sufficient?
    Thanks for your help!
    Jill

  • Just updated all apple products how can I get back to the page on apple tv that helps me get started with mirroring

    Need to get back to home screen on apple tv to help get started with mirroring

    Ditto.
    You need to look for your itunes library under Computers and select it, then music.
    Music column is for web based content not local content, just to confuse everyone.
    AC

  • Please help me get started with Databases...

    I've spent all day moving from one tutorial to the other trying to figure out how to use a Database with Java. I haven't found anything that explained things basic enough for me to understand, however, I did download and install MDAC 2.8 which was suggested in on one of the sites and I also have MS Access to work with for creating the database. Can somebody please explain what I need to do in order to access a database from my program in simple, easy to follow, steps?
    Also I have a small question about .requestFocus();In my program I have a Radio button called Format1 and a text area called textArea. I set Format1 to be selected using the following code: Format1.setSelected(true); and I attempted to make the cursor start inside the text area with: textArea.requestFocus(); Currently, when I start the program, Format1 has the focus instead of textArea. How can I make the cursor start at the end of the text inside of textArea everytime I start my program?

    Try this:
    package be;
    import java.sql.*;
    import java.util.*;
    public class DataConnection
        public static final String DEFAULT_DRIVER   = "sun.jdbc.odbc.JdbcOdbcDriver";
        public static final String DEFAULT_URL      = "jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};DBQ=e:\\Project\\Database.mdb";
        public static final String DEFAULT_USERNAME = "admin";
        public static final String DEFAULT_PASSWORD = "";
        /** Database connection */
        private Connection connection;
         * Driver for the DataConnection
         * @param command line arguments
         * <ol start='0'>
         * <li>SQL query string</li>
         * <li>JDBC driver class</li>
         * <li>database URL</li>
         * <li>username</li>
         * <li>password</li>
         * </ol>
        public static void main(String [] args)
            DataConnection db = null;
            try
                if (args.length > 0)
                    String sql      = args[0];
                    String driver   = ((args.length > 1) ? args[1] : DEFAULT_DRIVER);
                    String url      = ((args.length > 2) ? args[2] : DEFAULT_URL);
                    String username = ((args.length > 3) ? args[3] : DEFAULT_USERNAME);
                    String password = ((args.length > 4) ? args[4] : DEFAULT_PASSWORD);
                    db = new DataConnection(driver, url, username, password);
                    List result = db.query(sql);
                    System.out.println(result);
                else
                    System.out.println("Usage: db.DataConnection <sql> <driver> <url> <username> <password>");
            catch (SQLException e)
                System.err.println("SQL error: " + e.getErrorCode());
                System.err.println("SQL state: " + e.getSQLState());
                e.printStackTrace(System.err);
            catch (Exception e)
                e.printStackTrace(System.err);
            finally
                if (db != null)
                    db.close();
                db = null;
         * Create a DataConnection
         * @throws SQLException if the database connection fails
         * @throws ClassNotFoundException if the driver class can't be loaded
        public DataConnection() throws SQLException,ClassNotFoundException
            this(DEFAULT_DRIVER, DEFAULT_URL, DEFAULT_USERNAME, DEFAULT_PASSWORD);
         * Create a DataConnection
         * @throws SQLException if the database connection fails
         * @throws ClassNotFoundException if the driver class can't be loaded
        public DataConnection(final String driver,
                              final String url,
                              final String username,
                              final String password)
            throws SQLException,ClassNotFoundException
            Class.forName(driver);
            this.connection = DriverManager.getConnection(url, username, password);
         * Clean up the connection
        public void close()
            try
                this.connection.close();
            catch (Exception e)
                ; // do nothing; you've done your best
         * Execute an SQL query
         * @param SQL query to execute
         * @returns list of row values
         * @throws SQLException if the query fails
        public List query(final String sql) throws SQLException
            Statement statement     = this.connection.createStatement();
            ResultSet rs            = statement.executeQuery(sql);
            ResultSetMetaData meta  = rs.getMetaData();
            int numColumns          = meta.getColumnCount();
            List rows               = new ArrayList();
            while (rs.next())
                Map thisRow = new LinkedHashMap();
                for (int i = 1; i <= numColumns; ++i)
                    String columnName   = meta.getColumnName(i);
                    Object value        = rs.getObject(columnName);
                    thisRow.put(columnName, value);
                rows.add(thisRow);
            rs.close();
            statement.close();
            return rows;
    }Solve one problem at a time. Get the database going, then worry about how you'll present it to the users. - MOD

  • Getting started with java is dead link

    otn home page > click 'Java' under 'Technologies' in left frame. > click 'Java' in the 'getting started box'. That link is broken.

    Fixed; the correct URL is:
    http://www.oracle.com/technology/getting-started/java.html
    Cheers, OTN

  • Need help on getting started with shopping cart!!

    hi guys,
    i want to build a fairly simple shopping cart with servlets and jsps.. can you please point me to a starting point.. a tutorial or a general road map for it.. i am pretty okay with servlets and jsps and currently using them for a web-app..
    any help would be greatly appreciated..thanks..

    go to http://www.moreservlets.com, download the free pdf book "Core Servlets and Java Server Pages", there is a example program on section 9.4 talks about shopping cart.
    Hope it helps.

  • Need help to get started with iMovie

    I have used the iMac for sometime but never created a movie. With my new iMac, I want to start using the iMovie '09. The first basic problem is that it will not accept any of my videos.
    I have videos made on a fairly new Cannon camera (*.movl), on a Flip recorder (*.avi). I thought the program would accept the *.mov but it will not. I have converted these videos to mpeg4, mp4, mov using ffmpegx, and mpeg streamclip, but they still will not be accepted by the iMovie program. I tried to drag and drop the videos without success, both with and without first creating a "New Project". What am I doing wrong?
    Thanks

    Hi
    This is a very complexed question (I think) and I can only suggest partial help if any.
    I would from still photo Camera import to iPhoto. Mine does this and so the movie
    sequences too.
    Then after closing iPhoto and opening iMovie - I see in Browser/Events window high
    at left hand - My Mac hard disk and under this iPhoto Library
    And here I find my movie sequences from my Leica D-Lux and vife Nikon D300s
    Yours Bengt W

  • Please help me get started with my new ipad

    Hi all--merry Christmas!
    So, I'm away from home and just got my new ipad! Of course I want to play with it, but am not sure how to start. My full itunes library is on my iMac at home (and this is what I use when I sync my iphone). I do have my MacBookPro with me, but I don't use the itunes program on it very much. It looks like I need to connect my new ipad to my itunes in order to start using it....what will happen if I connect it to my laptop here, just to get going, and then later when I home I connect it to my iMac where my "real" itunes and all my apps are?
    Thanks for any info...I'm salivating to use it!!!

    Congrats you will love it!
    I don't see a problem with activating your iPad on your MBP. When you get home sync with iMac and set your iPad up as you like.
    Have fun!

  • Help on getting started with Spring MVC, WebFlow; Where can it be applied ?

    I'm an individual programmer, developer and I see a huge demand (at the corporate level) for the frameworks: Spring, Spring MVC, webflow, and Hibernate. Popular today: Spring MVC, webflow, GWT.
    I've been going through the tutorials, and the technology looks awesome ! What I would like to know, is.. It's used in corporate sites, why not for smaller sites. How can I apply these frameworks in building websites ?
    I can't imaging doing any kind of serious website building without a modern CMS or Portal framework (whether in Java/php-opensource), And yes, MVC gives you the validation and authentication hooks to be used.
    The spring framework, with it's extensive scope, is a bit overwhelming, and implies that there could be a significant amount of architecture, design and planning time needed before starting implementation on a project
    All the demo's on Spring, cover some elementary, contrived example.
    If I learn these technologies (and I'm well on my way), how do I put them into practice, and in what context (no pun intented) do I use them ? I don't want to rebuild a CMS system, but I'd like to employ these frameworks effectively.

    user1944443 wrote:
    The spring framework, with it's extensive scope, is a bit overwhelming, and implies that there could be a significant amount of architecture, design and planning time needed before starting implementation on a projectYes, usually there is. Unless you're using the frameworks to build a home page for your kittens. Then you usually don't need to put that much effort into it.
    All the demo's on Spring, cover some elementary, contrived example.I'm sure you realize that they have to. There's no "follow these examples and you'll become a competent programmer" method of learning invented yet and frameworks usually need to document the basic cases extensively.
    If I learn these technologies (and I'm well on my way), how do I put them into practice, and in what context (no pun intented) do I use them ? I don't want to rebuild a CMS system, but I'd like to employ these frameworks effectively.You'll just need to come up with a project you'll be interested in finishing or at least developing for a while.
    I'm not sure whether I managed to answer your question or not, but if anything was left unclear, just ask.

  • Java Applet HelloWorld "Getting Started With Applets" example not working

    Hi there,
    It's been ages since I ran my Linux CentOS boot of Linux but I am going through the official oracle java applet tutorials, just every time I try and run the "Hello World" applet in Firefox 17.0.3 and I am running the Iced Tea thing for java applets.
    Every time I try and run the example from the following code:
    import javax.swing.JApplet;
    import javax.swing.SwingUtilities;
    import javax.swing.JLabel;
    public class HelloWorld extends JApplet
      // called when the user enters the html page:
      public void init() // keep apps within the init() function very small as per the http://docs.oracle.com/javase/tutorial/deployment/applet/appletMethods.html
        try{
          SwingUtilities.invokeAndWait(new Runnable()
            public void run()
           JLabel myLabel = new JLabel("Hello World");
           add(myLabel);
            } // end running the application
          }); //end of swing invokeand wait
        } catch (Exception error){ // end user running the app in page
           // System.err.println("GUI didn't work on initial run");
    }It keeps bringing up the error "Start: Applet not initialized" I did google that basic error and from what I found I should consult the JavaConsole, I know the console was removed from the Firefox menu quite a while ago. So went to find a way of loading it using the IcedTea one but it keeps bringing up a load of errors in even trying to run that.
    Is there anyway of sorting this out? I mean I have even tried installing the one on the oracle website, the plain JDK but nothing seems to work.
    Is there anyone that can help me get applets working? I was even going to go as far as to reinstall my distro but I want to avoid that as much as possible.
    Thanks and I look forward to any replies,
    Jeremy.

    in the Getting Started with Java DB tutorial they
    tell u how to set ur "DERBY_HOME" (what is that?).
    once i press enter after typing this command:
    set DERBY_HOME=D:\Java\Java
    Phonebook\javadb in my command prompt do i get
    any message or does it just go to the next line?type env or set or whatever in the command line to see what your environment variables are set to
    they also tell u how to set ur "JAVA_HOME" (what is
    that?). The Java installation you want to use
    in their example they give u this: set
    JAVA_HOME=C:\Program Files\Java\j2se1.4.2_05but in my java folder i have jdk1.6.0 and jre1.6.0
    but no j2se1.4.2_05, so which 1 must i choose?It's up to you. I'd go with 1.6
    also once ive done this: set
    DERBY_HOME=D:\Java\Java Phonebook\javadb this
    set JAVA_HOME=D:\Program
    Files\Java\jre1.6.0 and this set
    PATH=%DERBY_HOME%\bin;%PATH% and then type
    sysinfo to verify that the variables were set
    correctly i get these errors: 'D:\Java\Java' is
    not recognized as an internal or external command,
    operable program or batch file and '""'
    is not recognized as an internal or external command,
    operable program or batch file any help would
    really be appreciated because this is really killing
    me!you need to set your path variable - so something like:
    set PATH=C:\Program Files\Java\j2se1.4.2_05\bin

  • How to get started on java applet client/server game?

    Hi,
    I've googled, but didn't find any useful information about creating java applet client/server game. I've followed the example of Client/Server Tic-Tac-Toe Using a Multithreaded Server in Java How to Program from Deitel, but I when I tried on Applet, my cliet doesn't communicate with the server at all. Any help to get started with Applet would be great. Thanks!

    well, i decided to put in portion of my codes to see if anyone can help me out. the problem I have here is the function excute() never gets called. here is my coding, see if you can help. Notice, I'm running this on Applet thru html page. This shouldn't be much different than running JFrame in term of coding right?
    Server.java
        public void init()
            runGame = Executors.newFixedThreadPool(2);
            gameLock = new ReentrantLock();
            otherPlayerConnected = gameLock.newCondition();
            otherPlayerTurn = gameLock.newCondition();
            players = new Player[2];
            currentPlayer = Player1;
            try
                server = new ServerSocket(12345, 2);
            catch (IOException ie)
                stop();
            message = "Server awaiting connections";
        public void execute()
           JOptionPane.showMessageDialog(null, "I'm about to execute!", "Testing", JOptionPane.PLAIN_MESSAGE);
            for(int i = 0; i < players.length; i++)
                try
                    players[i] = new Player(server.accept(), i);
                    runGame.execute(players);
    catch (IOException ie)
    stop();
    gameLock.lock();
    try
    players[Player1].setSuspended(false);
    otherPlayerConnected.signal();
    finally
    gameLock.unlock();
    Client.java
        public void init()
            startClient();
        public void startClient()
            try
                connection = new Socket(InetAddress.getByName(TienLenHost), 12345);
                input = new Scanner(connection.getInputStream());
                output = new Formatter(connection.getOutputStream());
            catch (IOException ie)
                stop();
            ExecutorService worker = Executors.newFixedThreadPool(1);
            worker.execute(this);
        }So after worker.execute(this), it should go to Server.java and run the function execute() right? But in my case, it doesn't. If you know how to fix this, please let me know. Thanks!

  • [Ask] Getting Started to Java Card 2.2.2 or 3.0

    Hi Friends..
    I'm currently tasked to create Java Card application that would be loaded to MIFARE / DESFIRE Card..
    How to solve it?..
    I have Omnikey Cardman 5321 SmartCard Reader, and i have MIFARE and DESFIRE Card.
    I've tried to created simple Java Card application (Java Card 3.0)..
    Actually, i prefer Java Card 3.0 because its based on Servlet.. (i'm more familiar with Servlet than Applet :) )
    Could i load that application onto MIFARE / DESFIRE Card?..
    Is there any Card that have supported for Java Card 3.0?..
    or do i've to use Java Card 2.2.2?..
    How to getting started with Java Card 2.2.2?..
    is there any books that described about it?..
    Thanks in advanced..

    hanks safarmer for your reply..
    yes, i've compiled and run that code in Netbeans 6.9m1, but i got this message error :
    Exception in thread "main" javax.smartcardio.CardException: connect() failed
            at sun.security.smartcardio.TerminalImpl.connect(TerminalImpl.java:67)
            at javaapplication1.Main.main(Main.java:32)
    Caused by: sun.security.smartcardio.PCSCException: SCARD_W_UNRESPONSIVE_CARD
            at sun.security.smartcardio.PCSC.SCardConnect(Native Method)
            at sun.security.smartcardio.CardImpl.<init>(CardImpl.java:65)
            at sun.security.smartcardio.TerminalImpl.connect(TerminalImpl.java:61)
            ... 1 more
    Java Result: 1The card's status is SCARD_W_UNRESPONSIVE_CARD.
    How to solve this? How to make the SmartCard become a "RESPONSIVE CARD"?..
    Please help me regarding this..
    Thanks in advance..

  • FAQ: How do I get started with Photoshop Elements Editor, or What do all these tools do?

    Opening an image editing application for the first time can be intimidating. The more powerful the tool, the more complicated it can be to learn to use. Below are a list of resources to help you get started with the Photoshop Elements Editor.
    I just bought Photoshop Elements, where do I start?
    There are a lot of directions you can go when you first make your purchase. Here is your first roadmap.
    Getting Started Tutorials
    What do all these terms mean?
    There are some common words tossed around when talking about image editing or tool use. Here is a helpful guide to define these: Photoshop Elements key concepts
    Photoshop Element Help Topics:
    Workspace basics
    Tools
    Color and tonal correction basics
    Elements Basics, an overview of Elements' essential concepts on Photoshop Elements User.com
    Where can I find some tutorials on the web?
    There are many resources for learning Photoshop Elements on the internet. Here are some that we recommend.
    Photoshop Elements: Where can I find some good basic tutorials? on the Photoshop Feedback site.
    Like Photoshop Elements on Facebook for daily tutorials and inspiration. As well as the occasional contest.
    Editing Tutorials for Photoshop Elements on Photoshop.com
    Getting Started with the Elements Editor on Photoshop Elements User.com
    Photoshop Elements for Dummies.com
    What about video tutorials?
    Some find it easier to watch a product being demonstrated and explained by an expert
    Learn Photoshop Elements 11 on Adobe TV
    Photoshop Elements channel on YouTube
    Where can I find books about learning Photoshop Elements?
    Photoshop Elements books on Pearson Peachpit Press

    Hi Christoph and WarriorAnt,
    Thank you both for the replies.
    I don't know anything about GarageBand because I've never used it. I've never used any music software before, (other than iTunes, Ha!)
    I don't have GarageBand on my Mac because it wasn't stock on the old Powerbook G4, so I would have to buy it. I'm happy to do that if I can figure out that it does what I want ... but I'm overwhelmed by the info at Apple's site. Too much for a beginner like me. Even the wikipedia.com entry for GB uses too many terms I don't know, so I'm easily lost.
    I just want to be able to set up drum loops and play along with them. The main thing is that I'm able to use third party loops. There are so many really amazing loop products out there ... jungle drums, acoustic jazz drums, lounge, etc. I don't want to get caught up in anything proprietary (like Band-In-A-Box) because the selection is limited. I'm sure GarageBands loops are great, but I want access to all these other third party loops as well ... loops that were not specifically made for GarageBand.
    Will GarageBand let me drop in any and all drum loops from these other companies?
    And does GarageBand work like a basic sequencer, where I can program up an intro, X number of measures of a loop, then a turnaround, then a variation loop, then an ending, etc?
    I know the high-end stuff like Native Instruments Kontakt does this, but unfortunately it also does a kazillion other professional-level things I will never need and don't want to pay for (and which make the software more complex and daunting).
    Thank you again, both of you, for responding and helping me with this project.
    Just a little more advice on those two questions would really go a long way.
    -JOHN

  • Getting Started with 9iAS Wireless

    I installed the 3 CDs for 9iAS and when I look at my inventory for installed Oracle products I see that 9iAS wireless is installed, however I can't find any documentation, links or admin programs that help me get started with it. I have a WAP emulator and I want to write applications in PLSQL in the XML format, however it rejects them claiming that the page is HTML and not accepted. What do I need to do to write applications in PLSQL that will work on a WAP enabled device.
    Thanks

    You can find documentation to Oracle9iAS Wireless Release 2: http://otn.oracle.com/docs/products/ias/doc_library/90200doc_otn/wireless.htm
    In the Getting Started and System Guide, you can find a walkthough of the product: http://otn.oracle.com/docs/products/ias/doc_library/90200doc_otn/wireless.902/a90486/pags.htm#1005603
    Additionally, here is a link to a hosted version of Oracle9iAS Wireless called the Mobile Studio: http://studio.oraclemobile.com. This has infrastructure set up so you can easily access your application through voice, SMS, any mobile browser...
    Hope this helps,
    Kalle
    [email protected]

  • How to get started with SNMP.. please help me

    I am completely new in SNMP but I really really want to learn it so please help me :)
    I have tried to type snmpget and snmpwalk  in the prompt with some proper device �and OID information and I get some information back (do not really understand the return massages though).
    But I would like to make a manager program in java that calls some network-clients and report the return messages. I would like to use snmp4j (is this a good choice?).
    If somebody have some piece of simple code that sets up a manager- client snmp program, I would be so happy to see it.
    Thanks a lot in advance.
    (If anyone knows some good tutorials or anything that can help me get started I will also appreciate this)

    try using Delete Messages Once Read or write ur own module for achieving the same or use SAP Connect for acheiving the same..if ur intention is to just read mails..!

Maybe you are looking for

  • Aperture 3.0.3 annoying warning message

    Hi I have Aperture 3.0.3 running on both Macbook Pro and first generation iMac. Up until now I have enjoyed and had no problems running Aperture which i have used since version 1.5. Referenced Nef files 30K. Upgraded to 3.0.3 and now have an annoying

  • Dynamic Configuration URL

    Hello, We had a working solution for dynamic URL settings for HTTP adapter from the message mapping using UDF as mentioned in the previous blogs and help.sap. But after a recent update of support packs the URL seems to be getting incorrect values. Is

  • How to use crystal Reprot

    Hello SAP Guru, I want to work crystal report but i don't have any idea. Please give me idea how to work. How to install crystal report and how to create crystal report please give me link Crystal report down-loader and give me crystal report  integr

  • What is restriction passcode of iPhone 5?

    Anyone knows the restriction passcode of iPhone 5

  • Adobe Reader - Print Dialoge box is usable

    Yesterday I was running Reader ver. 10.1.3 on a Windows 2008 x64 Terminal Server.  All users Adobe Reader print dialoge boxes now open up very very large.  Any visible font is perhpas 10" tall (see screenshots below).  Drop down pick lists don't disp