Results 1 to 2 of 2
Thread: Error: cannot find symbol
- 05-23-2012, 11:26 PM #1
Member
- Join Date
- May 2012
- Posts
- 1
- Rep Power
- 0
Error: cannot find symbol
when i tried to execute this code i am getting error...
Main.java:9: cannot find symbol
symbol : method setHttpReferrer(java.lang.String)
location: interface com.google.api.translate.Translate
Translate.setHttpReferrer("http://code.google.com/p/google-api-translate-jav
a");
^
Main.java:11: non-static method execute(java.lang.String,com.google.api.translat
e.Language,com.google.api.translate.Language) cannot be referenced from a static
context
String translatedText = Translate.execute("Bonjour monde le",Language.FRENCH
, Language.ENGLISH);
^
2 errors
i have set class path for google-api-translate-java-0.97.jar;.;
and when i am setting classpath for json-20090211.jar;.;
i am getting 7 errors.
please help me......
- 05-24-2012, 05:30 AM #2
Re: Error: cannot find symbol
Removed from Language translation
When you have a question, start your own thread. Don't post to an old dead thread and don't hijack another poster's thread.
As for your question, copying code without understanding the fundamentals of a programming language does not a program make. Start here: Lesson: The "Hello World!" Application (The Java™ Tutorials > Getting Started)
dbWhy do they call it rush hour when nothing moves? - Robin Williams
Similar Threads
-
Cannot find symbol error
By abdulahadone in forum New To JavaReplies: 11Last Post: 03-23-2012, 11:45 AM -
Cannot find symbol error?
By Josep_16 in forum New To JavaReplies: 2Last Post: 06-19-2011, 07:14 PM -
Error: Cannot Find Symbol
By mawright in forum New To JavaReplies: 4Last Post: 04-14-2011, 02:41 PM -
error cannot find symbol
By jcoon3 in forum New To JavaReplies: 3Last Post: 09-27-2009, 10:56 PM -
cannot find symbol symbol :constructor Error. Please help! =(
By KalEl in forum New To JavaReplies: 9Last Post: 10-18-2008, 08:26 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks