How to compile a implementation java script?

S

sams

I have 2 Java code.

1. Java Code
public interface BookTracker
{
public void updateBook(String title, String ASIN, String ISBN, String
authors, String publisher, String rating, int numreviews) throws
Exception;
}

2. Java Code has a implementation of 1st.
public class DumpBookTracker implements BookTracker
{
....
}

How u compile these two?
I used javac -classpath %CLASSPATHNAME% DumpBookTracker.java
/com/some/wrapper/for/soap

But its giveing me an error "DumpBookTracker should be declared
abstract".
Changing public to abstract let me compile, but end up in runtime
errors.

Appreciate any help with Interface and Implements

Thank you

Sam
 
R

Roedy Green

Changing public to abstract let me compile, but end up in runtime
errors.

this indicates you don't have an exact match in the method signatures
in your interface specification an java implementation.
 

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
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top