aspose file tools
The moose likes Applets and the fly likes Using Vector2d in applet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Applets
Reply Bookmark "Using Vector2d in applet" Watch "Using Vector2d in applet" New topic
Author

Using Vector2d in applet

Tom Tolman
Ranch Hand

Joined: Sep 02, 2004
Posts: 83
I want to use Vector2D in an applet. What do I need to install to get access to it, and how do I set the classpath variable to utilize it?

I know I need to import javax.vecmath.*;

but this fails with javac it says "does not exist"

Thanks for any pointers

(And on a related note...

- If I use this, can I distribute my applet and will it run everywhere? If so, does it "link in" the utilized vector2d code, and how does this work?)
Norm Radder
Ranch Hand

Joined: Aug 10, 2005
Posts: 681
Do you know what package the Vector2D class is in? I don't see it in the java 1.5 API doc.

Where are you reading the API doc on how to use this class? Does it say what jar files or ?? you need to be able to use it?

When you find the jar file with that class you will have to include it in the classpath to compile and also to execute your program.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35241
    
    7
The classes are in a file called "vecmath.jar", which comes as part of Java3D.


Android appsImageJ pluginsJava web charts
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Using Vector2d in applet
 
Similar Threads
applet and application
getCodeBase ALT?
Data Structure
Prayer to math gods: finding the angle of two vectors
How to approach my setters