Skip to content

Commit 3cf2f34

Browse files
committed
Missed files on last commit.
1 parent 63c6f1c commit 3cf2f34

3 files changed

Lines changed: 45 additions & 1 deletion

File tree

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,25 @@
11
JavaFX-Spring
22
=============
33

4-
Example application demonstrating integration of JavaFX and Spring technologies on the client and server
4+
Example application demonstrating integration of JavaFX and Spring technologies on the client and server. For more details about the technologies used, and a details of the code, please refer to the following 3 part blog series:
5+
6+
* [JavaFX in Spring Day 1 - Application Initialization](http://steveonjava.com/javafx-and-spring-day-1)
7+
* [JavaFX in Spring Day 2 - Configuration and FXML](http://steveonjava.com/javafx-and-spring-day-2)
8+
* [JavaFX in Spring Day 3 - Authentication and Authorization](http://steveonjava.com/javafx-and-spring-day-3)
9+
10+
To run this example, you will need to build and run the server and client projects individually using maven. You can either do this via an IDE or from the command line.
11+
12+
To start with, please make sure you have the following prerequisites:
13+
14+
* Maven (3.x or higher)
15+
* JDK 7 (update 4 or higher)
16+
17+
The command line steps to get this up and running are:
18+
19+
cd client
20+
mvn jetty:run
21+
cd ..
22+
cd server
23+
mvn compile exec:java
24+
25+
If it doesn't work, make sure that maven is running the right version of java by calling "mvn -version". If you are still having trouble, check out the blogs mentioned above, and post if your issue is not resolved.

client/pom.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@
1313
<org.springframework-version>3.1.0.RELEASE</org.springframework-version>
1414
</properties>
1515
<dependencies>
16+
<dependency>
17+
<groupId>com.oracle</groupId>
18+
<artifactId>javafx</artifactId>
19+
<version>2.2</version>
20+
<scope>system</scope>
21+
<systemPath>${java.home}/lib/jfxrt.jar</systemPath>
22+
</dependency>
1623
<dependency>
1724
<groupId>org.slf4j</groupId>
1825
<artifactId>slf4j-api</artifactId>
@@ -110,6 +117,15 @@
110117
<configuration>
111118
<source>${java-version}</source>
112119
<target>${java-version}</target>
120+
<fork>true</fork>
121+
</configuration>
122+
</plugin>
123+
<plugin>
124+
<groupId>org.codehaus.mojo</groupId>
125+
<artifactId>exec-maven-plugin</artifactId>
126+
<configuration>
127+
<classpathScope>compile</classpathScope>
128+
<mainClass>steveonjava.client.CustomerApp</mainClass>
113129
</configuration>
114130
</plugin>
115131
</plugins>

server/pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,13 @@
130130
<failOnMissingWebXml>false</failOnMissingWebXml>
131131
</configuration>
132132
</plugin>
133+
<plugin>
134+
<groupId>org.mortbay.jetty</groupId>
135+
<artifactId>maven-jetty-plugin</artifactId>
136+
<configuration>
137+
<contextPath>/</contextPath>
138+
</configuration>
139+
</plugin>
133140
</plugins>
134141
</build>
135142
</project>

0 commit comments

Comments
 (0)