sleepless
unread,Oct 15, 2011, 11:00:28 AM10/15/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to play-fr...@googlegroups.com
Hi,
I'm using Play 1.2.3 with the GWT2 module (version 1.8). I had to use the apache commons library for Base64 encode/decode operations. The Base64 class is also available in GWT, so I changed the .classpath to order apache-commons before GWT. This works fine in eclipse. However, when I run the project, I get an exception like this -
Compilation error (In /app/jobs/AppInfoQueryJob.java around line 101)
The file /app/jobs/AppInfoQueryJob.java could not be compiled. Error raised is : The method decodeBase64(byte[]) in the type Base64 is not applicable for the arguments (String)
play.exceptions.CompilationException: The method decodeBase64(byte[]) in the type Base64 is not applicable for the arguments (String)
at play.classloading.ApplicationCompiler$2.acceptResult(ApplicationCompiler.java:246)
at org.eclipse.jdt.internal.compiler.Compiler.handleInternalException(Compiler.java:656)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:496)
at play.classloading.ApplicationCompiler.compile(ApplicationCompiler.java:278)
at play.classloading.ApplicationClassloader.getAllClasses(ApplicationClassloader.java:412)
at play.Play.start(Play.java:485)
at play.Play.detectChanges(Play.java:599)
at play.Invoker$Invocation.init(Invoker.java:186)
at Invocation.HTTP Request(Play!)
I suspect the classpath is being used from a different location than the .classpath file that eclipse uses. Could someone please tell me how to set the classpath for use in "play run" or "play start" commands?
Thanks
Sleepless