22 programming the smartserver with java, 1 setting up the java programming environment, 2 installing eclipse ide for java ee developers – Echelon i.LON SmartServer 2.0 User Manual
Page 406: 3 installing the java development kit, 4 installing maven 2.2.1, Programming the smartserver with java -1, Setting up the java programming environment -1, Installing eclipse ide for java ee developers -1, Installing the java development kit -1, Installing maven 2.2.1 -1

i.LON SmartServer 2.0 Programmer’s Reference
22-1
22
Programming the SmartServer with Java
You can write custom applications for the SmartServer in Java. The SmartServer supports the Java
API for XML Web Services (JAX-WS 2.0 and 2.1), which is Java programming language
creating web services.
22.1
Setting up the Java Programming Environment
To setup your Java programming environment for the SmartServer, you need to download and install
the following software:
• Echelon SmartServer JAX-ES programming example.
• Eclipse IDE for Java EE Developers 3.5.
• JAVA Development Kit.
• Maven 2.2.1.
After you download and install this software, you need to add environment variables for the JDK and
Maven 2.2.1.
22.1.1
Installing Echelon SmartServer JAX-ES Programming Example
To download and setup the Echelon SmartServer JAX-ES programming example, follow these steps:
1. Download the Echelon SmartServer JAX-ES programming example (.zip file) from the Echelon
Web site at www.echelon.com/downloads.
2. Extract the .zip file to your computer’s local drive (for example, C:\).
3. Browse to the C:\eclipse\eclipse 3.5\ilon.ws.clients folder on your computer and confirm that
there is a jax-ws folder.
22.1.2
Installing Eclipse IDE for Java EE Developers
To download and setup the Eclipse IDE for JAVA EE Developers, follow these steps:
1. Browse to the Eclipse downloads Web page at
2. Download the .zip file.
3. Browse to the C:\eclipse\eclipse 3.5 folder, and then create a new folder named eclipse-jee-
galileo-win32.
4. Extract the .zip file to the C:\eclipse\eclipse 3.5\eclipse-jee-galileo-win32 folder.
22.1.3
Installing the Java Development Kit
To download and setup JAVA Development Kit (JDK), follow these steps:
Browse to the Sun Developer Network (SDN) Java SE download s Web page at
1. Download the JDK 6 Update 17 with Java EE bundle.
2. Install the JDK into the C:\Sun directory following the setup instructions.
3. Open a command prompt, change the directory to C:\Sun (enter cd c:\Sun), and then enter the set
command. This displays your system environment.
22.1.4
Installing Maven 2.2.1
To download and setup Maven 2.2.1, follow these steps:
1. Browse to the Maven download Web page