# Java class not found after building for Fedora

**URL:** <https://bisq.community/t/java-class-not-found-after-building-for-fedora/2009>\
**Category:** Support\
**Created:** [May 13, 2017, 7:25pm UTC](https://bisq.community/t/java-class-not-found-after-building-for-fedora/2009 "2017-05-13T19:25:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![quad](https://bisq.community/letter_avatar/quad/32/5_5575768a8748004e209b776fc1b2916d.png) [@quad](https://bisq.community/u/quad)\
**Post date:** [May 13, 2017, 7:25pm UTC](https://bisq.community/t/java-class-not-found-after-building-for-fedora/2009/1 "2017-05-13T19:25:18Z")

</div>

Hey,

I’m using Fedora 24 and worked hard through the build.md file to try and make it work. After long and exhilirating messing around, fixing various weird problems, finally, I managed to get to the last step, and wrote  
_mvn clean package -DskipTests -Dmaven.javadoc.skip=true_  
Much to my surprise, this ran perfectly; No errors, warnings, nothing of the sort, and in the end it clearly stated “_BUILD SUCCESS_”.

Now I went on to type _java -jar gui/target/shaded.jar_ in the hopes it would run. Much to my dismay, this is the error message I received:

> ```
> [qq@qq bitsquare]$ java -jar gui/target/shaded.jar
> Exception in thread "main" java.lang.NoClassDefFoundError: javafx/application/Application
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
> at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> at io.bitsquare.app.BitsquareAppMain.doExecute(BitsquareAppMain.java:66)
> at io.bitsquare.app.BitsquareExecutable.execute(BitsquareExecutable.java:69)
> at io.bitsquare.app.BitsquareAppMain.main(BitsquareAppMain.java:61)
> Caused by: java.lang.ClassNotFoundException: javafx.application.Application
> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> ... 15 more
> 
> ```

Now I’m not exactly the most tech-savy guy out there. I tried working with google for a while, but I didn’t manage to produce a viable solution.  
Could anyone provide any tips as to how I can finish this last step?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![ManfredKarrer](https://bisq.community/user_avatar/bisq.community/manfredkarrer/32/26_2.png) [@ManfredKarrer](https://bisq.community/u/ManfredKarrer)\
**Post date:** [May 14, 2017, 8:38am UTC](https://bisq.community/t/java-class-not-found-after-building-for-fedora/2009/2 "2017-05-14T08:38:09Z")

</div>

Seems openJFX is not installed. JavaFX is not part of openJDK and needs to be installed extra if u dont use the Oracle jdk.

---

<div class="post-metadata">

**Author:** ![quad](https://bisq.community/letter_avatar/quad/32/5_5575768a8748004e209b776fc1b2916d.png) [@quad](https://bisq.community/u/quad)\
**Post date:** [May 15, 2017, 12:07pm UTC](https://bisq.community/t/java-class-not-found-after-building-for-fedora/2009/3 "2017-05-15T12:07:49Z")

</div>

Hey again,

I thought i was using Oracle JDK (I have it installed), but turns out the ‘java’ command was linked to OpenJDK. Using Oracle JDK solved the problem, and I magically managed to run the program on Fedora.

Thanks a lot for the support! Althought I have to ask, why is it written in Java? Not exactly the best platform for such a project, don’t you think? Is there any rationale behind it?

---

<div class="post-metadata">

**Author:** ![alexej996](https://bisq.community/user_avatar/bisq.community/alexej996/32/491_2.png) [@alexej996](https://bisq.community/u/alexej996)\
**Post date:** [May 15, 2017, 7:06pm UTC](https://bisq.community/t/java-class-not-found-after-building-for-fedora/2009/4 "2017-05-15T19:06:16Z")

</div>

Easier development and cross platform support. [https://forum.bitsquare.io/t/why-use-java/1927](https://forum.bitsquare.io/t/why-use-java/1927)
