I get a compile error following the instructions on
http://code.google.com/apis/gdata/articles/java_client_lib.html. I've
tried java 6 and then went back to java 5 and no luck. I tried to
compile the src, but that give even more errors. Ideas on where to go
from here?
gdata/java $ uname -a
SunOS myhost 5.10 Generic_127127-11 sun4u sparc SUNW,Sun-Fire-480R
gdata/java $ ant -version
Apache Ant version 1.7.1 compiled on June 27 2008
gdata/java $ java -version
java version "1.5.0_13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05)
Java HotSpot(TM) Server VM (build 1.5.0_13-b05, mixed mode)
gdata/java $ javac -version
javac 1.5.0_13
gdata/java $ ant -f build-samples.xml sample.calendar.run
Buildfile: build-samples.xml
sample.calendar.dependencies:
template.require.service.jar:
sample.core.dependencies:
core.sample.core.util.build:
[javac] Compiling 2 source files to /usr/local/gmail/lib/gdata/
java/sample/util/classes
[javac] /usr/local/gmail/lib/gdata/java/sample/util/
SimpleCommandLineParser.java:31: <identifier> expected
[javac] private Map<String,String> argMap;
[javac] ^
[javac] /usr/local/gmail/lib/gdata/java/sample/util/
SimpleCommandLineParser.java:43: '(' or '[' expected
[javac] argMap = new HashMap<String,String>();
[javac] ^
[javac] /usr/local/gmail/lib/gdata/java/sample/util/
SimpleCommandLineParser.java:75: <identifier> expected
[javac] public String getValue(String ... keys) {
[javac] ^
[javac] /usr/local/gmail/lib/gdata/java/sample/util/
SimpleCommandLineParser.java:98: <identifier> expected
[javac] }
[javac] ^
[javac] /usr/local/gmail/lib/gdata/java/sample/util/
CommonUtils.java:19: cannot access com.google.gdata.data.BaseEntry
[javac] bad class file: /usr/local/gmail/lib/gdata/java/lib/gdata-
core-1.0.jar(com/google/gdata/data/BaseEntry.class)
[javac] class file has wrong version 49.0, should be 48.0
[javac] Please remove or make sure it appears in the correct
subdirectory of the classpath.
[javac] import com.google.gdata.data.BaseEntry;
[javac] ^
[javac] 5 errors
BUILD FAILED
/usr/local/gmail/lib/gdata/java/build-samples/core.xml:94: Compile
failed; see the compiler error output for details.
Total time: 4 seconds
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Data Protocol" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---