summaryrefslogtreecommitdiffstats
path: root/site/branches/site-20060730-mvnbased/src/site/xdoc/installjava.xml
blob: 0a47976062fe736f1b7ee997b971f397738c7a72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<?xml version="1.0" encoding="UTF-8"?>
<!--
  Copyright (c) 2005 the apache software foundation or its licensors, as applicable.

  licensed under the apache license, version 2.0 (the "license");
  you may not use this file except in compliance with the license.
  you may obtain a copy of the license at

     http://www.apache.org/licenses/license-2.0

  unless required by applicable law or agreed to in writing, software
  distributed under the license is distributed on an "as is" basis,
  without warranties or conditions of any kind, either express or implied.
  see the license for the specific language governing permissions and
  limitations under the license.
 -->
<document url="install.xml">

	<properties>

		<author email="mike_edwards@uk.ibm.com">mike edwards</author>

		<title>apache tuscany - Installation instructions for Java projects</title>
	</properties>	
	
	<body>

	<section name="Installation Instructions for JAVA projects">
	<p>This page describes what is needed to install and run Tuscany SCA, SDO and DAS for Java.
	</p>

	<p>if you haven't already, the first step is to download the latest release of apache tuscany from our <a href="download.html">downloads</a> page.
	</p>

	</section>

	<section name="System Requirements">
		<p>in order to run the tuscany java projects there are some minimum system requirements</p>
			<table style="text-align: left; width: 100%;" border="1"
				cellpadding="2" cellspacing="2">
				<tbody>
					<tr> <!-- heading -->
						<td><b>Software</b></td>
						<td><b>Download Link</b></td>
						<td><b>Download Instructions </b></td>
					</tr>
					<tr>
						<td>jdk</td>
						<td>
							<script type="text/javascript">linkNewWindow('http://java.sun.com/j2se/1.5.0/download.jsp','jdk 5.0');</script> 
						</td>
						<td>Steps for Java setup is <a href="#setup JDK 5.0">here</a>.  </td>
					</tr>
					<tr>
						<td>operating system</td>
						<td>
						<ul>
							<li>windows xp sp2</li>
							<li>linux: red hat fedora core </li>
						</ul>
					</td>
					<td></td>
					</tr>
					<tr> <!--mvn -->
				        <td> Apache Maven 2.0.4  </td>
				        <td><script type="text/javascript">linkNewWindow('http://maven.apache.org/download.html','Maven 2.04');</script> </td>
					<td> 
						You would use maven to build samples if you wish to. Instruction for downloading mave 2.0.4 and building samples is <a href="#setup maven">here</a>.
				
							</td>
				</tr>				</tbody>
			</table>
	</section>

	
	<a name="setup JDK 5.0"></a>
<section name="Downloading and Installing the Java JDK 5.0"> 
<ul>
	<li>
	Point your Web browser to   <script type="text/javascript">linkNewWindow('http://java.sun.com/j2se/1.5.0/download.jsp','jdk 5.0');</script>.
	</li>
	<li>
	Select "Download JDK 5.0 Update 6". 
	</li>
	<li>
	Accept the License agreement, then select Windows Online Installation, 
	Multi-language - jdk-1_5_0_06-windows-i586-p-iftw.exe. </li>
	<li>
	Download jdk-1_5_0_06-windows-i586-p-iftw.exe to the C:\tuscany directory. 
	</li>
	<li>
	From the command prompt do the following: 
	<pre>
	jdk-1_5_0_06-windows-i586-p-iftw.exe
	This will run the JDK 5.0 Installation Wizard. Accept the License agreement, 
	then proceed through the pages of the wizard. Accept all the default options. 

	After a few minutes the installation will complete.
        You should see the following: <br></br>
       	<img alt="installation result" src="jdkinstall.jpg"/>

	Press Finish to close the installation wizard. 
	</pre> 
	</li>
	<li>
	Create a new .bat file C:\tuscany\setenv.bat and add the following line: 
	<pre>
	set JAVA_HOME=C:\Program Files\Java\jdk1.5.0_06
	</pre>
	</li>
</ul>
</section>



<a name="setup maven"></a>
<section name ="Setup Maven and Build Samples">
	<p>
		<b> Download and Setup </b>
	</p>
<ul>
	<li>
		Point your Web browser to  <script type="text/javascript">linkNewWindow('http://maven.apache.org/download.html','http://maven.apache.org/download.html');</script>.
	</li>
	<li>	
		Select "Maven 2.0.4 (zip) - maven-2.0.4-bin.zip".
	</li>
	<li>
	Download maven-2.0.4-bin.zip to the C:\tuscany directory. 
	</li>
	<li>
	From the command prompt do the following: 
	<pre>
		unzip maven-2.0.4-bin.zip
	</pre>
	This will extract Maven 2.0.4 to the C:\tuscany\maven-2.0.4 directory. 
	</li>
	<li>
	Modify C:\tuscany\setenv.bat and add the following line: 
	<pre>
		set PATH=%PATH%;C:\tuscany\maven-2.0.4\bin
	</pre>
	</li>
</ul>
<p>
	<b> Build Samples </b>
	<br></br>
		You are now ready to build samples. For example,  go to samples/sca/helloworld and issue the following command to build it. 
		<br> </br>
		<pre>
			mvn 
		</pre>
	</p>
</section>
</body>


</document>