Installation.doc - GoogleCode

luckyhillockΔιαχείριση Δεδομένων

29 Νοε 2012 (πριν από 4 χρόνια και 8 μήνες)

217 εμφανίσεις


Page
1

of
13







Installation Guide



Page
2

of
13



TABLE OF CONTENTS


Tools

................................
................................
................................
................................
...

3

JDK 1.6

................................
................................
................................
...............................

3

MyEc
lipse6.0

................................
................................
................................
......................

4

PostgreSQL

................................
................................
................................
.........................

5

Tomcat 6.0

................................
................................
................................
..........................

5

Configure Tomcat 6.0 with E
clipse

................................
................................
....................

6

Deploying Project on Tomcat 6.0 with Eclipse

................................
................................
..

9

Subclipse

................................
................................
................................
...........................

11

Create G4GOrigin

................................
................................
................................
.............

11



Page
3

of
13


Tools


1.

JDK 1.6

2.

My
Eclipse

6.0

3.

PostgreSQL

4.

Tomcat 6.0

5.

Subclipse

6.

Create
G4GOrigin


JDK 1.
6

1.

Download JDK 1.6 from …

2.

http://www.java.net/download/jdk6/6u10/promoted/b24/binaries/jdk
-
6u10
-
beta
-
bin
-
b24
-
windows
-
i586
-
p
-
14_may_2008.exe

3.

Double click on
jdk
-
6u10
-
beta
-
bin
-
b24
-
windows
-
i586
-
p
-
14_may_2008.exe

4.

JDK will be installed an
d jdk1.
6

will be created into C:
\
Program Files
\
java or C:
\

folder

5.

Right Click on My Computer
-
>Properties
-
> Advanced
-
>Environment Variables
-
>User
Variables
-
> New

6.

Set JAVA_HOME with valu
e C:
\
Program Files
\
java
\

jdk
-
1_6

or c:
\

jdk
-

1_
6

7.

Create a CLASSPATH en
vironment variable or update existing with value
%JAVA_HOME%
\
lib
\
tools.jar;

8.





Page
4

of
13

9.

Create PATH environment variable with value %PATH%;%JAVA_HOME%
\
bin.

Create PATH in Users Variable DO NOT update System Variable otherwise your
windows will corrupt









My
Eclipse
6.0


1.

Download MyEclipse
http://www.myeclipseide.com/Downloads
-
index
-
req
-
getit
-
lid
-
95.html

2.

Double click on
Setup

and follow the instruction

3.

It will create directory c:
\
eclipse

and a shortcut on desktop
.

4.

If you didn’t find shortcut g
o to c:
\
eclipse folder

5.

Double click on eclipse.exe and select SendTo
-
>Desktop to create shortcut on desktop.




Page
5

of
13







PostgreSQL

1.

ftp://ftp10.us.postgresql.org/pub/postgresql//binary/v8.3.0/w
in32/postgresql
-
8.3.0
-
1.zip

2.

Its installation steps are on site
http://pginstaller.projects.postgresql.org/

3.

On s
tep 5 leave the domain as it is and choose the password carefully and note
down all
the information

4.

On step 6 choose the password as
root


5.

Open PGAdmin
III

from program files

Create a new database G4GOrigin

6.

Run SQL Files as provided
in G4GOrigin
SQL folder



Tomcat 6.0

1.

Download Tomcat 6.0 from

:

http://ftp.wayne.edu/apache/tomcat/tomcat
-
6/v6.0.16/bin/apache
-
tomcat
-
6.0.16.tar.gz

2.

Extract it in c:/tools/
apache
-
tomcat
-
6.0.16

Or in any folder note down it
’s

path

3.

Create an CATALINA_HOME environme
nt variable with value
C:
\
Tools
\
apache
-
tomcat
-
6.0.16

4.

Update PATH user variable set value
%PATH%;%JAVA_HOME%
\
bin;%CATALINA_HOME%/bin


