Comments (8)
It works for me on macOS High Sierra running Java 9:
$ java -version
java version "9.0.1"
Java(TM) SE Runtime Environment (build 9.0.1+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)
$
Since the JAR is just a zip file, try unzipping it and piping it into grep
looking for the class:
$ jar -tvf tokentool-2.0.jar
When I do that, one of the first files printed out is TokenTool.class
and that's the one that the error is referring to.
Offhand, I'd say there's something weird with your Java installation.
from tokentool.
Or TokenTool 2.0 requires Java 9+.
Probably should go ahead and move to 10 or 11 and try again.
from tokentool.
The MANIFEST.MF says this:
Manifest-Version: 1.0
Implementation-Title: tokentool
Target-Compatibility: 1.8
JavaFX-Preloader-Class: net.rptools.tokentool.client.SplashScreenLoade
r
Implementation-Version: 2.0
Built-By: appveyor
Built-Date: Mon Mar 19 15:47:05 PDT 2018
Source-Compatibility: 1.8
Built-JDK: 1.8.0_162
Implementation-Vendor: RPTools
Main-Class: net.rptools.tokentool.client.TokenTool
So it looks like Java 8 should work, but it would need the JavaFX libraries; he may not have those. But if that were the case, I would expect the error to be that the JFX classes can't be found, not TokenTool. Although it does say, "Cannot find or load", so perhaps it's the JFX dependencies on TokenTool that are causing the problem.
We'll see what he says about his environment and whether he can try Java 9.
from tokentool.
That's probably it. Perhaps there is a separate install for the JavaFX libs and OpenJDK?
from tokentool.
from tokentool.
Replaced the java version:
> java -version
openjdk version "11-internal" 2018-09-25
OpenJDK Runtime Environment (build 11-internal+20-suse-1.1-x8664)
OpenJDK 64-Bit Server VM (build 11-internal+20-suse-1.1-x8664, mixed mode)
Also checked the jar, and find net/rptools/tokentool/client/TokenTool.class (as well as TokenTool$1.class and TokenTool$2.class).
After upgrading, I'm now getting the following:
> java -jar tokentool-2.0.jar
Error: Could not find or load main class net.rptools.tokentool.client.TokenTool
Caused by: java.lang.NoClassDefFoundError: javafx/application/Application
So it sounds like javafx is not installed. However, I'm not finding anything called javafx or javaFX or JavaFX. Is it part of another package?
from tokentool.
You’ve probably figured this out by now, but Google says OpenJFX is a sub project of OpenJDK. Where to find it for openSUSE is unknown to me; you’ll need to ask Google yourself, probably including some additional information about your setup.
I’m certainly glad that the error message is more clear when using an updated version of the OpenJDK!
from tokentool.
Yeah, I popped on my server and found openjfx in the Debian repos, but it appears that there was a change two years ago to do with a licensing conflict so it's not packaged in the openSUSE repos.
I can either build it myself (but I have no interest getting ant and friends set up again on my machine), maybe find an unofficial repo that has it, or else install Oracle Java.
Thanks All.
from tokentool.
Related Issues (20)
- Change Portrait button stopped working HOT 3
- WebP support request HOT 1
- TokenTool does not start HOT 4
- Release build should create an MSI for windows HOT 1
- Filetype selector on Save As... dialog is stuck on WebP HOT 1
- The 2.2 installer does not contain overlays HOT 1
- Fails to start with missing image on arch HOT 10
- token tool not starting HOT 3
- TokenTool crashes on startup on Ubuntu 21.10 HOT 6
- [BUG]: TT hangs when clicking "Change Portrait Image"
- Changing portrait does not work HOT 5
- Generating two-sided tokens HOT 1
- Crash to desktop on loading HOT 4
- [BUG]: Not opening Portrait images on Windows 11 HOT 5
- Token Tool 2.2.1 will not open HOT 2
- PSD not loading into Overlay Manager HOT 1
- Add New File Format Support: AVIF HOT 3
- Updated Overlays HOT 14
- Option to not autocrop/ recentre for asymmetric overlays
- Capture Screen function freezes TokenTool (Ubuntu 22.04 XFCE)
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 tokentool.