Error DataNucleus Enhancer 206

I have a problem. I always get error 206 from the Java DataNucleus Enhancer, since 2 days ago ... a few days before, it worked without errors.

Cannot start the program "D: \ Program Files \ Java \ jre6 \ bin \ javaw.exe" (in the directory "C: \ Users \ schmisa2 \ workspace \ AMS0"): CreateProcess error = 206, File name too long or extension Not I can start the program "D: \ Program Files \ Java \ jre6 \ bin \ javaw.exe" (in the directory "C: \ Users \ schmisa2 \ workspace \ AMS0"): Error CreateProcess = 206, file name or extension too long

I searched a lot on Google and Stackoverflow, but couldn't solve the problem.

The longest way:

C: \ Users \ schmisa2 \ working \ AMS0 \ SRC \ h \ zhaw \ AMC \ module \ football \ SFV \ News \ server \ NewsElement.java

https://groups.google.com/group/google-appengine-java/browse_thread/thread/6cde7d1695b3eff3

Does anyone know how I can fix this?

I installed Linux Ubuntu to test it there. There it is not a problem ... but it does not work on Windows 7. I have GWT 2.4, application 1.6.5. SDK and Eclipse 3.7

Or can someone explain to me how to run it on the command line?

+3
source share
4 answers

Thus, you remove obsolete Windows command line restrictions. Modify the enhancer call to use the persistence.xml file, for example.

0
source

It worked for me.

" eclipse, Project | Properties, Google\App Engine\ORM , . , . ."

+8

, DataNucleus, JDO Annotations. Windows Eclipse ( Mac). , :

  • .jdo @PersistenceCapable (. JDO ) .
  • β†’ β†’ DataNucleus β†’ Enhancer β†’ . "class" .
  • , SchemaTool, .

.

JDO:

<?xml version="1.0" encoding="UTF-8"?>
<jdo>
    <package name="my.package">
        <class name="MyPersistenceCapableClass"/>
    </package>
</jdo>
0

, Eclipse, - eclipse, datanucleus, . Run Configurations β†’ Java Application β†’ DataNucleus Enhancer, "", "", Datanucleus " ".

"" , . , Properties β†’ DataNucleus β†’ Enhancer β†’ .

You just need to manually start this enhancer after each creation. If I need to add new classes for improvement, I will just add it to my manual one.

0
source

All Articles