Constantine Gladky
Constantine Gladky

Reputation: 1263

Play! Exception in thread "main" java.lang.NoClassDefFoundError:

I've installed play 1.2.5 framework. My application worked fine. But after reboot I can't run it. Also I can't run brand new application created with play.

I have on start up:

Exception in thread "main" java.lang.NoClassDefFoundError:
Caused by: java.lang.ClassNotFoundException:
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: .  Program will exit.

I have reinstalled play. But without success.

Where could be problem?

Upvotes: 0

Views: 553

Answers (1)

sidtagirisa
sidtagirisa

Reputation: 86

This question must be very old. I solved this issue today by adding

jvm.memory=-Xms64M -Xmx128M 
%dev.jvm.memory=-Xms64M -Xmx128M
%prod.jvm.memory=-Xms64M -Xmx128M 
%demo.jvm.memory=-Xms64M -Xmx128M

these four lines in application.conf file.

Upvotes: 1

Related Questions