Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using Vector2d in applet

 
Tom Tolman
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 1526
14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The classes are in a file called "vecmath.jar", which comes as part of Java3D.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic