I have a problem. I always get an Error 206 from Java DataNucleus Enhancer, since 2 days ago... days before, it worked without errors.
Cannot run program "D:\Program Files\Java\jre6\bin\javaw.exe" (in directory "C:\Users\schmisa2\workspace\AMS0"): CreateProcess error=206, The filename or extension is too long Cannot run program "D:\Program Files\Java\jre6\bin\javaw.exe" (in directory "C:\Users\schmisa2\workspace\AMS0"): CreateProcess error=206, The filename or extension is too long
I searched a lot at Google and Stackoverflow but could not solve the problem.
My longest path is:
C:\Users\schmisa2\workspace\AMS0\src\ch\zhaw\ams\module\football\sfv\news\server\NewsElement.java
https://groups.google.com/group/google-appengine-java/browse_thread/thread/6cde7d1695b3eff3
Does somebody know how I can fix it?
I installed a Linux Ubuntu to test it there. There it was no problem... but it doesn't work on Windows 7. I have GWT 2.4, App engine 1.6.5. SDK and Eclipse 3.7
Or can someone explain me how to run it on command line?
This worked for me.
Source here
So you hit Windows antiquated limits on command line length. Change the invocation of the enhancer to use a persistence.xml for example.
Another way you can fix this issue or workaround it I should say in Eclipse is to create a new run configuration in eclipse copying the parameters from the datanucleus one which is created by the plugin Run Configurations -> Java Application -> DataNucleus Enhancer. Copy Main tab, Arguments, and you might need to add the Datanucleus jars to the classpath tab.
In the arguments tab, remove all the classes you don't need enhanced. Next I'll shut off the plugin by removing the classes extension under the projects Properties -> DataNucleus -> Enhancer -> Input File Extensions.
You'll just need to manually run this enhancer after each time you build now. If I need to add new classes to enhance, I'll just add it to my manual one.
I have a project which I was using DataNucleus, JDO and Annotations. I ran into the same issue on Windows with Eclipse (It was fine on my Mac). To fix, I did the following:
This should now work.
JDO file example: