1

I have little knowledge how GWT works, so can anybody help me here? This is the full log when I use Eclipse to compile my Playn html project:

http://pastebin.com/0EXNe57a

The same error appears when I try to run the html version with Maven in Eclipse or command line. Any feedback is appreciated.

vuolen
  • 464
  • 4
  • 12

1 Answers1

2

GWT is compiling your Java-Code to JavaScript and emulating the Classes and Methods you are using from the JRE. But GWT is not supporting all Classes and Methods of the JRE.

You can find a List of Supported Classes and Methods on gwtproject.org.

In your case java.util.Vectoris supported but not the methods add(float, float) and set(float, float). So you should look for an alternative.

Note: The use of java.util.Vector is not recommended - regardless of working with GWT or not.

Update: Can't remeber that there ever was a method add(float, float) in java.util.Vector. Do you use that class or do you have an own util.Vector-Implementation? If so you should check if your gwt.xml-file is including the source-path. Already explained here.

Community
  • 1
  • 1
lefloh
  • 10,653
  • 3
  • 28
  • 50
  • Yes the util.Vector class was actually my own. I added the util package to the source path and everything works fine! Thank you. – vuolen Jul 17 '13 at 09:40
  • You're welcome. And sorry for the wrong first answer. `util.Vector` confused me a little ;) – lefloh Jul 17 '13 at 10:50