Menu

Java3d and mac

2008-01-19
2013-04-26
  • Nobody/Anonymous

    This plugin works on mac also ?
    When i try to launch a plugin using java3d i get

    java.lang.NoClassDefFoundError: javax/media/opengl/GLCapabilitiesChooser 

    the same code on windows works fine. any suggestion ?

     
    • Aleksandar Ristovski

      It is *supposed* to work on mac, but I do not have access to a mac machine and haven't tested it. I would appreciate your help.

      For start, please check if your system meets the system requirements (from https://j3d-core.dev.java.net/j3d1_5_1/RELEASE-NOTES.html\)

      Mac OS X

      The 1.5.1 version of Java 3D for Mac OS X (PPC or x86) requires the following:

          * JDK 1.5.0 or later from Apple: http://developer.apple.com/java/download/
          * Java Binding for OpenGL (JOGL), available at: https://jogl.dev.java.net/
            you can click here for a direct link to the download folder
          * Apple OS X 10.3 or later (10.4 or later is required for Intel-based Apple systems)
          * Support for OpenGL 1.3 or later

      I *think* you might be missing JOGL. JOGL is not packaged with java3d plug-in.

      Let me know what you find and we can go from there.

      Thank you,

      Aleksandar

       
    • Nobody/Anonymous

      I already tried to make an eclipse plugin from JOGL jar but i had no success. Anyway i'll try again to go deeper in the problem. At a first look it seems a build path problem.
      I'll let u know any progress. What i was interested in, was to know if there was any native library bundled with your plugin.

      --
      giulio

       
      • Aleksandar Ristovski

        There are no native libraries for mac in java3d since it uses jogl (for other OS-es, there are).

        If you still have trouble packaging JOGL as a plugin, checkout java3d plugin project and take a look ( http://java3d-eclipse.svn.sourceforge.net/viewvc/java3d-eclipse/java3d.plugin/trunk/1.5.1/java3d-1_5-linux-i586/ ). In the fragment for your jogl plugin, you place the native libraries.

        Native library should be placed in a directory named in a particular way. It is important to name directories correctly, Eclipse has built-in mechanism to lookup the native libraries in the directories named in such a way:

        os/<os>/<cpu1>
               /<cpu2>

        For exact values of <os> and <cpu> take a look at org.eclipse.core.runtime.Platform class.

        Hope this helps.

        p.s. let me know when you have JOGL plugin working.

        Aleksandar

         
    • Nobody/Anonymous

      In the file java3d_macosx_1.5.1.jar (the eclipse plug-in for os x) the following files from jogl-1.1.0-macosx-universal.jar (could be found on the jogl website) needed to be added:

      from: jogl-1.1.0-macosx-universal.jar => to: java3d_macosx_1.5.1.jar

      lib/libgluegen-rt.jnilib -> libgluegen-rt.jnilib
      lib/libjogl.jnilib -> libjogl.jnilib
      lib/libjogl_awt.jnilib -> libjogl_awt.jnilib
      lib/libjogl_cg.jnilib -> libjogl_cg.jnilib

      lib/gluegen-rt.jar -> lib/gluegen-rt.jar
      lib/jogl.jar -> lib/jogl.jar

      have fun

      bye
      Pascal

       
      • Aleksandar Ristovski

        Hello Pascal, the latest update site includes jogl 1.1.2 packaged as a plugin.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.