You shouldn't be putting the UserName and Pass there. Try just doing:
Voice voice = new Voice();
Then pass the parameters later.
Group: http://groups.google.com/group/google-voice-java/topics
- [No Subject] [1 Update]
Anand Matta <anand...@gmail.com> Dec 27 08:11PM -0500
Hey I downloaded the 1.10 jar file, and the json.jar file and imported them
into eclipse.
I tried to make a new Voice object however it gave me an error saying you
cannot put in any parameters into the new Voice() part.
Voice voice = new Voice(userName, pass) //<<<<ERROR
You received this message because you are subscribed to the Google Group google-voice-java.
--
You can post via email.
To unsubscribe from this group, send an empty message.
For more options, visit this group.
You received this message because you are subscribed to the Google Groups "Google Voice Java" group.
To post to this group, send email to google-v...@googlegroups.com.
To unsubscribe from this group, send email to google-voice-j...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-voice-java?hl=en.
It should still work. Can you provide any more details...stacktraces??
Look how its done in the Test.java file. It's pretty straightforward. Please post a stacktrace if that doesn't help you.
Toby
It's in the test package and it's named Test.java
You can simply checkout the library also, there are some minor
features available in the trunk that havent been released yet as a
jar.
Best of Luck!