Page
6

of
13




Configure
Tomcat 6.0

with Eclipse

1.

To configure a connector for you favorite application server, open the Application
Se
rver Connector preferences dialog using the
button on the Server Manager
toolbar or from the main Eclipse menubar by choosing
Wi
ndow > Preferences >
MyEclipse
.
>Servers
>Tomcat
6.x

2.

Enable the connector


Page
7

of
13






Page
8

of
13

3.

Browse and select tomcat root dir.

4.

Under JDK

Set the JAVA OPTIONS through Eclipse by putting all the given options as
follows.
(Adjust this as per your configuration)

-
Djava.awt.h
eadless=false

-
Djava.endorsed.dirs="c:
\
Tools
\
Java
\
jdk1.6.0_02
\
jre
\
lib
\
endorsed"

-
DLOG_DIR="C:
\
Tools
\
workspace
-
G4GOrigin
\
G4GOrigin
\
logs"

-
DWORK_DIR="C:
\
Tools
\
workspace
-
G4GOrigin
\
G4GOrigin"

-
DDOC_DIR="C:
\
Tools
\
workspace
-
G4GOrigin
\
G4GOrigin"

-
D
APP_DOC_DIR=
"C:
\
Tools
\
workspace
-
G4GOrigin
\
G4GOrigin
\
WebRoot
\
WEB
-
INF"

-
DSERVER_INSTANCE=SANDBOX

5.

Click on Add



Page
9

of
13




6.

Choose jdk1.6 directory

C:
\
Program Files
\
java
\
jdk1.6


7.

After finishing click on OK.



Deploying Project on
Tomcat 6.0

with Eclipse

1.

To deploy a J2EE proje
ct select the

button found on the toolbar of the Server
Manager or the MyEclipse perspective workbench. This will launch the P
roject
Deployments dialog,


Page
10

of
13






2.


3.

For further assistance refer
http://www.myeclipseide.com/documentation/quickstarts/appservers/
\




Page
11

of
13


Subclipse

1.

Open MyEclipse

2.

Read and f
ollow instruction on
http://subclipse.tigris.org/install.html



Create G4GOrigin

1.

Open MyEclipse , Choose other from file tab
.



2.

On the new menu

write svn in wizards and choose

Checkout Projects f
rom SVN

and click next

3.

Create a new repository

4.

give URL
http://tony.staging.testwg.com/svn/WorldGaming/G4GWebApp/trunk/WG_3_0

5.

and follow the instruction

6.

In Checkout As m
enu, choose checkout as a project in workspace and give project
name as
G4GOrigin

7.

The procedure is same for installing gamevalidation


Page
12

of
13



8.

Click finish and follow the instruction

9.

Created an “endorsed” folder under <JAVA_HOME>/jre/lib/ and put

activation.jar
,
jaxb
-
api.jar
,
webservices
-
api.jar

in that.

10.

Go to the Tomcat installation dir
, under the lib folder copy all jars

as given below


http.jar

jakarta
-
oro.jar

jaxb
-
api.jar jaxb
-
impl.jar

jaxb
-
xjc.jar

jaxws
-
api.jar

jaxws
-
rt.jar
jaxws
-
tools.jar jsr250
-
api.jar


r
esolver.jar


saaj
-
api.jar saaj
-
impl.jar sjsxp.jar

stax
-
ex.jar
streambuffer.jar


activation.jar FastInfoset.jar jsr173_api.jar
jsr181
-
api.jar

impessa.worldgaming.client.jar


11.

After

downloading G4GOrigin from SVN.
Go to lib folder under WEB
-
INF

Right click o
n files if present and under Build Path select Add to Build Path.

12.

Right click the G4GOrigin project created in eclipse select Build path
-
>
Configure build path

Select Library tab
, Click Add
External jars
,
Choose and
select
jars
as given below
from tomca
t lib folder
,
Your
library

structure should
look like below
.


Page
13

of
13