麻烦运行sencha

时间:2013-10-31 10:09:26

标签: ruby extjs

我面临很多与sencha有关的问题。

安装了Ruby193和sencha 3.1.2.342。

当我生成应用时,我得到以下错误

[ERR]
[ERR] BUILD FAILED
[ERR] java.lang.NullPointerException
[ERR]
[ERR] Total time: 0 seconds
[ERR] com.sencha.exceptions.BasicException

当我尝试运行sencha app build

我得到以下错误

$ sencha app build
[ERR] null
     at com.sencha.tools.pkg.HttpRepository.fixUrl(HttpRepository.java:136)
     at com.sencha.tools.pkg.HttpRepository.<init>(HttpRepository.java:31)
     at com.sencha.tools.pkg.RemoteRepository$Type$1.create(RemoteRepository.jav
a:33)
     at com.sencha.tools.pkg.RemoteRepository.<init>(RemoteRepository.java:74)
     at com.sencha.tools.pkg.RemoteRepository.<init>(RemoteRepository.java:102)
     at com.sencha.tools.pkg.RemoteRepository.<init>(RemoteRepository.java:106)
     at com.sencha.tools.pkg.RepositoryRemoteManagerImpl$1.accept(RepositoryRemo
teManagerImpl.java:28)
     at java.io.File.listFiles(Unknown Source)
     at com.sencha.tools.pkg.RepositoryRemoteManagerImpl.<init>(RepositoryRemote
ManagerImpl.java:26)
     at com.sencha.tools.pkg.LocalRepository.<init>(LocalRepository.java:85)
     at com.sencha.command.environment.WorkspaceRepository.getLocalRepository(Wo
rkspaceRepository.java:113)
     at com.sencha.command.environment.WorkspaceRepository.getCatalog(WorkspaceR
epository.java:92)
     at com.sencha.command.environment.WorkspaceEnvironment.resolvePackageModels
(WorkspaceEnvironment.java:103)
     at com.sencha.command.environment.WorkspaceEnvironment.resolvePackageEnviro
nments(WorkspaceEnvironment.java:90)
     at com.sencha.command.environment.AppOrPackageEnvironment.getRequiredPackag
eEnvironments(AppOrPackageEnvironment.java:165)
     at com.sencha.command.environment.PackageEnvironment.getRequiredPackagesNoB
ases(PackageEnvironment.java:242)
     at com.sencha.command.environment.PackageEnvironment.<init>(PackageEnvironm
ent.java:77)
     at com.sencha.command.environment.WorkspaceEnvironment.loadPackageEnvironme
nt(WorkspaceEnvironment.java:163)
     at com.sencha.command.environment.WorkspaceEnvironment.getPackageEnvironmen
t(WorkspaceEnvironment.java:191)
     at com.sencha.command.environment.PackageEnvironment.getExtendPackageEnviro
nment(PackageEnvironment.java:99)
     at com.sencha.command.environment.PackageEnvironment.getBasePackageEnvironm
ents(PackageEnvironment.java:233)
     at com.sencha.command.environment.PackageEnvironment.getBasePackageNames(Pa
ckageEnvironment.java:262)
     at com.sencha.command.environment.PackageEnvironment.<init>(PackageEnvironm
ent.java:65)
     at com.sencha.command.environment.WorkspaceEnvironment.loadPackageEnvironme
nt(WorkspaceEnvironment.java:163)
     at com.sencha.command.environment.WorkspaceEnvironment.getPackageEnvironmen
t(WorkspaceEnvironment.java:191)
     at com.sencha.command.environment.PackageEnvironment.getExtendPackageEnviro
nment(PackageEnvironment.java:99)
     at com.sencha.command.environment.PackageEnvironment.getBasePackageEnvironm
ents(PackageEnvironment.java:233)
     at com.sencha.command.environment.PackageEnvironment.getBasePackageNames(Pa
ckageEnvironment.java:262)
     at com.sencha.command.environment.PackageEnvironment.<init>(PackageEnvironm
ent.java:65)
     at com.sencha.command.environment.WorkspaceEnvironment.loadPackageEnvironme
nt(WorkspaceEnvironment.java:163)
     at com.sencha.command.environment.WorkspaceEnvironment.getPackageEnvironmen
t(WorkspaceEnvironment.java:196)
     at com.sencha.command.environment.AppOrPackageEnvironment.getThemePackageEn
vironment(AppOrPackageEnvironment.java:245)
     at com.sencha.command.environment.AppOrPackageEnvironment.getThemePackageEn
vironments(AppOrPackageEnvironment.java:255)
     at com.sencha.command.environment.AppOrPackageEnvironment.getThemePackageNa
mes(AppOrPackageEnvironment.java:266)
     at com.sencha.command.environment.AppEnvironment.<init>(AppEnvironment.java
:54)
     at com.sencha.command.environment.BuildEnvironment.load(BuildEnvironment.ja
va:193)
     at com.sencha.command.Sencha.loadBuildEnvironment(Sencha.java:374)
     at com.sencha.command.Sencha.main(Sencha.java:127)

我已经安装和卸载ruby和sencha 3次......但没有运气

任何人都能帮助我吗?

1 个答案:

答案 0 :(得分:0)

您安装了JRE吗?您还需要确保设置操作系统environment variables,即PATH变量包含Ruby和Sencha Cmd的位置。完成此操作后,您将需要重新启动任何打开的命令行。