Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5963841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:19:32+00:00 2026-05-22T19:19:32+00:00

Trying to build against javax.vecmath using the 1.5.2 jar file (found on Java.net http://java3d.java.net/binary-builds.html

  • 0

Trying to build against javax.vecmath using the 1.5.2 jar file (found on Java.net http://java3d.java.net/binary-builds.html, for example).

Try to make a call on, say Point3d;

public class Foo {
  public static void main(String[] args) {
    Point3d t = new Point3d(1.0, 1.0, 1.0);
    System.out.println(t.getX());
  }
}

In 64 bit Windows and Linux (I’ve only tried Ubuntu 10.04, 64 bit), this compiles and runs.

In OS X (10.6.7) it will not compile:

...: cannot find symbol
  symbol  : method getX()
    location: class javax.vecmath.Point3d
    System.out.println (t.getX());

This is using the exact same physical vecmath.jar

If instead I use the source directly, it compiles on OS X, but does not run

Exception in thread "main" java.lang.NoSuchMethodError: javax.vecmath.Point3d.getX()D

If I compile the sources myself on OS X to a jar file, and then use the jar in the example above, again, unable to compile.

Now, the fields being accessed are in javax.vecmath.Tuple3d, which is an abstract class with public fields for x, y and z. So on OS X this will work (actually, it seems to work everywhere).

public class Foo {
  public static void main(String[] args) {
    Point3d t = new Point3d(1.0, 1.0, 1.0);
    System.out.println(t.x);
  }
}

The thing is, I’m working on a code base that depends on vecmath.jar, and in which the maintainers are on Windows and wish to keep using the accessor methods, but I’m on OS X.

I’m looking to both:

(1) understand what is going on
(2) figure out how to make these sources portable while depending on the vecmath.jar file.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T19:19:33+00:00Added an answer on May 22, 2026 at 7:19 pm

    The “Exception in thread “main” java.lang.NoSuchMethodError: javax.vecmath.Point3d.getX()” indicates that not the 1.5.2 version but the Apple version 1.3 of vecmath.jar is accessed. The *getter” and “setter” methods were introduced in 1.5.

    Check if Apple’s out-dated Java 3D version 1.3 is installed in System/Library/Java/Extensions/ on your Mac. Remove all Java 3D 1.3 related files including vecmath.jar (jar, jnilib), they are useless.

    August, InteractiveMesh

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: compiling project with jdk1.5 using maven2 I am trying to build java
I'm trying to build a test environment to test an app against oracle and
Trying to build a GUI application in Java/Swing. I'm mainly used to painting GUIs
Im trying to build call to action button on my site using jQuery. I
I am trying to build a test against some legacy method that implement out
I'm trying to build an application using the OpenNURBS toolkit (see here) and I'm
Im trying to build and automated log in using Googles authSub, but I need
I'm trying to build a C++ extension for python using swig. I've followed the
I am trying to build a pass using llvm and I have finished building
I'm trying to build the boost libraries and others against the os x 10.4u.sdk

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.