Skip to main content



      Home
Home » Eclipse Projects » e(fx)clipse » Build Issues(JavaFX8 build assistance needed)
Build Issues [message #1700062] Mon, 29 June 2015 18:03 Go to next message
Eclipse UserFriend
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 10:04] by Moderator

Re: Build Issues [message #1700298 is a reply to message #1700062] Wed, 01 July 2015 10:18 Go to previous messageGo to next message
Eclipse UserFriend
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 13:44 Go to previous message
Eclipse UserFriend
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: Thu Jul 17 05:56:50 EDT 2025

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

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

Back to the top