Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Build Issues(JavaFX8 build assistance needed)
Build Issues [message #1700062] Mon, 29 June 2015 22:03 Go to next message
Cameron Cunning is currently offline Cameron CunningFriend
Messages: 2
Registered: June 2015
Junior Member
I've written a small battleship application with JavaFX8.
This is the first thing I've really done outside of assignments or tutorials, so I'd love feedback if anyone wants to offer it, although this is incidental to my real question.
https://github.com/ccunning2/MiasBattleShip

When I try to make a runnable jar with eclipse, it will successfully do so but it loses the background image have applied to some elements. Looking on stackoverflow, someone suggested that using e(fx)clipse was necessary. Is this the case, and if so, how do I add this to an existing project?

Furthermore, I'd ultimately like to get it built in self contained exe/mac app deployments. Does this require me to learn how to build an ant script or something, or is there an easier way?

EDIT: The image is loaded with the setStyle method, e.g
this.setStyle("-fx-background-image: url('resources/images/ship.jpg');");

[Updated on: Wed, 01 July 2015 14:04]

Report message to a moderator

Re: Build Issues [message #1700298 is a reply to message #1700062] Wed, 01 July 2015 14:18 Go to previous messageGo to next message
Cameron Cunning is currently offline Cameron CunningFriend
Messages: 2
Registered: June 2015
Junior Member
The problem has been resolved. The issue was a lowercase letter where a capital should have been in the image path!
Re: Build Issues [message #1700311 is a reply to message #1700298] Wed, 01 July 2015 17:44 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
For building Apps we have extra support but you'd have to create your App with the project wizard See http://wiki.eclipse.org/Efxclipse/Tutorials#Tutorial_1
Previous Topic:I installed the most recent version of e(fx)clipse and I get an error.
Next Topic:CSS-Editor Maven and e(fx)clipse does not work in 1.0
Goto Forum:
  


Current Time: Mon Jan 13 21:36:28 GMT 2025

Powered by FUDForum. Page generated in 0.02938 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top