简体   繁体   English

数据核增强器和javaw:“参数不正确”

[英]datanucleus enhancer & javaw: “the parameter is incorrect”

I'm on windows XP using eclipse and the datanucleus enhancer for a gwt + gae app. 我在Windows XP上使用Eclipse和gwt + gae应用程序的datanucleus增强器。 When I run the enhancer, I get an error: 运行增强器时,出现错误:

Error
Thu Oct 21 16:33:57 CDT 2010
Cannot run program "C:\Program Files\Java\jdk1.6.0_18\bin\javaw.exe" (in directory "C:\ag\dev"): CreateProcess error=87, The parameter is incorrect

java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.6.0_18\bin\javaw.exe" (in directory "C:\ag\dev"): CreateProcess error=87, The parameter is incorrect
at java.lang.ProcessBuilder.start(Unknown Source)
at com.google.gdt.eclipse.core.ProcessUtilities.launchProcessAndActivateOnError(ProcessUtilities.java:213)
at com.google.appengine.eclipse.core.orm.enhancement.EnhancerJob.runInWorkspace(EnhancerJob.java:154)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.io.IOException: CreateProcess error=87, The parameter is incorrect
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 5 more

I've had this problem before, and it was due to a long classpath. 我以前遇到过这个问题,这是由于类路径较长。 I just spent an hour and a half shortening my classpath by moving libraries around and even moving my eclipse install, but with no luck. 我只是花了一个半小时来缩短类路径,方法是移动库甚至移动eclipse安装,但是没有运气。

Any ideas about where I should start to look for an answer? 关于我应该从哪里开始寻找答案的任何想法? The error message doesn't include any information about what directory it's in or anything. 该错误消息不包含有关其所在目录或任何内容的任何信息。 It's kind of infuriating! 真是气死我了! Is it possible to make the output of javaw more verbose? 是否可以使javaw的输出更详细? Is it possible to get around this class-path size bug? 是否有可能解决这个类路径大小错误?

Aha! 啊哈!

Under Project properties > Google > App Engine > ORM I found that all of my classes were being enhanced, which was leading to a command line that was too long - nothing to do with the classpath, apparently. 在“项目属性”>“ Google”>“ App Engine”>“ ORM”下,我发现所有类都得到了增强,这导致命令行太长-显然与类路径无关。 I just configured that property page to only enhance a subset of my classes (only like 5% need enhancing), and now, not only does it work again, but the build process is WAY FASTER! 我只是配置了该属性页面,以仅增强我的类的子集(仅需要5%的增强),现在,它不仅可以再次使用,而且构建过程也更快!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM