Not running the 1st program

when i run:
import com.sun.j3d.utils.universe.SimpleUniverse;
import com.sun.j3d.utils.geometry.ColorCube;
import javax.media.j3d.BranchGroup;
public class Hello3d {
public Hello3d()
   SimpleUniverse universe = new SimpleUniverse();
   BranchGroup group = new BranchGroup();
   group.addChild(new ColorCube(0.3));
   universe.getViewingPlatform().setNominalViewingTransform();
   universe.addBranchGraph(group);
public static void main( String[] args ) {
   new Hello3d();
} // end of class Hello3dIt gives the following error. Why?
what should i do?
Error:
java.lang.UnsupportedClassVersionError: javax/media/j3d/Group (Unsupported major.minor version 49.0)
     at java.lang.ClassLoader.defineClass0(Native Method)
     at java.lang.ClassLoader.defineClass(Unknown Source)
     at java.security.SecureClassLoader.defineClass(Unknown Source)
     at java.net.URLClassLoader.defineClass(Unknown Source)
     at java.net.URLClassLoader.access$100(Unknown Source)
     at java.net.URLClassLoader$1.run(Unknown Source)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.net.URLClassLoader.findClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Exception in thread "main"

According to the tutorial of Java3D.The basic outline of Java 3D program development consists of seven steps presented below:
1. Create a Canvas3D object
2. Create a VirtualUniverse object
3. Create a Locale object, attaching it to the VirtualUniverse object
4. Construct a view branch graph
a. Create a View object
b. Create a ViewPlatform object
c. Create a PhysicalBody object
d. Create a PhysicalEnvironment object
e. Attach ViewPlatform, PhysicalBody, PhysicalEnvironment, and Canvas3D objects to View
object
5. Construct content branch graph(s)
6. Compile branch graph(s)
7. Insert subgraphs into the Locale
        GraphicsConfiguration config =  SimpleUniverse.getPreferredConfiguration();
        Canvas3D canvas3D = new Canvas3D(config);
        add("Center", canvas3D);
        BranchGroup scene = createSceneGraph();
        SimpleUniverse simpleU = new SimpleUniverse(canvas3D);
        simpleU.getViewingPlatform().setNominalViewingTransform();
        simpleU.addBranchGraph(scene);

Similar Messages

  • How to run the package programs in eclipse ?

    hi all,
    how to run the package programs in eclipse ?
    plz clarify...
    regards
    balakrishna.m

