gpt4 book ai didi

java - 试图获取 rake 太阳黑子 :solr:run to execute

转载 作者:行者123 更新时间:2023-12-01 05:15:35 27 4
gpt4 key购买 nike

我正在尝试让 gems sunspot_rails 和 sunspot_solr 启动并运行。我已经下载了所有最新的 gem,并实现了来自 https://github.com/sunspot/sunspot/issues/160 的补丁建议。但我仍然收到如下所示的错误。

似乎有些文件已被复制,但它在某处挂起。我使用的是 Windows 7 系统,64 位,使用 Rails 版本 3.2.6 和 gem 'sunspot_rails' 版本 1.3.3 和 gem 'sunspot_solr' 版本 1.3.3。我花了几个小时试图解决这个问题,任何帮助将不胜感激!

$ rake sunspot:solr:run

java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)

Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode)

Copying c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sunspot_solr-1.3.3/solr/solr/conf/admin-extra.html => C:/Users/Molly Struve/My Documents/Aptana Studio 3 Workspace/WaterCooler/solr/conf/admin-extra.html

Copying c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sunspot_solr-1.3.3/solr/solr/conf/elevate.xml => C:/Users/Molly Struve/My Documents/Aptana Studio 3 Workspace/WaterCooler/solr/conf/elevate.xml

Copying c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sunspot_solr-1.3.3/solr/solr/conf/mapping-ISOLatin1Accent.txt => C:/Users/Molly Struve/My Documents/AptanaStudio 3 Workspace/WaterCooler/solr/conf/mapping-ISOLatin1Accent.txt

Copying c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sunspot_solr-1.3.3/solr/solr/conf/protwords.txt => C:/Users/Molly Struve/My Documents/Aptana Studio 3 Workspace/WaterCooler/solr/conf/protwords.txt

Copying c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sunspot_solr-1.3.3/solr/solr/conf/schema.xml => C:/Users/Molly Struve/My Documents/Aptana Studio 3 Workspace/WaterCooler/solr/conf/schema.xml

Copying c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sunspot_solr-1.3.3/solr/solr/conf/scripts.conf => C:/Users/Molly Struve/My Documents/Aptana Studio 3 Workspace/WaterCooler/solr/conf/scripts.conf

Copying c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sunspot_solr-1.3.3/solr/solr/conf/solrconfig.xml => C:/Users/Molly Struve/My Documents/Aptana Studio 3 Workspace/WaterCooler/solr/conf/solrconfig.xml

Copying c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sunspot_solr-1.3.3/solr/solr/conf/spellings.txt => C:/Users/Molly Struve/My Documents/Aptana Studio 3 Workspace/WaterCooler/solr/conf/spellings.txt

Copying c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sunspot_solr-1.3.3/solr/solr/conf/stopwords.txt => C:/Users/Molly Struve/My Documents/Aptana Studio 3 Workspace/WaterCooler/solr/conf/stopwords.txt

Copying c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/sunspot_solr-1.3.3/solr/solr/conf/synonyms.txt => C:/Users/Molly Struve/My Documents/Aptana Studio 3 Workspace/WaterCooler/solr/conf/synonyms.txt

Exception in thread "main" java.lang.NoClassDefFoundError: Struve/My\
Caused by: java.lang.ClassNotFoundException: Struve.My\
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: Struve/My\. Program will exit.`java version "1.6.0_24"

最佳答案

当源路径中有空间时会出现此问题。将您的代码移至“C:/WaterCooler”之类的路径并尝试。

关于java - 试图获取 rake 太阳黑子 :solr:run to execute,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11277126/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com