WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Minion (https://www.wowinterface.com/forums/forumdisplay.php?f=124)
-   -   Java-Minion on Linux (https://www.wowinterface.com/forums/showthread.php?t=53849)

OUGHT 07-07-16 12:32 AM

Java-Minion on Linux
 
Trying to make Minion work on Linux.

> java -jar Minion-jfx.jar
Error: Could not find or load main class gg.minion.Minion

Is there a way to actually launch it? =-)

Dolby 07-07-16 10:13 AM

What flavor of linux are you running? Its working fine on my Ubuntu VM with Java 1.8_92.


You have the libs folder in the same directory as the Minion-jfx.jar right?

Minion folder
|
--- Minion-jfx.jar
|
--- lib/

OUGHT 07-07-16 10:14 AM

Arch Linux.
Yeah, the same structure.

Java version:
openjdk version "1.8.0_92"

Dolby 07-07-16 11:15 AM

I haven't tried it with openjdk, maybe that is the issue? I use the rpm from http://www.oracle.com/technetwork/ja...s-2133151.html .

When I get a few moments later tonight I'll spin up a VM with openjdk and see what happens.

OUGHT 07-07-16 11:19 AM

Okay, and I will try "official" Java =-)

OUGHT 07-15-16 04:07 AM

So, Minion works under official Java (but not undeo openJDK). But Minion hangs at 'fetching global configuration', throwing following error in console:

Code:

ERROR 2016-07-15 13:04:21,538 [JavaFX Application Thread] gg.minion.controller.MinionController:lambda$null$48(1062): GameDetectionService failed: {} java.lang.NullPointerException
        at gg.minion.plugin.NameFinder.preVisitDirectory(NameFinder.java:82)
        at gg.minion.plugin.NameFinder.preVisitDirectory(NameFinder.java:25)
        at java.nio.file.Files.walkFileTree(Files.java:2677)
        at gg.minion.plugin.WOWPlugin.process(WOWPlugin.java:82)
        at gg.minion.service.GameDetectionService$1.call(GameDetectionService.java:30)
        at gg.minion.service.GameDetectionService$1.call(GameDetectionService.java:26)
        at javafx.concurrent.Task$TaskCallable.call(Task.java:1423)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at javafx.concurrent.Service.lambda$null$492(Service.java:725)
        at java.security.AccessController.doPrivileged(Native Method)
        at javafx.concurrent.Service.lambda$executeTask$493(Service.java:724)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)


OUGHT 07-20-16 07:16 AM

Bump.
Prepatch is live, please help me update my addons! =-)

Dolby 07-20-16 07:48 AM

Quote:

Originally Posted by OUGHT (Post 316614)
Bump.
Prepatch is live, please help me update my addons! =-)

Can you post your minion.log and minion.xml? There should be a .minion folder inside your user folder.

OUGHT 07-20-16 07:50 AM

2 Attachment(s)
Sure!
Attaching them to this post.

Dolby 07-20-16 08:03 AM

Hrm, looks like our game detection stuff is crashing, it may be permission based but not sure. I'm going to pass this on to our java dev and see what he says.

One thing you can maybe try if you're up for it is to run it as sudo? If you rather not I understand.

OUGHT 07-20-16 08:04 AM

No problem =-)

Nnope, it doesn't work even with sudo:

ERROR 2016-07-20 17:04:17,592 [JavaFX Application Thread] gg.minion.controller.MinionController:lambda$null$48(1062): GameDetectionService failed: {} java.lang.NullPointerException
at gg.minion.plugin.NameFinder.preVisitDirectory(NameFinder.java:82)
at gg.minion.plugin.NameFinder.preVisitDirectory(NameFinder.java:25)
at java.nio.file.Files.walkFileTree(Files.java:2677)
at gg.minion.plugin.WOWPlugin.process(WOWPlugin.java:82)
at gg.minion.service.GameDetectionService$1.call(GameDetectionService.java:30)
at gg.minion.service.GameDetectionService$1.call(GameDetectionService.java:26)
at javafx.concurrent.Task$TaskCallable.call(Task.java:1423)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at javafx.concurrent.Service.lambda$null$492(Service.java:725)
at java.security.AccessController.doPrivileged(Native Method)
at javafx.concurrent.Service.lambda$executeTask$493(Service.java:724)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Dolby 07-20-16 08:12 AM

One more thing to try if you're up for it... bypass our auto detection for games you can edit your minion.xml.

Directly above the tag </minion> add the following:

Code:

<game addon-path="L2hvbWUvb3VnaHQ=" auto-update="false" display-name="World of Warcraft" game-id="WOW" unique-game-id="WOW-1">
</game>


Try loading Minion, if it loads all the way then you'll need to go to the 'Options' tab and change the AddOn folder path to the location you currently store your AddOns. If it doesnt work, check the log and see if there is any new errors please.

