Quantcast Java-Minion on Linux - WoWInterface
Thread Tools Display Modes
07-07-16, 12:32 AM   #1
OUGHT
A Deviate Faerie Dragon
 
OUGHT's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2012
Posts: 13
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? =-)
__________________
The Mary Sue is not defined by her power, but by her lack of an even more powerful opponent. ©LessWrong
  Reply With Quote
07-07-16, 10:13 AM   #2
Dolby
PPAP
 
Dolby's Avatar
WoWInterface Admin
Join Date: Feb 2004
Posts: 2,185
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/

Last edited by Dolby : 07-07-16 at 10:15 AM.
  Reply With Quote
07-07-16, 10:14 AM   #3
OUGHT
A Deviate Faerie Dragon
 
OUGHT's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2012
Posts: 13
Arch Linux.
Yeah, the same structure.

Java version:
openjdk version "1.8.0_92"
__________________
The Mary Sue is not defined by her power, but by her lack of an even more powerful opponent. ©LessWrong

Last edited by OUGHT : 07-07-16 at 11:03 AM.
  Reply With Quote
07-07-16, 11:15 AM   #4
Dolby
PPAP
 
Dolby's Avatar
WoWInterface Admin
Join Date: Feb 2004
Posts: 2,185
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.
  Reply With Quote
07-07-16, 11:19 AM   #5
OUGHT
A Deviate Faerie Dragon
 
OUGHT's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2012
Posts: 13
Okay, and I will try "official" Java =-)
__________________
The Mary Sue is not defined by her power, but by her lack of an even more powerful opponent. ©LessWrong
  Reply With Quote
07-15-16, 04:07 AM   #6
OUGHT
A Deviate Faerie Dragon
 
OUGHT's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2012
Posts: 13
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)
__________________
The Mary Sue is not defined by her power, but by her lack of an even more powerful opponent. ©LessWrong
  Reply With Quote
07-20-16, 07:16 AM   #7
OUGHT
A Deviate Faerie Dragon
 
OUGHT's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2012
Posts: 13
Bump.
Prepatch is live, please help me update my addons! =-)
__________________
The Mary Sue is not defined by her power, but by her lack of an even more powerful opponent. ©LessWrong
  Reply With Quote
07-20-16, 07:48 AM   #8
Dolby
PPAP
 
Dolby's Avatar
WoWInterface Admin
Join Date: Feb 2004
Posts: 2,185
Originally Posted by OUGHT View Post
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.
  Reply With Quote
07-20-16, 07:50 AM   #9
OUGHT
A Deviate Faerie Dragon
 
OUGHT's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2012
Posts: 13
Sure!
Attaching them to this post.
Attached Files
File Type: log minion.log (16.4 KB, 37 views)
File Type: xml minion.xml (778 Bytes, 56 views)
__________________
The Mary Sue is not defined by her power, but by her lack of an even more powerful opponent. ©LessWrong
  Reply With Quote
07-20-16, 08:03 AM   #10
Dolby
PPAP
 
Dolby's Avatar
WoWInterface Admin
Join Date: Feb 2004
Posts: 2,185
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.

Last edited by Dolby : 07-20-16 at 08:05 AM.
  Reply With Quote
07-20-16, 08:04 AM   #11
OUGHT
A Deviate Faerie Dragon
 
OUGHT's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2012
Posts: 13
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)
__________________
The Mary Sue is not defined by her power, but by her lack of an even more powerful opponent. ©LessWrong
  Reply With Quote
07-20-16, 08:12 AM   #12
Dolby
PPAP
 
Dolby's Avatar
WoWInterface Admin
Join Date: Feb 2004
Posts: 2,185
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.
  Reply With Quote
07-20-16, 08:31 AM   #13
OUGHT
A Deviate Faerie Dragon
 
OUGHT's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2012
Posts: 13
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)
__________________
The Mary Sue is not defined by her power, but by her lack of an even more powerful opponent. ©LessWrong
  Reply With Quote
07-21-16, 09:02 PM   #14
Dolby
PPAP
 
Dolby's Avatar
WoWInterface Admin
Join Date: Feb 2004
Posts: 2,185
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.
  Reply With Quote
07-22-16, 02:07 AM   #15
OUGHT
A Deviate Faerie Dragon
 
OUGHT's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2012
Posts: 13
Great! I cannot wait to try it! Thank you very much =-)
__________________
The Mary Sue is not defined by her power, but by her lack of an even more powerful opponent. ©LessWrong
  Reply With Quote
08-29-16, 09:08 AM   #16
korazin
A Kobold Labourer
Join Date: Aug 2016
Posts: 1
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.
  Reply With Quote
08-29-16, 11:10 AM   #17
Dolby
PPAP
 
Dolby's Avatar
WoWInterface Admin
Join Date: Feb 2004
Posts: 2,185
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.
  Reply With Quote
06-26-17, 04:26 PM   #18
thrimbor
A Kobold Labourer
Join Date: Jun 2017
Posts: 1
I know this is a necropost, but I have some info to contribute.

Originally Posted by OUGHT View Post
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.

Last edited by thrimbor : 06-26-17 at 04:48 PM. Reason: Added details
  Reply With Quote

WoWInterface » Site Forums » Minion » Java-Minion on Linux

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off