Installation of Netbeans and Configuration with Maestro ...

braintreesmileΛογισμικό & κατασκευή λογ/κού

15 Αυγ 2012 (πριν από 5 χρόνια και 28 μέρες)

320 εμφανίσεις

braintreesmile_9b4219c9
-
4c02
-
4ce9
-
9db9
-
09ae1c73f0bf.doc


Page
1

of
16





Step 1: Prerequisites

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

2

Step 2: Download and Install NetBeans

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

2

Step 3: Register JBoss as an Application Server

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

6

Step 4: Install SVN Command Line Client
................................
................................
........

9

Step 5: Configure NetBeans to use

SVN Command Line Client

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

10

Step 6: Check out the Maestro Project from SVN

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

11

Step 7: Import Maestro into a NetBeans Project

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

13

Step 8: Environment Variables

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

15

Step 9: Install SVN if you don’t already have it

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

15

Step10: Fix the NetBeans Install
................................
................................
.......................

16

So there are two project files

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

16

You should be good to go…

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

16

braintreesmile_9b4219c9
-
4c02
-
4ce9
-
9db9
-
09ae1c73f0bf.doc


Page
2

of
16

Installation of
NetBeans

and Configuration with Maestro Project


Step 1:

Prerequisites


Make sure you have installed a Java JDK

Install JBoss to c:
\
JBoss




Step
2
:

Download and Install
NetBeans


Go to
http://www.netbeans.com

and download the latest version of NetBeans (currently
6.01). I clicked the download button and chose the Web and Java EE Bundle




Run
netbeans
-
6.0.1
-
ml
-
javaee
-
windows.exe


braintreesmile_9b4219c9
-
4c02
-
4ce9
-
9db9
-
09ae1c73f0bf.doc


Page
3

of
16



GlassFish and Tomcat are the bundled

application servers (GlassFish is made by Sun).
We don’t need them because we are using JBoss


doesn’t matter if you install them or
not. For this example we are going to uncheck them and proceed with the installation.




Accept the license agreement


braintreesmile_9b4219c9
-
4c02
-
4ce9
-
9db9
-
09ae1c73f0bf.doc


Page
4

of
16



Choose where you want to install
NetBeans



it doesn’t matter where since we will use a
project folder at c:
\
MaestroProject


On the second line you need to specify where you installed a JDK





Make sure the confirmation screen has everything correct
and click Install


braintreesmile_9b4219c9
-
4c02
-
4ce9
-
9db9
-
09ae1c73f0bf.doc


Page
5

of
16




Click Finish


this will pull up a browser where you can register NetBeans


up to you…


braintreesmile_9b4219c9
-
4c02
-
4ce9
-
9db9
-
09ae1c73f0bf.doc


Page
6

of
16

Step 3: Register JBoss as an Application Server


Start
NetBeans

from the Start
-
> Programs
-
>
NetBeans

group




Click Tools
-
> Servers




Cli
ck Add Server…


braintreesmile_9b4219c9
-
4c02
-
4ce9
-
9db9
-
09ae1c73f0bf.doc


Page
7

of
16



Choose JBoss Application Server and click Next




Enter C:
\
JBoss for the Installation Location and click Next


braintreesmile_9b4219c9
-
4c02
-
4ce9
-
9db9
-
09ae1c73f0bf.doc


Page
8

of
16



Click Finish


the default values are fine




Click Close




braintreesmile_9b4219c9
-
4c02
-
4ce9
-
9db9
-
09ae1c73f0bf.doc


Page
9

of
16


Step 4:
Install SVN Command Line Client


Go to
http://netbeans.open.collab.net/

and download the Command Line Client for
Windows XP


Run
CollabNetSubversion
-
client
-
1.4.6
-
4.win32.exe



you can just take the defaults




1



2

3



4


braintreesmile_9b4219c9
-
4c02
-
4ce9
-
9db9
-
09ae1c73f0bf.doc


Page
10

of
16

Step 5: Configure NetBea
ns to use SVN Command Line
Client




In Subversion, click Versioning
-
> Subversion
-
> Checkout




Browse to the folder where you installed the Command Line Client in Step 4

C:
\
Program Files
\
CollabNet Subversion



Now you need to restart the IDE


Click
File
-
> Exit and then reopen
NetBeans

braintreesmile_9b4219c9
-
4c02
-
4ce9
-
9db9
-
09ae1c73f0bf.doc


