-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbridges_setup_java_bluej.html
121 lines (115 loc) · 4.59 KB
/
bridges_setup_java_bluej.html
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
<DOCTYPE html>
<html lang="en">
<head>
<title>BRIDGES Java Setup Page(for BlueJ IDE)</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- w3IncludeHTML() -->
<script src="https://www.w3schools.com/lib/w3data.js"></script>
<!-- all pages need those. -->
<link rel="stylesheet" type="text/css" href="./assets/css/bridges.css">
<link rel="stylesheet" type="text/css" href="./assets/css/nav.css">
<link rel="stylesheet" type="text/css" href="./assets/css/glyphicon.css">
<link rel="stylesheet" type="text/css" href="./assets/css/footer.css">
</head>
<body>
<div w3-include-html="./navbar.html">
<script>
w3IncludeHTML();
</script>
</div>
<h2 class = "sep_heading">BRIDGES(Java): Getting Started (Using BlueJ)</h2>
<table class = "table table-bordered">
<thead>
<tr>
<td colspan = "2">
<b>Step 1: Install BlueJ </b>
<ul>
<li> If you do not have BlueJ
installed, download it from the
<a href = "http://www.bluej.org/"> BlueJ site</a>
and install it on your computer -- <b>these instructions were written
for version 4.2.2</b>.
<li> BlueJ requres Java JDK to be installed, else you will
get the error <b>"BlueJ could not find any Java systems.
A JDK must be installed to run BlueJ."</b>
</ul> Verification: Open the BlueJ application and you should see
the main object window.
</td>
</tr>
<tr>
<td colspan = "2">
<b>Step 2: Create Bridges Account</b>
<ul> <li> Visit the Bridges
<a href = "http://bridgesuncc.github.io"> main page</a>
and create yourself an account by clicking the login button
on the top navigation bar. Please ensure that
your user id is devoid of spaces, as it will be
used as part of the web link for your projects.
After creating your account, click
on your profile name in the upper right corner to
view your profile. Once in your profile,
you will see your
API Key; you will need this API key in part 2
of the tutorial(as well as in every BRIDGES program
you write).
</ul>
</td>
</tr>
<tr>
<td class = "col-md-2"> <b>Step 3: Create a Java Project</b>
<ul>
<li> Open <i> Project-->New Project</i>
<li> Follow the Project menu directions and create a project
at a convenient location. This will create a new folder
on your drive.
<li> Example on right shows a class named <b>sllist</b> that
has been created.
</ul>
</td>
<td class = "col-md-8">
<img src = "./img/Tutorialv3/java/bluej/new_proj.png" width = "800" />
</td>
</tr>
<tr> <td class = "col-md-2"> <b>Step 4: Import Jar File into project</b>
<ul>
<li> Download the Bridges.jar file from
<a href = "http://bridgesuncc.github.io">
Bridges Website (Downloads button)</a> and save it somewhere convenient
on your drive.
<li> Click on <i>BlueJ-->Preferences</i> and select the <i>Libraries</i> tab;
<li> Click the <i>Add File</i> button, to add the downloaded BRIDGES
Jar file. <b>You will need to quit and restart BlueJ for the library to
be loaded!</b>
</ul>
<td class = "col-md-8"> <img src = "./img/Tutorialv2/java/bluej/load_jar.png" width = "800" />
</td>
</tr>
<tr>
<td class = "col-md-2"> <b>Step 4: Create, Compile, and Run a Bridges Program</b>
<ul>
<li> We will illustrate a Singly Linked List Bridges program
here.
<li> Go to this
<a href = "https://bridgesuncc.github.io/tutorials/testing/java/tut_sllist_p1.java.html"> BRIDGES Tutorial</a> and copy/paste the Java program into
the main window by creating a class. Set the class name in the IDE
to match the class name in the program
<li> Set an assignment number, and your credentials in the line that
creates the Bridges object at the beginning of the program.
<li> Compile the program by clicking on the <b> compile </b> button.
<li> To execute the program, right click on the project and
click on the the main() method.
<li> If the program compiles and executes without errors, a web link will be output that can be followed to see the linked list visualization.
</ul>
</td>
<td class = "col-md-8">
<img src = "./img/bridges_setup/bluej/bridges_program.png" width = "800" />
<img src = "./img/bridges_setup/bluej/run_program.png" width = "700" />
<img src = "./img/Tutorialv2/java/bluej/weblink.png" width = "700" />
</td>
</tr>
</thead>
</table>
<div w3-include-html="./footer.html"></div>
</body>
</html>