Re: visad 2-d successfully installed, now question on the java3d installation

  • To: Curtis Rueden <ctrueden@xxxxxxxx>
  • Subject: Re: visad 2-d successfully installed, now question on the java3d installation
  • From: Victor Shum <vshum12@xxxxxxxxxxx>
  • Date: Wed, 5 Jan 2005 00:38:29 -0800 (PST)
Thanks Curtis!

Now with your guidance I can run the java DisplayTest
part ( previously I missed the :. in the classpath), 

However I still have errors when running the
ss.SpreadSheet, error being (I think mostly with the
XFree86-DRI as follows, though the icon and cells came
up with the clickable 2D or 3D buttons): 

[root@sbc]#java visad.ss.SpreadSheet
Xlib:  extension "XFree86-DRI" missing on display
":0.0".
java.lang.reflect.InvocationTargetException
        at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at
java.lang.reflect.Method.invoke(Method.java:585)
        at
visad.util.GUIFrame.actionPerformed(GUIFrame.java:161)
        at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
        at
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
        at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
        at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
        at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
        at
java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
        at
java.awt.Component.processMouseEvent(Component.java:5488)
        at
javax.swing.JComponent.processMouseEvent(JComponent.java:3093)
        at
java.awt.Component.processEvent(Component.java:5253)
        at
java.awt.Container.processEvent(Container.java:1966)
        at
java.awt.Component.dispatchEventImpl(Component.java:3955)
        at
java.awt.Container.dispatchEventImpl(Container.java:2024)
        at
java.awt.Component.dispatchEvent(Component.java:3803)
        at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
        at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
        at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
        at
java.awt.Container.dispatchEventImpl(Container.java:2010)
        at
java.awt.Window.dispatchEventImpl(Window.java:1766)
        at
java.awt.Component.dispatchEvent(Component.java:3803)
        at
java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
        at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
        at
java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Caused by: java.lang.RuntimeException: Assertion
failure: java.lang.reflect.InvocationTargetException
        at
visad.java3d.UniverseBuilderJ3D.destroy(UniverseBuilderJ3D.java:128)
        at
visad.java3d.DisplayPanelJ3D.destroy(DisplayPanelJ3D.java:81)
        at
visad.java3d.VisADCanvasJ3D.stop(VisADCanvasJ3D.java:320)
        at
visad.java3d.DisplayRendererJ3D.destroy(DisplayRendererJ3D.java:158)
        at
visad.java3d.DefaultDisplayRendererJ3D.destroy(DefaultDisplayRendererJ3D.java:103)
        at
visad.java3d.DisplayImplJ3D.destroy(DisplayImplJ3D.java:720)
        at
visad.ss.BasicSSCell.constructDisplay(BasicSSCell.java:1566)
        at
visad.ss.BasicSSCell.setDimension(BasicSSCell.java:1823)
        at
visad.ss.SpreadSheet.setDim(SpreadSheet.java:2041)
        at
visad.ss.SpreadSheet.setDim2D(SpreadSheet.java:2033)
        ... 30 more


--- Curtis Rueden <ctrueden@xxxxxxxx> wrote:

> Hi Victor,
> 
> You can find Blackdown's Java3D port for Linux at:
>    
>
http://www.blackdown.org/java-linux/jdk1.2-status/java-3d-status.html
> 
> Run this installer from within your Java
> installation directory. 
> Afterward, Java3D-related JAR files will
> automatically be detected by 
> Java; that is, you should not have to add anything
> to your CLASSPATH if 
> you are using "javac" and "java" for development.
> (If you need the 
> Java3D-related JAR files for "jikes" or other
> third-party software, they 
> are: 
>
$JAVAHOME/jre/lib/ext/j3daudio.jar:$JAVAHOME/jre/lib/ext/j3dcore.jar:$JAVAHOME/jre/lib/ext/j3dutils.jar:$JAVAHOME/jre/lib/ext/vecmath.jar
> 
> -- where $JAVAHOME is where you installed the JDK,
> usually something 
> like /opt/java or /usr/local/java).
> 
> If you are using Linux with the default shell
> (bash), don't use setenv, 
> use export. For example:
>     export CLASSPATH=/opt/visad.jar
> 
> You can test whether Java3D is installed correctly
> and your CLASSPATH is 
> set properly by attempting to run the VisAD
> SpreadSheet:
>     java visad.ss.SpreadSheet
> 
> If you want to run the VisAD examples, you will need
> to get them from:
>    
>
ftp://ftp.ssec.wisc.edu/pub/visad-2.0/visad_examples.jar
> 
> You will need to extract this JAR file to its own
> directory:
>     jar xvf visad_examples.jar
> 
> And you will need to include the current directory
> (".") in your 
> CLASSPATH, because the examples are packageless:
>     export CLASSPATH=/opt/visad.jar:.
> 
> You should then be able to run the examples:
>     cd visad/examples
>     java DisplayTest
> 
> Let us know if you are still having trouble.
> 
> -Curtis
> 
> Victor Shum wrote:
> 
> >Dear Visad users, 
> >
> >Thanks for Bill and Tom's advising, I've
> successfully
> >used the correct visad.jar and installed correctly
> >(tested by running the java visad.ss.SpreadSheet
> >command).
> >
> >Now I came across the problem of getting java3d to
> >run. 
> >I have done setenv CLASSPATH
>
>"/opt/visad.jar:/opt/jdk1.5.0_01/java3d-utils-src.jar"
> >
> >and have run java3d-sdk-1.3.1-linux-i386.bin under
> >/opt/jdk1.5.0_01 successfully for it to generate
> >java3d-utils-src.jar in that directory. 
> >
> >However, when I ran java HelloUniverse under the
> >/opt/jdk1.5.0_01/demo/java3d dir  I got a noclasdef
> >error . 
> >
> >I read the README for the java3d and gathered I
> need
> >the xfree86 software (right?)
> >
> >I downloaded the Xinstall.bin from: 
>
>http://ftp.xfree86.org/pub/XFree86/4.4.0/binaries/Linux-ix86-glibc23/
> >
> >and ran that but I got the error telling me to
> >download 
> >extract and the rest of the Xfnt.bin etc. 
> >
> >I'll do that but I'd also like to ask the visad
> >community why that should be required to run java3d
> or
> >is that bogus?
> >
> >Thanks!
> >
> >Bst,
> >Victor
> >  
> >
> 
> 


  • 2005 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: