Studio 2.0.0 doesn't start NoClassDefFoundError

Hi,

i just saw your latest update on studio. After downloading it and executing bin/studio i got:

~/dev/bin/cuba/studio-2.0.0/bin$ ./studio
Run Studio GUI
Exception in thread "main" java.lang.NoClassDefFoundError: javafx/application/Application
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
	at com.haulmont.studio.server.EntryPoint.runGuiInstance(EntryPoint.java:54)
	at com.haulmont.studio.server.EntryPoint.main(EntryPoint.java:36)
Caused by: java.lang.ClassNotFoundException: javafx.application.Application
	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
	... 14 more

The environment is:

  • Ubuntu 14.04
  • Java 7 (1.7.0_80) (Oracle)

It would be nice, if you could give me a little hint :slight_smile:

Have a nice day!

Hi Patrick,
I’m sorry that you ran into the issue.
We have just uploaded the new version, and are now in the process of updating the website materials.
Please look at the the new docs here.
You have the problem with starting Studio because the new version requires JDK 8 (please install the latest).

Ah, thanks. I updated it and it worked.

The only thing, that i stumbled over, is that i have to execute the studio binary from within the folder. Otherwise when clicking start in the studio server, it says that the web resource is not found (see example attached). In that case, i made a symlink from ~/studio to ~/dev/bin/cuba/studio-2.0.0/bin/studio - which didn’t work.

Except from this, everything worked fine.

illegalState-studio-server

Thank you for reporting the issue!
You can fix it by editing the last line in your studio bash script (add "cd “$APP_HOME/bin” && " part):

cd "$APP_HOME/bin" && exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" com.haulmont.studio.server.EntryPoint "$@"

Hi,
the problem is fixed in the Studio version 2.0.6.