    package source code is
    package package1;
    public class ClassaA
              public void displayA()
                   System.out.println("class A");
         }java source code is import package1.ClassA;
         class Packagetest1
              public static void main(String args[])
                   ClassA objectA = new ClassA();
                   objectA.displayA();
         }if i write the notepad means its executing successfully..
    but in eclips is not working..
    plz help me..

  • When I close and restart, I can't open Firefox 4 without running the install program again.

    I downloaded Firefox 4. It works fine. If I close it I can reopen it by clicking the desktop icon. But when I restart the PC (running Vista business 2007) the icon doesn't work. I get an error message. I need to re-run the installation program every time I restart my PC. Can you fix this?

    You get message "firefox is still running" and computer restart doesn't help you. Try the advice below.
    Make sure Firefox isn't running (end firefox.exe process in Task Manager or restart computer)
    Find your profile folder
    C:\Documents and Settings\USERNAME\Application Data\Mozilla\Firefox\Profiles\xxxxxxxx.default
    find file "parent.lock" in it and delete it (the file is empty, its function is to signify to Firefox whether it's already open or not).
    Then try to open Firefox again. Will it start or not? What will it say?

  • PP Procedure is Missing, Can not Run the Preprocessor

    hi experts,
    while executing some module program through TCODE. I got this error  PP Procedure is Missing, Can not Run the Preprocessor
    can any one help me ?
    thanks,
    nag.

    Hello,
    What I thought you meant when you said "Port" was that you were using a Distribution project to move it to other machines.  Therefore you have two options to proceed.
    1)  Copy the nicppaiu.dll from the system folder on your machine to the system folder on another machine you are "Porting" to.
    2)  Add a project to your solution that is a Setup project.  Then add the output of your application to this project and add the MSM discussed earlier.  This will create a MSI that can be used to install your application on multiple machines (it still requires a NI-DAQmx install).
    There is a good topic in our help named "Deploying Measurement Studio Applications" that tells you everything you need to know.
    Regards,
    Jeff

  • I could not run any application program

    I could not run any application program( even thouht the simplest one such as helloword). It would give NoClassDefoundError as:
    Exception in thread "main" java.lang.NoClassDefFoundError: Welcome1
    Press any key to continue . . .
    I use text pad editor. First I compile it, there is no error. But when I try to run ( by click run java application program button ) it gives me the same error message.
    I also always have compile error such as no class define when I try compile the program which need to import user defined class from differerent package. ( even though I did put all the classed in the same directory and also use import statement)
    I did try to run many other applet programs which do not use any user defined class, in this case every thing work fine and I could run the program.
    That mean I could run simple applet program but not application, also i always have compile error when ever I tried to import user defined class.
    I'm afriad there is some thing wrong with the sdk and java enviroment, therefore I did try to uninstall the program and redownload from the web( I try both version 1.3 and 1.4 many time, and I did check the size of the application when I finish down load) but I still got the same problem.
    My computer operating system is WinMe.
    I appreciate any help
    Ha Tran

    When I was trying to write my final project(Client/Server Application with java & CORBA)I could not compile The simplest program like HelloWorld for Idl(Errors like yours).After two month accidentally I write set classpath= and HelloWorld start to work.I start to read the tutorial again,and I see that sun say it in the tutorial but I don't understand it because I read it fast.So it was somthing wrong with me not with sun.They work very hard.I like to work in sun in future.

  • I am asked if I want to OPEN (not RUN) the download to install Flash Player.

    When I click Install now, I am asked if I want to OPEN (not RUN) the download. When I click on Open, nothing happens. Am using Windows 7 and Internet Explorer 11. I managed to save the download, but when I double-click it, I am asked what program I want to use to OPEN it. It does not RUN. The file is install_flashplayer16x32ax_gtbd_awe_aih_exe . What do I do? Is there something wrong with the Adobe Flash Player download site?

    I solved the problem by using Chrome. In https://get.adobe.com/flashplayer/ , I clicked on Do you have a different operating system or browser? I then selected Windows 7 and FP 16 for Internet Explorer – ActiveX . When I clicked on Download now, I was asked if I wanted to RUN the download, and it worked fine. My guess is that I must have some setting in Internet Explorer that was interfering with the download being able to RUN properly.

  • HT1349 I can not run the scanner in my main user, but only the second user and the same thing with updating apps! Why is this happening???

    I can not run the scanner in my main user, but only the second user and the same thing with updating apps! Why is this happening???

    Welcome to the Apple Community.
    Enter the details of her second account at system preferences> mail, contacts & calendars.

  • Error When running the Client Program

    hi all,
    i got exception while running the Client program
    "Cannot instantiate class: weblogic.jndi.WLInitialContextFactory [Root exception is java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory]"
    plz solve my problem ASAP.
    thanks in advance..
    from
    sree

    thanks this problem solved...
    but i got another exception
    javax.naming.NameNotFoundException: Unable to resolve 'ExeBean' Resolved: '' Unresolved:'ExeBean' ; remaining name 'ExeBean'
    thanks in advance
    from
    Sree

  • Error when running the LabVIEW program

    hello...........
    I'm newbie in LabVIEW....I have a problem when i'm running the LabVIEW program...i want to analyse data using the LabVIEW through the real experiment....
    My problem is, there is an Error when i try to start the program...This Error forced me to restart the program several times until it can run.......By the way, i'm using Picoscopes 3206 to connect the LabVIEW program in PC with the real experiment.....
    Here, I'm attached the picture that I snap when the Error occur....
    Attachments:
    error.JPG ‏222 KB

    You have to try to isolate the problem...
    Use 'Diagram disable' or 'Case' structure to run special part of code or try write a specific code to access and manage your equipment.
    Several questions could help: 
    - Are you up to date with your hardware driver?
    - Do you call external ressources (ex: dll)? perhaps with instability
    - Do you properly close connection with your equipment after using? 
    - With your offline mode, do you load all the code, including hardware driver or do you use a special method without no loading the specific code?
    - When you are able to run after many tries, is the program stable? Can you re-start it without exiting LabVIEW?

  • I recently purchased the iPhone 5 and my itunes account on my iMac 7,1 will not recognize it as a device. My imac has stopped downloading new updates, it says it is up to date with iTunes 9.2.1. My imac will not run the newest 10.7 itunes either. HELP!!

    I recently purchased the iPhone 5 and my itunes account on my iMac 7,1 will not recognize it as a device. My imac has stopped downloading new updates, it says it is up to date with iTunes 9.2.1. My imac will not run the newest 10.7 itunes either. All I want to do is put my music from itunes on my computer to my new phone. HELP please!!

    i called apple and they are sending me snow leopard so i should, *fingers crossed, be able to run the newer version of itunes. we'll find out for sure in a few days when it arrives

  • Format changing after running the concurrent program for indentation

    Hi
    I have got an issue regarding indentation in rtf template. Actually in the template I have indentation or numbering in one format like david but after running the concurrent program in the temlate output I am getting the numbering in Latin letters. like
    I
    II
    III
    etc.
    can anyone please send me the resolution for this issue.
    Thanks and regards
    kk

    What is the application release?
    If you are on 11i, please make sure you have (Patch 8198363: INDENTATION PROBLEM WHILE GENERATING RTF OUTPUT USING RTF TEMPLATE) applied and check then.
    Thanks,
    Hussein

  • I wanted a solution to the problem I was having on Win 7 Pro Service Pack 1 in that links on an open Adobe Acrobat file will not open in my Firefox Browser 33.0.2. The Error I receive is "Acrobat could not run the web browser.  Unknown Error. (123)"

    I want a solution to the problem I was having on Win 7 Pro Service Pack 1 in that links on an open Adobe Acrobat Pro 10.1.12  file will not open in my Firefox Browser 33.0.2. The Error I receive is "Acrobat could not run the web browser.  Unknown Error. (123)"

    Change browsers. See what happens.
    Be well...

  • I have a pdf file with the added sounds, so I can not run the sound in adobe reader XI on my tablet samsung galaxi pro (android)

    I have a pdf file with the added sounds, so I can not run the sound in adobe reader XI on my tablet samsung galaxi pro (android)

    Thanks for writing to us. Unfortunately, such advanced javascript support is currently not provided by Adobe Reader for Android.
    Thanks,
    Adobe Reader Team

  • Web links in .pdfs inoperable- "Acrob. could not run the browser"

    I keep my Adobe Reader updated often, but I've been experiencing a severe inconsistency with the ability to open a (FFox) web page by clicking a link given by the author of any given .pdf., embedded in it. Sometimes it works and opens up the new FFox page OK. But maybe a little more than half the  time I first get a security warning, "The document is trying to connect to (URL). If you trust this site, choose 'Allow'. If you do not trust this site, choose 'Block' ".   So, I'll click 'allow' and then I get a window saying, "Acrobat could not run the web browser.    Unknown error (740).
    I've tried to find out more about an error 740, but there's no relation online between any error w/ that # and Adobe. It reads kind of contradictory anyway, since it says "unknown error" but then gives you an error #.  Ideas, anyone? Thanks.
    (Message was edited by: Victorious57)

    I'm having the same problem and have found a few suggestions from different places that may help.
    1. Add the site / host to the trusted sites list in Internet explorer. E.G http://hostname or file://hostname or hostname.
    2. In Adobe reader or Acrobat go to START>PREFERENCES>JAVA SCRIPT Untick 'enable Acrobat JavaScript'.
    3. Create the documents from open office and use the export to PDF option.
    The last option seemed to work when adding the hostname to the trusted sites list in IE 8 (IE 6 didn't work)
    One thing I noticed when I created PDF's this way is the link was displayed as file://hostname/share/doc.pdf.
    When I converted a document from MS Word 2007 and used Acrobat standard to convert the document the link was displayed as file://///host/share.doc.pdf.
    I'm not sure why the extra //// were added but it seems that MS word puts the hyperlink in this format.
    As I said creating the document in Open Office worked when I added the host in IE 8's trusted site list but this isn't acceptable for me due our SOE restrictions.
    Our setup is as follows..
    XP Pro SP2
    Internet Explorer 6
    Adobe Acrobat Standard 9.3

  • I am running ver 9.0.1, but I keep getting the message that I am not running the latest version? Why? and how can I get rid of this message?

    On my firefox start up screen, I get the message that I am not running the latest. It asks that I upgrade now. However, under "about firefox," I am running 9.01, the latest version. I'd like to know why I'm getting this message and how I can get rid of it.
    Thank you.

    Hi jerzyguitar,
    You may see that message below the Google search box on www.google.com/firefox which is the old Firefox default home page. That page is no longer being maintained by Google.
    You should try changing your home page to:
    about:home
    If you don't know how to change the home page, you should take a look at the Knowledge Base article [[How to set the home page]].
    Hopefully this helps

Maybe you are looking for

  • VoiceOver with iTunes 64 bit on Windows 7 64 bit problem

    Is anyone using VoiceOver with iTunes 64 bit on Windows 7 64 bit? We cannot get it to work. I have followed Apple's guideance and uninstalled/reinstalled iTunes and the .dll has been moved from the root directory of C: to the iTunes program directory

  • Windows 7 bootcamp problem, my iMac won't download support software

    I am trying to use bootcamp to instal Windows 7 on my iMac desktop, But I keep getting a message saying no support download is availible. What do i do to get bootcamp working?  I need windows for School for my engineering class and C++ classes.  Can

  • SOA FTP Adapter stops working abruptly

    Hi All, I have a ftp service which provides XML file streams real-time on a remote machine. I connect to this FTP server using the SOA FTP adapter and process files by polling based on timestamp every 3 seconds. The issues I face are 1) The ftp adapt

  • Oracle Reports complex query

    Hi Friends, I am a newbie on oracle reports. I am ask to revise/debug a complex report. This is the partial source of the Oracle Report Query: select  mta.transaction_date,         &P_acct_flex,              DECODE(mta.transaction_source_type_id,1,to

  • [10.1.2]Problem with adminoc4j

    Hi I am trying to using OC4J standalone edition 10.1.2.0.0 with the JDK 1.4.2 from SUN . I added teh configuration for activate the admin_web application. When I try to do any administrative task, I have the following error : java.lang.NullPointerExc