Comments (20)
See issue #28.
This is expected.
from maptool.
Oops. My bad.
from maptool.
No prob, was on my phone so didn't want to repeat. I need to capture that error anyhoo in next version.
from maptool.
I notice that the exceptions I'm getting aren't the same as was reported in issue 28 but might be just OS differences.
Adding the packager.dll into the path changes the error but still doesn't work. The packager.dll needs something else. I need to get something else in the path apparently.
java.lang.UnsatisfiedLinkError: C:\mydocs\Gaming\rptools\MapTool Nerps\packager.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1857)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at jdk.packager.services.userjvmoptions.LauncherUserJvmOptions.<clinit>(LauncherUserJvmOptions.java:53)
at jdk.packager.services.UserJvmOptionsService.getUserJVMDefaults(UserJvmOptionsService.java:58)
at net.rptools.maptool.util.UserJvmPrefs.getJvmOption(UserJvmPrefs.java:74)
at net.rptools.maptool.client.ui.PreferencesDialog.setInitialState(PreferencesDialog.java:871)
at net.rptools.maptool.client.ui.PreferencesDialog.<init>(PreferencesDialog.java:292)
from maptool.
Does it work is you run. 'gradle run'? I've added the required jvm command there for use/example.
Also, Gradle should add the dependency from your jdk u are using.
from maptool.
Does it work is you run. 'gradle run'?
Nope. Because I'm not doing this from source. :) I thought I had mentioned this before but I see that I didn't. Sorry. Again.
I'm using the release jar file from your website. Needed to make sure that my players could run it before attempting to use it for game sessions.
To get the dll in the path I'm starting it with:
java -Djava.library.path=".\;%PATH%" -jar MapTool-1.4.4.0.jar
from maptool.
Ah. In that case... The dll isn't in your PATH, I'll update the website today with. Some instructions on running it.
Is there a reason to not use the .exe then? Better for your players as they won't need Java installed then...
from maptool.
The DLL is in the path or the last exception wouldn't have been thrown. It is specifically telling you that libraries packager.dll depends on can't be found. Without the DLL present in the path you get the first exception I posted. My guess is some of the MS Visual C runtime libs.
Is there a reason to not use the .exe then? Better for your players as they won't need Java installed then...
Several reasons.
- It uses an installer instead of just being able to unzip it someplace and run from the folder.
- It put an icon on my desktop without asking permission.
- It modified my Start Menu without asking for permission or notifying me it had done so.
- It won't allow for multiple versions to be installed so as to allow users to connect to servers running different versions.
Also Windows Defender thinks its suspect and wanted to block the install.
from maptool.
Taking the various DLLs included in the exe version and dropping them in the folder along with the packager DLL let it work using the command line I gave above.
from maptool.
Odd, I don't have to include the other dll's but I link to the dll from the installed jdk so will have to check that.
FYI obviously that also only gets you around the error. I will have to disable the tab for the JAR version as you will need to set that up yourself.
The jar is there exactly for that reason, some people are picky about that sort of stuff.
FYI my fork will probably not be for you in that case. I will be up front, there are restful like functions and Sentry.io error reporting so if you are the worring type u may want to stick with 1.4.0.5.
from maptool.
I'll definitely be sticking with 1.4.0.5 for our game sessions.
from maptool.
Also Windows Defender thinks its suspect and wanted to block the install.
I got that as well on my Windows system. I run Linux and Windows on separate machines. I had to open Windows Defender to manually add the .exe to whitelist. I had to Google it on how to do it with the WIndows 10 version.
from maptool.
FYI Windows is always going to complain because I can't afford to digitally sign it. But I haven't gotten a specific Defenders warning.
from maptool.
It was weird. I hadn't seen it with the regular 1.4.1.8 MT release though that was with jwrapper.
I did just get a Windows update last week and maybe it's a new behavior. Nothing else has popped that up lately and it certainly could be related to the digital signing.
No big deal in the end. If I decide I want to, I can just package up the jar with the dlls in a zip file along with a batch file. I'm not sure what's in your build versus the 1.4.1.x branch. But then I don't know what is different between 1.4.0.5 and 1.4.18 so there's that too. lol
from maptool.
You will have to read through the forums to catch up. I have a running thread on what I add to my fork. And pretty much all of that as of a year ago is in the 1.4.1 branch. Craig also has a 1.4.1 forums post.
There are a lot of bug fixes and enhancements added.
from maptool.
OK, now that I've finally got sit in front of the computer (RL issues and all) vs my phone I see the full issue now.
I'll keep this open until I fix it in 1.4.4.1.
from maptool.
Definitely let me know if there is something I can do on my end.
from maptool.
I added try/catch around the preferences so if the DLL is not available, the startup tab is now grayed out and unavailable vs throwing an exception.
from maptool.
Apparently this is not 100% fixed. It will be fixed in the next release.
In the meantime, if you are getting this error, you are probably using a JRE. Install and use Java 10 JDK instead and it should launch ok.
from maptool.
Fixed...again...hopefully... :)
https://github.com/JamzTheMan/MapTool/releases/tag/1.4.5.1
from maptool.
Related Issues (20)
- macro input function should set focus HOT 12
- getTokenOpacity displays incorrectly in the macro editor.
- setTokenOpacity does not update on player view HOT 1
- Non-snap-to-grid Tokens have bad last path info
- java.lang.NullPointerException from MacroButtonDialog on MacOS HOT 1
- Java 11 Compatibility HOT 2
- Macro function getMoveCount() does not return terrain modifier costs HOT 1
- Edit macro allows pops up an error (Mac user HOT 1
- Movement distance is obscured by darkness HOT 2
- Moving into VBL zone can momentarily freeze MapTool HOT 1
- java.lang.NullPointerException when opening campaign file HOT 6
- Export Campaign As... does not create compatible campaign file. HOT 1
- 32-bit system support HOT 1
- Release Fedora RPMs. HOT 1
- please add a getBarVisible() macro function HOT 1
- Add resource dialog box cuts off buttons on righ-hand side on Linux HOT 1
- Improve JVM Preferences with error messages HOT 1
- Moving token can trigger ConcurrentModificationException
- Campaign autosave issues
- stack size perameters not editable HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maptool.