newbie needs help with eclipse and eBay Java SDK

D

David Shere

My name is David Shere and I work for Steele Rubber Products. I've
successfuly written an application with Perl which, using the eBay API,
lists our products on eBay, handles the purchases, and leaves feedback.
Now I want to do the same with Java.

I have some experience with Java, but it is limited. What I'm trying to
do is write a simple class that calls GeteBayOfficialTime and writes it
to the screen. That's it.

I'm using eclipse and this is what I have so far:
http://raptor.davidshere.com/Screenshot.png

I've loaded the external jars from the eBay Java SDK. The underlined
errors are "cannot be resolved to a type"... which makes me wonder if
I'm loading the right package, etc. I'm also confused as to whether I
need to do it in the above way or do this:

System.out.println(GeteBayOfficialTimeCall());

I've read the documentation, which doesn't seem to tell me more than I
already know about the API, and looked at the code samples, which seem
to be the actual classes I'm trying to use, not samples of how to use
them. I need to be pointed in the right direction. Thanks in advance
for any help.
 
C

Chris

David said:
My name is David Shere and I work for Steele Rubber Products. I've
successfuly written an application with Perl which, using the eBay API,
lists our products on eBay, handles the purchases, and leaves feedback.
Now I want to do the same with Java.

I have some experience with Java, but it is limited. What I'm trying to
do is write a simple class that calls GeteBayOfficialTime and writes it
to the screen. That's it.

I'm using eclipse and this is what I have so far:
http://raptor.davidshere.com/Screenshot.png

I've loaded the external jars from the eBay Java SDK. The underlined
errors are "cannot be resolved to a type"... which makes me wonder if
I'm loading the right package, etc. I'm also confused as to whether I
need to do it in the above way or do this:

System.out.println(GeteBayOfficialTimeCall());

I've read the documentation, which doesn't seem to tell me more than I
already know about the API, and looked at the code samples, which seem
to be the actual classes I'm trying to use, not samples of how to use
them. I need to be pointed in the right direction. Thanks in advance
for any help.

I see no import statement at the top of your code. You need to import
any classes you use. Click the little red x on the left hand side of
your editor and Eclipse will add the import statement for you. (That is,
assuming you have the ebay jar file on the classpath).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top