Importing Public Libraries (API?)

Asked by Bumbles W

This should be an easy question, but I am new to programming and trying to learn the how's and why's behind these things.

I recently found an answer to a post that quoted this:

from javax.imageio import ImageIO
from org.sikuli.script import TextRecognizer
from java.io import File

My questions:
1) How did the programmer know to go to these places to do what they wanted? (Help me help myself here!)
2) Do I need to link (javax.imageio, for ex.) to my sikuli project? How do I do that? Do I need to download the library and then link it up afterward, or does Sikuli go out and find these objects, etc. on the web? Or are all these functions built-in to sikuli?
3) How can I learn how to utilize these functions properly? Do I need to search online for how each of these functions work? This just seems like a steep learning curve, but that might just be the name of the game of programming.. I don't know, so I thought I'd ask.

Again -sorry if these questions seem so simple, but I'm new to all this and trying to learn how to help myself!
As always, thanks for your help & suggestions.

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

If you are new to programming, stay away for now from these Java internals, that come from people that tried to find workarounds for buggy or missing features in Sikuli some time ago.

Try to get familiar with the features, that are available at the Python/Jython API using the Sikuli IDE and make your first successful steps.

Please clarify, what you mean with public libraries, to get a sufficient answer.

Can you help with this problem?

Provide an answer of your own, or ask Bumbles W for more information if necessary.

To post a message you must log in.