aboutsummaryrefslogtreecommitdiffstats
blob: a9eb29c00f7aad721fae8da70edbc1ba17c84977 (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
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Build and run the model</title>
<link href="book.css" rel="stylesheet" type="text/css">
<meta content="DocBook XSL Stylesheets V1.75.1" name="generator">
<link rel="home" href="index.html" title="eTrice User Guide">
<link rel="up" href="TutorialHelloWorldforJava.html" title="Tutorial HelloWorld for Java">
<link rel="prev" href="Createastatemachine.html" title="Create a state machine">
<link rel="next" href="OpentheMessageSequenceChart.html" title="Open the Message Sequence Chart">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<h1 xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">Build and run the model</h1>
<div class="section" title="Build and run the model">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both">
<a name="Buildandrunthemodel"></a>Build and run the model</h2>
</div>
</div>
</div>
<p>Now the model is finished and source code can be generated. The project wizard has created a launch configuration that is responsible for generating the source code. From 
				<span class="emphasis"><em>HelloWorld/</em></span> right click 
				<span class="bold"><strong>gen_HelloWorld.launch</strong></span> and run it as gen_HelloWorld. All model files in the model directory will be generated.
			</p>
<p>
				
</p>
<div class="mediaobject">
<img src="images/015-HelloWorld06.png"></div>
<p>
			
</p>
<p>The code will be generated to the src-gen directory. The main function will be contained in 
				<span class="bold"><strong>SubSystem_HelloWorldRunner.java</strong></span>. Select this file and run it as Java application.
			</p>
<p>
				
</p>
<div class="mediaobject">
<img src="images/015-HelloWorld07.png"></div>
<p>
			
</p>
<p>The Hello World application starts and the string will be printed on the console window. To stop the application the user must type 
				<span class="emphasis"><em>quit</em></span> in the console window.
			</p>
<p>
				
</p>
<div class="mediaobject">
<img src="images/015-HelloWorld08.png"></div>
<p>
			
</p>
</div>
</body>
</html>