Results 1 to 13 of 13
- 01-06-2011, 03:30 PM #1
Member
- Join Date
- Sep 2010
- Posts
- 47
- Rep Power
- 0
Help using somone's documentation
Hello everyone. I was wondering how to import someone else's documentation (the one in particular is located here: Robot (Abbot Documentation)). How would I do this? Thanks in advance.
- 01-06-2011, 03:54 PM #2
What do you exactly mean about "importing documentation" ?
Do you want to get all the javadoc API stored on that webpage? or something else? Would you please elaborate a bit?
GoldestJava Is A Funny Language... Really!.gif)
Click on * and add to member reputation, if you find their advices/solutions effective.
- 01-06-2011, 07:51 PM #3
Member
- Join Date
- Sep 2010
- Posts
- 47
- Rep Power
- 0
I just want to use the methods listed at the link in my code.
- 01-06-2011, 08:22 PM #4
Abbot seems to be a separate framework all together for specific GUI needs.
If you want to use that, you can download the source code zip file from here, that contains the source and required library jar files to make the things work.
You can put that jar files in your class path or from where you can refer to them and you are good to go.
GoldestJava Is A Funny Language... Really!.gif)
Click on * and add to member reputation, if you find their advices/solutions effective.
- 01-06-2011, 11:00 PM #5
Member
- Join Date
- Sep 2010
- Posts
- 47
- Rep Power
- 0
Thanks a lot, now one last question: I'm unsure as to what I am supposed to do with the contents of this zip file. Is there a specific file I am supposed to take out for the Robot class? Or do I just dump everything in my JDK/JRE folder?
- 01-07-2011, 04:47 AM #6
That zip file would most probably contain a directory named "lib". In that directory you will find many jar files. These jar files actually contain the class files of the source code i.e. the features you would like to use.
So what you have to do is, either put all those jar files in your class path or check out the jar file contents and place only the jar files that you need in your class path.
For e.g. there is one abbot.jar in the lib folder. Inside its directory structure it contains the Robot.class file with structure abbot\tester\Robot.class. So if you want to use Robot class features, put the abbot.jar in your class path. Same for other things...
Hope you are clear enough,
GoldestJava Is A Funny Language... Really!.gif)
Click on * and add to member reputation, if you find their advices/solutions effective.
- 01-07-2011, 12:24 PM #7
Member
- Join Date
- Sep 2010
- Posts
- 47
- Rep Power
- 0
Thanks a lot. Now I know this is a noob question but where is the Classpath I'm supposed to put it in? I ran "echo %CLASSPATH%" in cmd and it directed me to a zip file in my JRE. There are some other jar's in that folder, so I put abbot.jar with it, but the compiler tells me abbot does not exist as a package.
- 01-07-2011, 01:01 PM #8
Do you use an IDE like eclipse?
If that's the case, you can simply right click on your project and go to Build Path -> Configure Build Path -> Library and say "Add External JARs". Add your abbot.jar here from your file system.
In your java code, simply import the abbot structure and you are done.
This is what I tried just now,
And the output is Robot Successful. It works dude! :DJava Code:import abbot.tester.Robot; public class AbbotTest { public static void main(String args[]) { Robot r = new Robot(); System.out.println("Robot Successful"); } }
Hope that's clear now,
GoldestJava Is A Funny Language... Really!.gif)
Click on * and add to member reputation, if you find their advices/solutions effective.
- 01-07-2011, 01:15 PM #9
Member
- Join Date
- Sep 2010
- Posts
- 47
- Rep Power
- 0
I got it thanks. We can say your rep = rep++; lol
edit: It seems that since java.awt.Robot and abbot.tester.Robot end with the same name, they both can not be imported. Is this true?Last edited by davetheant; 01-07-2011 at 01:19 PM.
- 01-07-2011, 01:25 PM #10
In case if you use command prompt,
Suppose that your abbot.jar is in D:\Downloads\abbot-1.0.2\lib\abbot.jar And the code file is in D:\dell\Robot\AbbotTest.java directory.
In that case you need to provide the classpath to your abbot.jar file on the command line.
Compile by,
Run by,Java Code:D:\dell\Robot>javac -cp D:\Downloads\abbot-1.0.2\lib\abbot.jar AbbotTest.java
Which would produce,Java Code:D:\dell\Robot>java -cp D:\Downloads\abbot-1.0.2\lib\abbot.jar;. AbbotTest
Hope that's clear,Java Code:Robot Successful
GoldestJava Is A Funny Language... Really!.gif)
Click on * and add to member reputation, if you find their advices/solutions effective.
- 01-07-2011, 01:28 PM #11
Java Is A Funny Language... Really!.gif)
Click on * and add to member reputation, if you find their advices/solutions effective.
- 01-07-2011, 02:01 PM #12
Member
- Join Date
- Sep 2010
- Posts
- 47
- Rep Power
- 0
I got everything worked out. The problem was that I had to use java.awt.Robot because I imported abbot's Robot first. Thanks again.
- 01-07-2011, 02:17 PM #13
Similar Threads
-
Making Documentation
By Adam Cruge in forum New To JavaReplies: 6Last Post: 04-11-2009, 07:02 PM -
min / max and documentation
By jon80 in forum New To JavaReplies: 1Last Post: 04-20-2008, 12:37 PM -
documentation
By mcal in forum New To JavaReplies: 4Last Post: 02-07-2008, 06:20 AM -
Java Documentation
By ravian in forum New To JavaReplies: 4Last Post: 12-04-2007, 09:45 AM -
QueueMetrics 1.4 (Documentation)
By JavaBean in forum Java SoftwareReplies: 0Last Post: 06-29-2007, 12:54 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks