我安装了playframework fbconnect模块(0.6版)。我一直收到以下错误。我正在遵循基本示例的步骤。即使是module文件夹中的sample-and-test应用程序也会出现相同的错误。
Compilation error
The file {module:..}/app/controllers/FBConnect.java could not be compiled. Error raised is : play.modules.fbconnect.FBConnectPlugin cannot be resolved
play.exceptions.CompilationException: play.modules.fbconnect.FBConnectPlugin cannot be resolved
at play.classloading.ApplicationCompiler$2.acceptResult(ApplicationCompiler.java:246)
at org.eclipse.jdt.internal.compiler.Compiler.handleInternalException(Compiler.java:676)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:520)
at play.classloading.ApplicationCompiler.compile(ApplicationCompiler.java:282)
at play.classloading.ApplicationClassloader.getAllClasses(ApplicationClassloader.java:424)
at play.Play.start(Play.java:505)
at play.Play.detectChanges(Play.java:629)
at play.Invoker$Invocation.init(Invoker.java:198)
at Invocation.HTTP Request(Play!)发布于 2012-01-14 15:31:39
唉哟!看起来fbconnect-0.6没有正确安装!下面是我是如何让它工作的:
(我的剧本!目录为/usr/local/share/play-1.2.4)
cd /usr/local/share/play-1.2.4/modules
sudo git clone git://github.com/murz/play-fbconnect.git
sudo mv play-fbconnect fbconnect-0.6现在我们已经下载了正确的fbconnect-0.6!不过,我们仍然需要构建它:
cd fbconnect-0.6
sudo vim build.xml(或使用您喜欢的任何其他编辑器:-) )添加<property ..>元素,以便build.xml像这样启动:
<?xml version="1.0" encoding="UTF-8"?>
<project name="fbconnect" default="build" basedir=".">
<property name="play.path" location="/usr/local/share/play-1.2.4" />现在build.xml知道我在哪里玩了!是。现在我只需要构建fbconnect。(记住,我还在/usr/local/share/play-1.2.4/modules中)
sudo ant(您需要安装ant:http://ant.apache.org/)
我仍然做了你已经做过的其他配置。现在当我开始我的游戏时!应用程序时,我收到一个'You need to configure fbconnect‘错误--这是我所期望的,因为我还没有配置它。但在配置之后,它应该可以为您工作。
希望fbconnect维护者能修复他们的安装,这样以后就不需要安装了,或者我们两个都误解了安装说明,好心人可以告诉我们哪里做错了。但就目前而言,这应该可以让您开始工作。
祝好运!
https://stackoverflow.com/questions/8860560
复制相似问题