You are here:

Java/Classpath usage

Advertisement


Question
QUESTION: Hi there!
Good day there!
I have here a link to a built-in class of what I am going to use, but I don't know how to use it. Can you please help me understand these codes and how will I use it? thanks.

I badly need some help here. Thanks for the time.
Here is the link to a Tukey class: http://piface.r-forge.r-project.org/javadoc/rvl/stat/dist/Tukey.html


ANSWER: Hi Mamoy,
The link is for the statistics methods in class rvl.stat.dist.Tukey.
I am not an expert in statistics so I cannot tell you what they do. I can tell you how to execute them.

You go to this link:
http://r-forge.r-project.org/projects/piface/

Download the zip file of this package. In it you will find the JAR file: piFace.jar.
Extract this JAR file and add it to your Java classpath, and then you will be able to use the methods in it, such as those in rvl.stat.dist.Tukey.

Let me know if you need more information.
Ziv.


---------- FOLLOW-UP ----------

QUESTION: Hi there!

Thank you for responding. I have done everything that you've instructed, from downloading up to extracting. However, I'm not sure about what to do in adding it to the Java classpath. Am I going to edit the path in the Systems variables in the environment variables inside the advanced tab when the properties dialog box is opened?
And where shall I direct the path?
Because when I extracted the piface.jar there are 2 folders named "rvl" and "meta-inf".

Thank you for your time.

Answer
Hi Mamoy,
Don't extract the JAR file.
If you use an IDE (such as Eclipse or Intellij) then you should go to project properties and add the file to the classpath there.
If you execute Java from command-line then to include the JAR you do:
To compile:
javac -classpath d:\your\dir\piFace.jar <your source files>
And to run:
java -classpath d:\your\dir\piFace.jar <your class files>

Ziv.

Java

All Answers


Answers by Expert:


Ask Experts

Volunteer


Ziv Ben-Eliahu

Expertise

I can answer questions relating to: Java language and usage, coding standards, application modeling and design (model driven development), unit/system testing, test driven development, algorithm complexity issues, Ant and XML-technologies.

Experience

I'm in the software industry for over 4 years now. I worked mainly with Java, but also with other languages. I gave practical session for "System Programming", in university.

Organizations
Open-Source community

Publications
WikiAI08

Education/Credentials
B.Sc. in Math and Computer Science, BGU.
M.Sc. in Computer Science, BGU.

Past/Present Clients
Open source (and free) projects: D.U.C.K (source-forge), JXN for wireXN.

Organizations
Open-Source community

Publications
WikiAI08

Education/Credentials
B.Sc. in Math and Computer Science, BGU.
M.Sc. in Computer Science, BGU.

Past/Present Clients
Open source (and free) projects: D.U.C.K (source-forge), JXN for wireXN.

Publications
WikiAI08

Education/Credentials
B.Sc. in Math and Computer Science, BGU.
M.Sc. in Computer Science, BGU.

Past/Present Clients
Open source (and free) projects: D.U.C.K (source-forge), JXN for wireXN.

Education/Credentials
B.Sc. in Math and Computer Science, BGU.
M.Sc. in Computer Science, BGU.

Past/Present Clients
Open source (and free) projects: D.U.C.K (source-forge), JXN for wireXN.

Past/Present Clients
Open source (and free) projects: D.U.C.K (source-forge), JXN for wireXN.

©2012 About.com, a part of The New York Times Company. All rights reserved.