This repository has been archived by the owner on Apr 24, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall_sun_wtk.html
131 lines (98 loc) · 3.58 KB
/
install_sun_wtk.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
121
122
123
124
125
126
127
128
129
130
131
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Mobile Widgets</title>
<link rel="stylesheet" href="style/style.css" />
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />
<script type="text/javascript" src="js/StructureElts.js"></script>
<script type="text/javascript" src="js/Structure.js"></script>
<script type="text/javascript" src="js/DocElements.js"></script>
</head>
<body>
<script type="text/javascript">
<!--
idCurrentPage = "install_sun_wtk";
beginPage();
//-->
</script>
<h1 class="title">Install and use the Sun Wireless ToolKit</h1>
<script type="text/javascript">
<!--
addIndex();
//-->
</script>
<script type="text/javascript">addTitle("Download", 1);</script>
<p>
Sun Java Wireless Toolkit is accessible on the Sun web site.<br/>
URL: <a href="http://java.sun.com/javame/downloads/index.jsp" target="_blank">http://java.sun.com/javame/downloads/index.jsp</a><br/>
Download the Sun Java Wireless Toolkit 2.5.2 for CLDC.
</p>
<br/>
<script type="text/javascript">addTitle("Installation", 1);</script>
<p>
Launch the downloaded file (on Windows: sun_java_wireless_toolkit-2.5.2_01-win.exe).<br/>
Use the default installation.
</p>
<br/>
<script type="text/javascript">addTitle("Proxy configuration", 1);</script>
<p>
Open the <b>Wireless ToolKit</b>.<br/>
<img alt="Sun Wireless ToolKit configuration" src="images/installation/SunWTK_OpenConfig.png" />
</p>
<p>
Open preferences (<b>Edit -> Preferences...</b>)<br/>
Enter proxy configuration and valid.<br/>
<img alt="network configuration page" src="images/installation/SunWTK_ConfigProxy.png" />
</p>
<br/>
<script type="text/javascript">addTitle("Launch a widget (JAR/JAD files) via toolkit interface", 1);</script>
<p>
Via the MS Windows <b>Start</b> menu, launch <b>Run MIDP Application...</b>
shortcut (<b>Programs > Sun Java (TM) Wireless Toolkit 2.5.2_01 for CLDC >
Run MIDP Application...</b>).<br/>
Select your widget JAD file and launch it.<br/>
Emulator is launched and we can use the widget.
</p>
<br/>
<script type="text/javascript">addTitle("Launch a widget (JAR/JAD files) via command line", 1);</script>
<p>
Open console.<br/>
Move to toolkit folder (Windows command: <b>cd C:\WTK2.5.2_01\bin</b>).<br/>
Use emulator application to launch widget (Windows command:
<b>emulator -Xdescriptor:<MyWidget>.jad</b>).<br/>
Example to launch toolkit 3D Demo:<br/>
<b>emulator -Xdescriptor:C:\WTK2.5.2_01\apps\Demo3D\bin\Demo3D.jad</b>.
</p>
<br/>
<script type="text/javascript">addTitle("Configure widgets", 1);</script>
<p>
All widgets can be configure independently.<br/>
On Eclipse, open <b>app.properties</b> file on root folder for a widget project
(<b>/MyWidget/app.properties</b>).<br/>
Add following lines (change <b>yourAccount</b> by your Windows account):
</p>
<textarea rows="4" cols="80" readonly="readonly" wrap="off">
emulator.bin.sunwtk=C:/WTK2.5.2_01/bin/emulator.exe
emulator.skin.sunwtk=DefaultColorPhone
emulator.rms.sunwtk=C:/Documents and Settings/yourAccount/j2mewtk/2.5.2/appdb
emulator=sunwtk
</textarea>
<p>
Launch Widget: The Sun WTK emulator is launched.
</p>
<br/>
<script type="text/javascript">
<!--
addBackPageNavigator ('', '');
//-->
</script>
<script type="text/javascript">
<!--
endPage();
//-->
</script>
</body>
</html>