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

Expect a bit of breakage the following days as we adjust to this new platform.

We thank you for your patience.
-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:

frostwire
HOSTNAME IS skinubuntu
Starting FrostWire...
Java exec found in PATH. Verifying...
Suitable java version found [java = 9-internal]
Configuring environment...
Loading FrostWire:
os.name="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$1.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(java.desktop@9-internal/InvocationEvent.java:303)
at java.awt.EventQueue.dispatchEventImpl(java.desktop@9-internal/EventQueue.java:759)
at java.awt.EventQueue.access$500(java.desktop@9-internal/EventQueue.java:97)
at java.awt.EventQueue$3.run(java.desktop@9-internal/EventQueue.java:712)
at java.awt.EventQueue$3.run(java.desktop@9-internal/EventQueue.java:706)
at java.security.AccessController.doPrivileged(java.base@9-internal/Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(java.base@9-internal/ProtectionDomain.java:77)
at java.awt.EventQueue.dispatchEvent(java.desktop@9-internal/EventQueue.java:729)
at java.awt.EventDispatchThread.pumpOneEventForFilters(java.desktop@9-internal/EventDispatchThread.java:192)
at java.awt.EventDispatchThread.pumpEventsForFilter(java.desktop@9-internal/EventDispatchThread.java:117)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(java.desktop@9-internal/EventDispatchThread.java:106)
at java.awt.EventDispatchThread.pumpEvents(java.desktop@9-internal/EventDispatchThread.java:102)
at java.awt.EventDispatchThread.pumpEvents(java.desktop@9-internal/EventDispatchThread.java:94)
at java.awt.EventDispatchThread.run(java.desktop@9-internal/EventDispatchThread.java:83)
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)

Comments

  • 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

    /usr/lib/frostwire/frostwire.sh

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

    Towards the end of frostwire.sh 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:

    /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/

    so you can write this before that line:
    JAVA_PROGRAM_DIR=/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/

    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