Compilation error of Tamino example program

Hi,

I had set the CLASSPATH environment variable to “D:\Program Files\Software AG\Tamino\Tamino 3.1.1.1\SDK\TaminoAPI4J\lib”. And I am using the jdk 1.3.1_04.

However, when I tried to compile the XMLGreetings java program example from Tamino, compilation errors occur. They are:

D:\andy_ddrive\Andy\testing codes>javac XMLGreeting.java
XMLGreeting.java:20: package com.softwareag.tamino.db.api.accessor does not exis
t
import com.softwareag.tamino.db.api.accessor.;
^
XMLGreeting.java:21: package com.softwareag.tamino.db.api.common does not exist
import com.softwareag.tamino.db.api.common.
;
^
XMLGreeting.java:22: package com.softwareag.tamino.db.api.connection does not ex
ist
import com.softwareag.tamino.db.api.connection.;
^
XMLGreeting.java:23: package com.softwareag.tamino.db.api.objectModel does not e
xist
import com.softwareag.tamino.db.api.objectModel.
;
^
XMLGreeting.java:24: package com.softwareag.tamino.db.api.objectModel.dom does n
ot exist
import com.softwareag.tamino.db.api.objectModel.dom.;
^
XMLGreeting.java:25: package com.softwareag.tamino.db.api.response does not exis
t
import com.softwareag.tamino.db.api.response.
;
^
XMLGreeting.java:26: package org.jdom does not exist
import org.jdom.;
^
XMLGreeting.java:27: package org.jdom.input does not exist
import org.jdom.input.
;
^
XMLGreeting.java:37: cannot resolve symbol
symbol : class TXMLObject
location: class com.softwareag.tamino.db.api.examples.greeting.XMLGreeting
TXMLObject xmlObject = TXMLObject.newInstance( TDOMObjectModel.getInstance()
);
^
XMLGreeting.java:37: cannot resolve symbol
symbol : variable TDOMObjectModel
location: class com.softwareag.tamino.db.api.examples.greeting.XMLGreeting
TXMLObject xmlObject = TXMLObject.newInstance( TDOMObjectModel.getInstance()
);
^
XMLGreeting.java:37: cannot resolve symbol
symbol : variable TXMLObject
location: class com.softwareag.tamino.db.api.examples.greeting.XMLGreeting
TXMLObject xmlObject = TXMLObject.newInstance( TDOMObjectModel.getInstance()
);
^
XMLGreeting.java:42: cannot resolve symbol
symbol : class TConnection
location: class com.softwareag.tamino.db.api.examples.greeting.XMLGreeting
TConnection connection = TConnectionFactory.getInstance().newConnection( DAT
ABASE_URI );
^
XMLGreeting.java:42: cannot resolve symbol
symbol : variable TConnectionFactory
location: class com.softwareag.tamino.db.api.examples.greeting.XMLGreeting
TConnection connection = TConnectionFactory.getInstance().newConnection( DAT
ABASE_URI );
^
XMLGreeting.java:44: cannot resolve symbol
symbol : class TXMLObjectAccessor
location: class com.softwareag.tamino.db.api.examples.greeting.XMLGreeting
TXMLObjectAccessor xmlObjectAccessor = connection.newXMLObjectAccessor(
^
XMLGreeting.java:45: cannot resolve symbol
symbol : variable TAccessLocation
location: class com.softwareag.tamino.db.api.examples.greeting.XMLGreeting
TAccessLocation.newInstance( “resume
_collection” ),
^
XMLGreeting.java:46: cannot resolve symbol
symbol : variable TDOMObjectModel
location: class com.softwareag.tamino.db.api.examples.greeting.XMLGreeting
TDOMObjectModel.getInstance() );
^
XMLGreeting.java:53: cannot resolve symbol
symbol : class TInsertException
location: class com.softwareag.tamino.db.api.examples.greeting.XMLGreeting
catch (TInsertException insertException) {
^
XMLGreeting.java:64: cannot resolve symbol
symbol : class TQuery
location: class com.softwareag.tamino.db.api.examples.greeting.XMLGreeting
TQuery query = TQuery.newInstance( xmlObject.getDoctype() + “[@ino:id=” +
^
XMLGreeting.java:64: cannot resolve symbol
symbol : variable TQuery
location: class com.softwareag.tamino.db.api.examples.greeting.XMLGreeting
TQuery query = TQuery.newInstance( xmlObject.getDoctype() + “[@ino:id=” +
^
XMLGreeting.java:68: cannot resolve symbol
symbol : class TResponse
location: class com.softwareag.tamino.db.api.examples.greeting.XMLGreeting
TResponse response = xmlObjectAccessor.query( query );
^
XMLGreeting.java:77: cannot resolve symbol
symbol : class TQueryException
location: class com.softwareag.tamino.db.api.examples.greeting.XMLGreeting
catch (TQueryException queryException) {
^
21 errors

===========================================

Can anyone help me to solve the problem? Thanks a lot!

Andy

hi andy,

the classpath variable can either point to a directory that contains individual .class files, or it can point to java archives (usually either .jar or .zip).
pointing the classpath to a directory that contains archives does not work. therefore you need to expand your classpath to contain all necessary archives of the …/lib directory.

best regards,
andreas f.

Andy,

I’ve got a neat little Java class that will ‘explode’ the CLASSPATH and show you exactly which classes are available from where. Email me if you want it.