libgdx ClassNotFoundException when starting Desktop main - Mac, IntelliJ

I set up my project as described in the IntelliJ setup tutorial, but I am unable to start the Desktop application. The android app starts up fine in both the emulator and on my S3, but main in Desktop is unable to find my class..


Exception in thread "main" java.lang.ClassNotFoundException:
at Method)
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(
at com.intellij.rt.execution.application.AppMain.main(

I am running Mac OSX 10.7.5, Apple's Java JDK 1.6.0_43, and IntelliJ 12.0.4. I feel like it is something dead simple, I just can't seem to find the issue. (Don't laugh at my class name, it's for my 4yr old daughter) ;D


LibGDX 1.7.1, IntelliJ IDEA 15.0, Windows 8.1 -- I kept getting the problem trying to run DesktopLauncher through the IDE's Run Configurations dialogs.

Instead, running the Gradle task (desktop -> run) works perfectly.

To run the Gradle task within IntelliJ,

  1. Hit Shift twice, type "Gradle" to open the Gradle projects pane
  2. Hit the "Refresh all Gradle projects" button if nothing is showing up
  3. Expand :desktop > Tasks > other
  4. Double-click "run"

This is a bug with intellij. I have been informed it will be fixed soon.

For the meantime.

Click the gradle tab on the right side of the editor window.

Click the blue refresh icon.

Expand desktop -> tasks -> other Then double click on "run".

Need Your Help

Simplest Emacs syntax highlighting tutorial?

emacs elisp emacs23 xemacs

I would like to create only a syntax highlighting minor mode for Emacs. I have the "Writing GNU Emacs Extensions" by O'Reilly, but it does not go into any depth of detail. Is there a simple tutor...

What is '`' character called?

character ascii special-characters terminology punctuation

I feel silly for asking this but it isn't like I could google this.