NoClassDefErrors on my classes :/

So I was randomly working on my project, when all of a sudden, I run it. Wow, NoClassDefError on my main class? What? It’s still there, I haven’t changed anything. Ok, close and open SDK. No effect. Delete Main class and paste code into new one. Ok, now we got that working, lets run it. NoClassDefError myGame/TerrainControl -.-



What the hell?

clean and build your project?

This might be something to do with windows’ crappy permissions, but here is the output of my clean build [java]init:

deps-clean:

Updating property file: C:UsersDanDropboxProceduralbuildbuilt-clean.properties

Deleting directory C:UsersDanDropboxProceduralbuild

clean:

Building jar: C:UsersDanDropboxProceduralbuildassets.jar

init:

deps-jar:

Updating property file: C:UsersDanDropboxProceduralbuildbuilt-jar.properties

Created dir: C:UsersDanDropboxProceduralbuildclasses

Created dir: C:UsersDanDropboxProceduralbuildempty

Compiling 5 source files to C:UsersDanDropboxProceduralbuildclasses

warning: [options] bootstrap class path not set in conjunction with -source 1.5

1 warning

Copied 13 empty directories to 13 empty directories under C:UsersDanDropboxProceduralbuildclasses

compile:

Copying 1 file to C:UsersDanDropboxProceduralbuild

Copy libraries to C:UsersDanDropboxProceduraldistlib.

C:UsersDanDropboxProceduralnbprojectbuild-impl.xml:683: The following error occurred while executing this line:

C:UsersDanDropboxProceduralnbprojectbuild-impl.xml:511:

java.io.FileNotFoundException: C:UsersDanDropboxProceduraldistlibjME3-core.jar (Access is denied)

at java.io.FileOutputStream.open(Native Method)

at java.io.FileOutputStream.<init>(FileOutputStream.java:212)

at java.io.FileOutputStream.<init>(FileOutputStream.java:165)

at org.apache.tools.ant.util.ResourceUtils.copyResource(ResourceUtils.java:523)

at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:559)

at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:519)

at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:480)

at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:443)

at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:409)

at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:384)

at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:322)

at org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs.execute(CopyLibs.java:165)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)

at sun.reflect.GeneratedMethodAccessor95.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:601)

at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)

at org.apache.tools.ant.Task.perform(Task.java:348)

at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)

at sun.reflect.GeneratedMethodAccessor95.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:601)

at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)

at org.apache.tools.ant.Task.perform(Task.java:348)

at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)

at sun.reflect.GeneratedMethodAccessor95.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:601)

at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)

at org.apache.tools.ant.Task.perform(Task.java:348)

at org.apache.tools.ant.Target.execute(Target.java:390)

at org.apache.tools.ant.Target.performTasks(Target.java:411)

at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)

at org.apache.tools.ant.Project.executeTarget(Project.java:1368)

at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)

at org.apache.tools.ant.Project.executeTargets(Project.java:1251)

at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:284)

at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)

at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)

BUILD FAILED (total time: 1 second)[/java]

Another lost process might be accessing that file, maybe try a machine restart.

Already tried that, ill try safe mode

Is your application running while you build it? You obviously can’t do that as its using those jars while the jMP is trying to replace them…

And don’t listen to normen when he says its caused by windows permissions. Windows permissions are very liberal especially on consumer machines… The issue is generally file locking which is more strict on windows than on mac/linux.

@Momoko_Fan said:
And don't listen to normen when he says its caused by windows permissions. Windows permissions are very liberal especially on consumer machines..

I didn't say that for this issue but windows user management _is_ messed up.. thats also why its "liberal" by default.

its because your using dropbox i would say