A friendly place for programming greenhorns!
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
Author
Using Vector2d in applet
Tom Tolman
Ranch Hand
Joined: Sep 02, 2004
Posts: 83
posted
Sep 07, 2005 09:06:00
0
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
posted
Sep 07, 2005 16:53:00
0
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
posted
Sep 08, 2005 10:11:00
0
The classes are in a file called "vecmath.jar", which comes as part of Java3D.
Android apps
–
ImageJ plugins
–
Java 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
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter