Hi there
For anyone has the time to try it I'm trying to compile the METS java toolkit http://hul.harvard.edu/mets/ in order to get a dll and use it in Visual Studio C#.
This should be no problem but I get compiler errors.
So Actuate.java is in this local folder and the jar is in the bin folder
C:\METS_Toolkit\classes\edu\harvard\hul\ois\mets>C:\Ja.NET\bin\javac -classpath C:\METS_Toolkit\bin\mets.jar Actuate.java –nowarn
Not setting the jar with the classpath results in one extra error, this:
1. ERROR in Actuate.java (at line 13)
import edu.harvard.hul.ois.mets.helper.*;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The import edu.harvard.hul.ois.mets.helper cannot be resolved
So adding the jar to the classpath definitely fixes this error but the 4 below remain
1. ERROR in Actuate.java (at line 23)
extends edu.harvard.hul.ois.mets.helper.Enum
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
edu.harvard.hul.ois.mets.helper.Enum cannot be resolved to a type
----------
2. ERROR in Actuate.java (at line 57)
super (value);
^^^^^^^^^^^^^^
The constructor Object(String) is undefined
----------
3. ERROR in Actuate.java (at line 70)
throws MetsException
^^^^^^^^^^^^^
MetsException cannot be resolved to a type
----------
4. ERROR in Actuate.java (at line 80)
throw new MetsException ("Unsupported actuate behavior: " + name);
^^^^^^^^^^^^^
MetsException cannot be resolved to a type
----------
4 problems (4 errors)
I have tried this with the normal Sun javac and it compiles fine. Anyone know what the problem is?
Thanks for any help
Tarik