OUGHT 07-20-16 08:31 AM

Nnope.

Code:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<minion>
<config-version>2</config-version>
<version>3.0.4</version>
<build>d088d8ad4307e29064531715002f0f9b73c7a05b</build>
<libs-build>b63f4538ee74377f336d4f636ad7da84f9b5ab53</libs-build>
<client>
        <concurrent-updates>2</concurrent-updates>
        <game-scan-depth>4</game-scan-depth>
    <position height="720.0" width="1210.0" x="100.0" y="100.0"/>
</client>
<user>
<ga-user-id>7ebdc5ba-4c30-46d7-86f4-83cb87209fe2</ga-user-id>
</user>
<game-configs never-ask-about-scanning="true">
<game-config game-id="ESO" scannable="false"/>
<game-config game-id="WOW" scannable="true"/>
</game-configs>
<drive-configs never-ask-about-scanning="true">
<drive-config drive="/" scannable="true"/>
</drive-configs>
<game addon-path="L2hvbWUvb3VnaHQ=" auto-update="false" display-name="World of Warcraft" game-id="WOW" unique-game-id="WOW-1">
</game>
</minion>

Code:

ERROR 2016-07-20 17:29:50,218 [JavaFX Application Thread] gg.minion.controller.MinionController:lambda$null$48(1062): GameDetectionService failed: {} java.lang.NullPointerException
        at gg.minion.plugin.NameFinder.preVisitDirectory(NameFinder.java:82)
        at gg.minion.plugin.NameFinder.preVisitDirectory(NameFinder.java:25)
        at java.nio.file.Files.walkFileTree(Files.java:2677)
        at gg.minion.plugin.WOWPlugin.process(WOWPlugin.java:82)
        at gg.minion.service.GameDetectionService$1.call(GameDetectionService.java:30)
        at gg.minion.service.GameDetectionService$1.call(GameDetectionService.java:26)
        at javafx.concurrent.Task$TaskCallable.call(Task.java:1423)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at javafx.concurrent.Service.lambda$null$492(Service.java:725)
        at java.security.AccessController.doPrivileged(Native Method)
        at javafx.concurrent.Service.lambda$executeTask$493(Service.java:724)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)


Dolby 07-21-16 09:02 PM

Thanks OUGHT,

Talked to our Java dev and we found an issue that needs to be fixed in the client. Its only for those people newly installing minion where it tries to scan for games (reason it works for me atm). The new Minion is missing a directory scanning blacklist for linux (we added this so that Minion wouldn't take forever trying to find games in areas where they would never be). So this should be fixed in the next version of Minion as its something fairly simple. I hope to get a new update out early next week.

OUGHT 07-22-16 02:07 AM

Great! I cannot wait to try it! Thank you very much =-)

korazin 08-29-16 09:08 AM

Same problem here
 
Exact same issue as described here. Same error log. Running Oracle's Java (openjdk didn't work at all), on openSUSE 42.1 (Leap).

I am also looking forward to an update as I would LOVE to be able to update my addons through this client instead of doing them all manually from time to time. :)

Dolby 08-29-16 11:10 AM

The update has been held up with us trying to stomp out a bug. In the mean time you can try this development version I have compiled (the current bug won't affect you on Linux or OSX)...

https://cdn.mmoui.com/minion/v3/Mini...5-dev-java.zip

Minion will prompt you that it needs to be updated when you use this version. You'll want to decline this update prompt until we fully release 3.0.5.

thrimbor 06-26-17 04:26 PM

I know this is a necropost, but I have some info to contribute.

Quote:

Originally Posted by OUGHT (Post 316233)
Trying to make Minion work on Linux.

> java -jar Minion-jfx.jar
Error: Could not find or load main class gg.minion.Minion

Is there a way to actually launch it? =-)

I got that error message too, and it's pretty useless. What it really means is: You're missing the JavaFX-package. It's not included in the OpenJDK-package, it's an extra package you have to install. "pacman -S java-openjfx" was sufficient on my Arch Linux system, and I was able to run Minion.

Now I only have to find out how to get Minion to do anything...

/edit:
Got it to run. However, there are several issues:

1. It seems to need a restart before an added game appears in the list.
2. When removing the previously added WoW, an Exception was thrown. Details in this pastebin.
3. On the next start, another Exception was thrown, seemingly related to unsynchronized access from multiple threads. Details here.
4. When a game (WoW in my case) was added, subsequent start-ups of Minion are very slow. Console output is showing that the program is working, but the interface takes quite a while to appear.
5. The systray icon sometimes doesn't appear. When it does appear, it's labeled "JavaEmbeddedFrame". The icon's right-click-menu looks awful, with heavily aliased font.


All times are GMT -6. The time now is 11:00 AM.

vBulletin © 2020, Jelsoft Enterprises Ltd
© 2004 - 2019 MMOUI