Buy VPN - Never trust a VPN Provider that doesn't take Bitcoin
Welcome everybody to the new FrostWire forums.

Make sure to check out our Community Guidelines

Please be a good neighbor, treat others with respect and patience.
Make friends!

-FrostWire Team

FrostWire 6.x won't launch on Ubuntu Xenial

I've tried OpenJDK with JRE versions 8 and 9, FrostWire V 6.x won't launch. IT gives the following error:

HOSTNAME IS skinubuntu
Starting FrostWire...
Java exec found in PATH. Verifying...
Suitable java version found [java = 9-internal]
Configuring environment...
Loading FrostWire:"Linux"
Exception in thread "main" java.lang.RuntimeException: Unable to change the L&F
at com.frostwire.gui.theme.ThemeMediator.changeTheme(Unknown Source)
at com.limegroup.gnutella.gui.Main.main(Unknown Source)
Caused by: java.lang.RuntimeException: Unable to change the L&F
at com.frostwire.gui.theme.ThemeMediator$ Source)
at java.awt.event.InvocationEvent.dispatch(java.desktop@9-internal/
at java.awt.EventQueue.dispatchEventImpl(java.desktop@9-internal/
at java.awt.EventQueue.access$500(java.desktop@9-internal/
at java.awt.EventQueue$
at java.awt.EventQueue$
at Method)
at java.awt.EventQueue.dispatchEvent(java.desktop@9-internal/
at java.awt.EventDispatchThread.pumpOneEventForFilters(java.desktop@9-internal/
at java.awt.EventDispatchThread.pumpEventsForFilter(java.desktop@9-internal/
at java.awt.EventDispatchThread.pumpEventsForHierarchy(java.desktop@9-internal/
at java.awt.EventDispatchThread.pumpEvents(java.desktop@9-internal/
at java.awt.EventDispatchThread.pumpEvents(java.desktop@9-internal/
Caused by: java.lang.IllegalAccessError: class com.frostwire.gui.theme.ThemeMediator (in unnamed module @0x63eed20a) cannot access class sun.swing.SwingUtilities2 (in module java.desktop) because module java.desktop does not export sun.swing to unnamed module @0x63eed20a
at com.frostwire.gui.theme.ThemeMediator.fixAAFontSettings(Unknown Source)
at com.frostwire.gui.theme.ThemeMediator.applySkinSettings(Unknown Source)
at com.frostwire.gui.theme.ThemeMediator.access$100(Unknown Source)
... 15 more

Something went wrong with FrostWire.
Maybe you're using the wrong version of Java?
(FrostWire is tested against and works best with with Sun's JRE, Java 1.7+)
The version of Java in your PATH is:
openjdk version "9-internal"
OpenJDK Runtime Environment (build 9-internal+0-2016-04-14-195246.buildd.src)
OpenJDK 64-Bit Server VM (build 9-internal+0-2016-04-14-195246.buildd.src, mixed mode)


  • Hello! FrostWire is not Java 9 compatible yet, your log shows it's trying to run with Java 9.

  • I built it and tested it on Xenial with Java 8, it does work fine with java 8.

    If you want to keep java 9 as your default and you still have java 8 in your system, you will have to modify the launch script which I believe lives at


    (if you installed the .deb file we provide on our website)

    Towards the end of there's the call to the java runtime environment:

    ${JAVA_PROGRAM_DIR}java -Djava.library.path=. -jar frostwire.jar $1

    you should probably hardcode the value of JAVA_PROGRAM_DIR to the location of your openjdk-8 installation dir, in my Xenial it lives here:


    so you can write this before that line:

    and this will force the launcher to use java 8. Hope this helps.
    (you gotta have it installed though)

    It will be a while until we make it compatible, it will be no easy task to bring our big code base to the new "modularization" stuff Oracle is pushing out, it will force us to waste time on re-doing a lot of work in our installers for windows and mac, as of now we don't need anything from Java 9.

Leave a Comment