Page
11

of
16


Step 6: Check out the Maestro Project from SVN


Note


if you already have the project on your hard drive, you can skip this step




Click Versioning
-
> Subversion
-
> Checkout




Repository URL: 131.216.159.153

F
ill in User and Password and check Save Username and Password then click Next

braintreesmile_9b4219c9
-
4c02
-
4ce9
-
9db9
-
09ae1c73f0bf.doc


Page
12

of
16




Repository Folder is MaestroProject
/Maestro


Local Folder is c:
\
MaestroProject


Click Finish




After the Checkout process completes, click Create Project… and proceed to St
ep 6





braintreesmile_9b4219c9
-
4c02
-
4ce9
-
9db9
-
09ae1c73f0bf.doc


Page
13

of
16



Step 7
: Import Maestro into a
NetBeans

Project


If you skipped Step
6
, Click File
-
> New Project




Choose a the Web Category and Web Application with Existing Ant Script option

Click Next




In Location, Browse to c:
\
MaestroProject
\
Maestro

F
or Project Name, type Maestro


Click Next

braintreesmile_9b4219c9
-
4c02
-
4ce9
-
9db9
-
09ae1c73f0bf.doc


Page
14

of
16




Build Project:
30_compileMaestro

Clean Project:
clean
-
project

Run Project:


02_deploy_and_restart_Jboss

Deploy Project:
01_deploylocal

Click Next




Click Next


braintreesmile_9b4219c9
-
4c02
-
4ce9
-
9db9
-
09ae1c73f0bf.doc


Page
15

of
16



Under Source Package Folders, Click Add
Folder

Select EJBSource and Click Open

Click Finish

Step 8: Environment Variables


In order to run the build.xml successfully you will need some Environment variables.
Or
at the time of this composition is absolutely true with JBuilder.
It makes sense
for it to be
true for NetBeans as well because the build.xml file references these System Variables.
You can see what they are by running the build.xml as an Ant file.
The default procedure
is show
-
dependencies
. At this time, examples of that needed are
:

JAVA_HOME=c:/sdk/jdk5

JBOSS_HOME=C:
\
JBOSS

JBUILDER_HOME=C:
\
JBuilder2007

MAESTROPROJECT_HOME=C:
\
MaestroProject


Step 9: Install SVN
i
f you don’t already have it

If you already have Smart SVN or SVN attached to JBuilder if you have it, you don’t
necessaril
y need to do this step. The
NetBeans

install overwrites a directory and file you
need to pull down from version control; Noted in next step.


http://www.syntevo.com/smartsvn/download.html

The
foundation edition is FREE.

braintreesmile_9b4219c9
-
4c02
-
4ce9
-
9db9
-
09ae1c73f0bf.doc


Page
16

of
16


Step10: Fix the
NetBeans

Install


The
nbprojects folder from Source Control was just overwritten
at
NetBeans

install


you
need to replace it with the one from SVN.
Exit out of
NetBeans

and replace the folder
with another SVN t
ool (Smart SVN or JBuilder will work). You may have to delete the
nbprojects folder before you can update it from SVN
.


So delete C:
\
MaestroProject
\
Maestro
\
nbproject and log in to
SVN

anoth
er way and pull
down the folder.


U
nfortunately
SmartSVN

sometimes

shows what's on the hard drive and not the
repository
-

try and click on the project in
SmartSVN

and do an

update more
’.


Blom
added the nbprojects folder to
SVN

so I didn't have to worry about having instructions to
create the classpath
etal
. The pro
blem is that when
NetBeans

imported the project it overwrote
the existing nbprojects folder
.


W
hile
N
etBeans is running, it opens that file, so
SVN

can't update it since
N
etBeans has a read
and write lock on the file
.

After restarting NetBeans, if you righ
t click Maestro in the project tree and go to properties page,
you will see the contents of the nbprojects stuff
-

basically we define 3 source file folders,

list the
classpath, and have the buld and run ant scripts defined
.

So there are two project file
s

C:
\
MaestroProject
\
Maestro
\
nbproject
\
project.xml is used by NetBeans.

C:
\
MaestroProject
\
Maestro
\
.project is used by JBuilder.

You should be good to go…

NetBeans 6 is better than the 5.5 . Once 6 is installed you do not have to install extras
like you did

with 5.5 in order to get the forms developer environment.