scalafx-hello-world | Simple example of a ScalaFX application | Build Tool library
kandi X-RAY | scalafx-hello-world Summary
kandi X-RAY | scalafx-hello-world Summary
Simple example of a ScalaFX application using [Simple-Build-Tool] (SBT).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of scalafx-hello-world
scalafx-hello-world Key Features
scalafx-hello-world Examples and Code Snippets
Community Discussions
Trending Discussions on scalafx-hello-world
QUESTION
Environment:
- OpenJDK 64-Bit Server VM Zulu12.2+3-CA (build 12.0.1+12, mixed mode, sharing)
- Scala 2.12.7
- Windows 10 Professional, X86_64
- IntelliJ IDEA 2019.1.3 (Ultimate Edition)
I checked out the scalafx-hello-world
from GitHub, built and ran it in IntelliJ and it worked all fine. Here quickly the significant application implementation:
ANSWER
Answered 2019-Aug-14 at 14:13I've not been able to exactly reproduce your problem, but I have been able to get a project that uses JavaFX-only (that is, it doesn't make use of ScalaFX) to build and run.
Here's what I'm using (everything else is specified in the build file):
(I did try using Zulu OpenJDK 12 to build and run the project, and that worked too. However, it's probably best if you use the version of OpenJFX that matches the JDK.)
When I tried your original sources and build.sbt
, I encountered the following error when executing an sbt run
command from the command line:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install scalafx-hello-world
Install [Java 11 JDK](http://www.oracle.com/technetwork/java/javase/downloads/index.html) or newer. This project should also work with Java 10. If you are want to use Java 8 look at the [SFX-8](https://github.com/scalafx/scalafx-hello-world/tree/SFX-8) branch of this project.
Install [SBT](http://www.scala-sbt.org/)
Run the example: change to the directory containing this example and use SBT to build and run the example: ``` %> sbt run ``` It will download needed dependencies, including Scala and ScalaFX, and run the example code.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page