~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/ikvm/website/build/site/userguide/ikvm.html

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
2
<html>
 
3
<head>
 
4
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
 
5
<title>IKVM.NET Virtual Machine (ikvm.exe)</title>
 
6
<link type="text/css" href="../skin/page.css" rel="stylesheet">
 
7
</head>
 
8
<body text="#000000" bgcolor="#FFFFFF">
 
9
<!--================= start Navigation Path ==================-->
 
10
<table summary="navigation path" width="100%" border="0" cellpadding="0" cellspacing="0">
 
11
<tr>
 
12
<td nowrap="nowrap" valign="middle" bgcolor="#CFDCED" height="20"><img height="1" width="5" alt="" src="../skin/images/spacer.gif" class="spacer"><!--===== breadcrumb trail (javascript-generated) ====--><font size="2" face="Arial, Helvetica, Sans-serif"><script src="../skin/breadcrumbs.js" language="JavaScript" type="text/javascript"></script></font></td>
 
13
</tr>
 
14
<tr>
 
15
<td bgcolor="#4C6C8F" height="2"><img height="2" width="2" alt="" src="../skin/images/spacer.gif" class="spacer"></td>
 
16
</tr>
 
17
</table>
 
18
<!--================= end Navigation Path ==================-->
 
19
<!--================= start Banner ==================-->
 
20
<table summary="header with logos" width="100%" border="0" cellpadding="0" cellspacing="0">
 
21
<tr>
 
22
<!--================= start Group Logo ==================-->
 
23
<td bgcolor="#294563"></td>
 
24
<!--================= end Group Logo ==================-->
 
25
<!--================= start Project Logo ==================--><td width="100%" align="center" bgcolor="#294563"><a href="http://www.ikvm.net/"><img border="0" class="logoImage" alt="IKVM.NET" src="../images/project.gif" title="Java on .NET"></a></td>
 
26
<!--================= end Project Logo ==================-->
 
27
<!--================= start Search ==================--><td valign="top" rowspan="2" bgcolor="#294563"></td>
 
28
<!--================= start Search ==================--><td bgcolor="#294563"><img height="10" width="10" alt="" src="../skin/images/spacer.gif" class="spacer"></td>
 
29
</tr>
 
30
<tr>
 
31
<td valign="bottom" bgcolor="#294563" colspan="2">
 
32
<!--================= start Tabs ==================-->
 
33
<div class="tab">
 
34
<table summary="tab bar" border="0" cellpadding="0" cellspacing="0">
 
35
<tr>
 
36
<td width="6"><img alt="" height="8" width="6" src="../skin/images/spacer.gif"></td>
 
37
</tr>
 
38
</table>
 
39
</div>
 
40
<!--================= end Tabs ==================-->
 
41
</td><td bgcolor="#294563"><img alt="" width="1" height="1" src="../skin/images/spacer.gif" class="spacer"></td>
 
42
</tr>
 
43
<tr>
 
44
<td bgcolor="#4C6C8F" colspan="4"><img width="1" height="10" alt="" src="../skin/images/spacer.gif" class="spacer"></td>
 
45
</tr>
 
46
</table>
 
47
<!--================= end Banner ==================-->
 
48
<!--================= start Menu, NavBar, Content ==================-->
 
49
<table summary="page content" bgcolor="#ffffff" width="100%" border="0" cellpadding="0" cellspacing="0">
 
50
<tr>
 
51
<td valign="top">
 
52
<table summary="menu" border="0" cellspacing="0" cellpadding="0">
 
53
<tr>
 
54
<!--================= start left top NavBar ==================-->
 
55
<td rowspan="3" valign="top">
 
56
<table summary="blue line" border="0" cellpadding="0" cellspacing="0">
 
57
<tr>
 
58
<td bgcolor="#294563"><img width="10" height="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td>
 
59
</tr>
 
60
<tr>
 
61
<td bgcolor="#CFDCED"><font color="#4C6C8F" size="4" face="Arial, Helvetica, Sans-serif">&nbsp;</font></td>
 
62
</tr>
 
63
<tr>
 
64
<td bgcolor="#294563"><img width="10" height="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td>
 
65
</tr>
 
66
</table>
 
67
</td>
 
68
<!--================= end left top NavBar ==================--><td bgcolor="#294563"><img width="1" height="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td><td valign="bottom" bgcolor="#4C6C8F"><img width="10" height="10" alt="" src="../skin/images/spacer.gif" class="spacer"></td><td nowrap="nowrap" valign="top" bgcolor="#4C6C8F">
 
69
<!--================= start Menu items ==================-->
 
70
<div class="menu">
 
71
<ul>
 
72
<li>
 
73
<font color="#CFDCED">About</font>
 
74
<ul>
 
75
    
 
76
<li>
 
77
<a href="../index.html" title="">Home</a>
 
78
</li>
 
79
    
 
80
<li>
 
81
<a href="../download.html" title="">Download</a>
 
82
</li>
 
83
    
 
84
<li>
 
85
<a href="../uses.html" title="">Uses</a>
 
86
</li>
 
87
    
 
88
<li>
 
89
<a href="http://weblog.ikvm.net" title="">News</a>
 
90
</li>
 
91
    
 
92
<li>
 
93
<a href="http://weblog.ikvm.net/story.aspx/faq" title="">FAQ</a>
 
94
</li>
 
95
    
 
96
<li>
 
97
<a href="http://weblog.ikvm.net/story.aspx/license" title="">License</a>
 
98
</li>
 
99
    
 
100
<li>
 
101
<a href="../stories.html" title="">Case Studies</a>
 
102
</li>
 
103
  
 
104
</ul>
 
105
</li>
 
106
<li>
 
107
<font color="#CFDCED">User's Guide</font>
 
108
<ul>
 
109
    
 
110
<li>
 
111
<a href="../userguide/intro.html">Introduction</a>
 
112
</li>
 
113
    
 
114
<li>
 
115
<a href="../userguide/install.html" title="">Installation</a>
 
116
</li>
 
117
    
 
118
<li>
 
119
<a href="../userguide/tutorial.html" title="">Tutorial</a>
 
120
</li>
 
121
    
 
122
<li>
 
123
<a href="../userguide/tools.html" title="">Tools Reference</a>
 
124
</li>
 
125
      
 
126
      
 
127
      
 
128
  
 
129
</ul>
 
130
</li>
 
131
<li>
 
132
<font color="#CFDCED">Developer's Guide</font>
 
133
<ul>
 
134
    
 
135
<li>
 
136
<a href="../devguide/intro.html" title="">Introduction</a>
 
137
</li>    
 
138
    
 
139
<li>
 
140
<a href="../devguide/concepts.html" title="">Concepts</a>
 
141
</li>
 
142
    
 
143
<li>
 
144
<a href="../devguide/net2java.html" title="">Using Java Libraries</a>
 
145
</li>
 
146
    
 
147
<li>
 
148
<a href="../devguide/java2net.html" title="">Developing in Java</a>
 
149
</li>
 
150
  
 
151
</ul>
 
152
</li>
 
153
<li>
 
154
<font color="#CFDCED">Contributing</font>
 
155
<ul>
 
156
    
 
157
<li>
 
158
<a href="http://sourceforge.net/mail/?group_id=69637">Mailing Lists</a>
 
159
</li>
 
160
    
 
161
<li>
 
162
<a href="http://sourceforge.net/tracker/?group_id=69637">Report Bugs</a>
 
163
</li>
 
164
    
 
165
<li>
 
166
<a href="http://sourceforge.net/cvs/?group_id=69637">CVS Repository</a>
 
167
</li>
 
168
  
 
169
</ul>
 
170
</li>
 
171
</ul>
 
172
</div>
 
173
<!--================= end Menu items ==================-->
 
174
</td><td valign="bottom" bgcolor="#4C6C8F"><img width="10" height="10" alt="" src="../skin/images/spacer.gif" class="spacer"></td><td bgcolor="#294563"><img width="1" height="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td>
 
175
</tr>
 
176
<tr>
 
177
<td valign="bottom" align="left" colspan="2" rowspan="2" bgcolor="#4C6C8F"><img height="10" width="10" border="0" alt="" src="../skin/images/menu-left.gif"></td><td bgcolor="#4C6C8F"><img height="10" width="10" alt="" src="../skin/images/spacer.gif" class="spacer"></td><td valign="bottom" align="right" colspan="2" rowspan="2" bgcolor="#4C6C8F"><img height="10" width="10" border="0" alt="" src="../skin/images/menu-right.gif"></td>
 
178
</tr>
 
179
<tr>
 
180
<td height="1" bgcolor="#294563"><img width="1" height="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td>
 
181
</tr>
 
182
</table>
 
183
</td><td valign="top" width="100%">
 
184
<table summary="content" width="100%" border="0" cellpadding="0" cellspacing="0">
 
185
<!--================= start middle NavBar ==================-->
 
186
<tr>
 
187
<td colspan="4" bgcolor="#294563"><img width="10" height="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td>
 
188
</tr>
 
189
<tr>
 
190
<td align="left" width="10" bgcolor="#CFDCED"><img width="10" height="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td><td align="left" width="50%" bgcolor="#CFDCED"><font color="#4C6C8F" size="3" face="Arial, Helvetica, Sans-serif">
 
191
                &nbsp;
 
192
                
 
193
                </font><img width="10" height="8" alt="" src="../skin/images/spacer.gif" class="spacer"></td><td align="right" width="50%" bgcolor="#CFDCED"><font color="#4C6C8F" size="3" face="Arial, Helvetica, Sans-serif">
 
194
                &nbsp;
 
195
                
 
196
                </font><img width="10" height="8" alt="" src="../skin/images/spacer.gif" class="spacer"></td><td width="10" bgcolor="#CFDCED"><img width="10" height="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td>
 
197
</tr>
 
198
<tr>
 
199
<td colspan="4" bgcolor="#294563"><img width="10" height="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td>
 
200
</tr>
 
201
<!--================= end middle NavBar ==================-->
 
202
<!--================= start Content==================-->
 
203
<tr>
 
204
<td align="left" width="10"><img width="10" height="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td><td colspan="2" align="left" width="100%">
 
205
<div xmlns:xhtml="http://www.w3.org/1999/xhtml" class="content">
 
206
<table class="title" summary="">
 
207
<tr>
 
208
<td valign="middle">
 
209
<h1>IKVM.NET Virtual Machine (ikvm.exe)</h1>
 
210
</td>
 
211
</tr>
 
212
</table>
 
213
<p>The ikvm tool is a Java virtual machine implemented in .NET.</p>
 
214
<ul class="minitoc">
 
215
<li>
 
216
<a href="#Usage">Usage</a>
 
217
</li>
 
218
<li>
 
219
<a href="#Options">Options</a>
 
220
</li>
 
221
<li>
 
222
<a href="#Notes">Notes</a>
 
223
</li>
 
224
<li>
 
225
<a href="#Examples">Examples</a>
 
226
</li>
 
227
</ul>
 
228
                
 
229
<a name="N1000F"></a><a name="Usage"></a>
 
230
<h3>Usage</h3>
 
231
<div style="margin-left: 0 ; border: 2px">
 
232
<table class="ForrestTable" cellspacing="1" cellpadding="4">
 
233
<tr>
 
234
<td colspan="1" rowspan="1">
 
235
                        
 
236
<div class="pre">    ikvm [ <em>options</em> ] <em>classname</em> [ <em>args ...</em> ]</div>
 
237
                        
 
238
<div class="pre">    ikvm [ <em>options</em> ] -jar <em>jarfile</em> [ <em>args ...</em> ]</div>
 
239
 
 
240
</td>
 
241
</tr>
 
242
</table>
 
243
<dl>
 
244
                                
 
245
<dt>options</dt>
 
246
                                
 
247
<dd>Command-line options for the virtual machine.</dd>
 
248
                                
 
249
<dt>classname</dt>
 
250
                                
 
251
<dd>Fully-qualified name of a class containing the main method to execute. Do not include a
 
252
                                path or a .class extension. Do not use this with the -jar option.</dd>
 
253
                                
 
254
<dt>jarfile</dt>
 
255
                                
 
256
<dd>The name of an executable .jar file to execute. Used only with the -jar option.</dd>
 
257
                                
 
258
<dt>args</dt>
 
259
                                
 
260
<dd>Command-line arguments passed to the main class.</dd>
 
261
                        
 
262
</dl>
 
263
</div>
 
264
 
 
265
                
 
266
<a name="N10054"></a><a name="Options"></a>
 
267
<h3>Options</h3>
 
268
<div style="margin-left: 0 ; border: 2px">
 
269
<table class="ForrestTable" cellspacing="1" cellpadding="4">
 
270
                                
 
271
<tr>
 
272
                                        
 
273
<th colspan="1" rowspan="1">Option</th>
 
274
                                        <th colspan="1" rowspan="1">Description</th>
 
275
                                
 
276
</tr>
 
277
                                
 
278
<tr>
 
279
                                        
 
280
<td colspan="1" rowspan="1">
 
281
                                                -cp&nbsp;<em>classpath</em>     
 
282
<br>
 
283
                                                -classpath&nbsp;<em>classpath</em>
 
284
                                        </td>
 
285
                                        <td colspan="1" rowspan="1">
 
286
<p>Specifies the classpath for the JVM. <em>classpath</em> is a semicolon-delimited list of pathnames to directories and zip files / jar files.</p>
 
287
                                                          
 
288
<p>Note: If you specify this option more than once, only the last is used.</p>
 
289
                                                 
 
290
</td>
 
291
                                
 
292
</tr>
 
293
                                
 
294
<tr>
 
295
                                        
 
296
<td colspan="1" rowspan="1">
 
297
                                                -D<em>property-name</em>=<em>value</em>
 
298
                                        </td>
 
299
                                        <td colspan="1" rowspan="1">
 
300
                                                Set a system property named <em>property-name</em> to <em>value</em>. Note that there is no
 
301
                                                space between the -D and <em>property-name</em>.
 
302
                                        </td>
 
303
                                
 
304
</tr>
 
305
                                
 
306
<tr>
 
307
                                        
 
308
<td colspan="1" rowspan="1">
 
309
                                                -Xsave            
 
310
                                        </td>
 
311
                                        <td colspan="1" rowspan="1">
 
312
                                                Saves the generated assembly (for debugging)
 
313
                                        </td>
 
314
                                
 
315
</tr>
 
316
                                
 
317
<tr>
 
318
                                        
 
319
<td colspan="1" rowspan="1">
 
320
                                                -Xtime            
 
321
                                        </td>
 
322
                                        <td colspan="1" rowspan="1">
 
323
                                                Times the execution
 
324
                                        </td>
 
325
                                
 
326
</tr>
 
327
                                
 
328
<tr>
 
329
                                        
 
330
<td colspan="1" rowspan="1">
 
331
                                                -Xbootclasspath:<em>classpath</em>            
 
332
                                        </td>
 
333
                                        <td colspan="1" rowspan="1">
 
334
                                                
 
335
<p>Augments the boot classpath for the JVM. <em>classpath</em> is a semicolon-delimited list of pathnames to directories and jars.
 
336
                                                These classes are made available through the boot class loader in addition to those in the GNU Classpath libraries.</p>
 
337
                                                            
 
338
<p>Note: If you specify this option more than once, only the last is used.</p>
 
339
                                        
 
340
</td>
 
341
                                
 
342
</tr>
 
343
                                
 
344
<tr>
 
345
                                        
 
346
<td colspan="1" rowspan="1">
 
347
                                                -Xtrace:<em>name</em>              
 
348
                                        </td>
 
349
                                        <td colspan="1" rowspan="1">
 
350
                                                Displays all tracepoints with the given name
 
351
                                        </td>
 
352
                                
 
353
</tr>
 
354
                                
 
355
<tr>
 
356
                                        
 
357
<td colspan="1" rowspan="1">
 
358
                                                 -Xmethodtrace:<em>name</em>               
 
359
                                        </td>
 
360
                                        <td colspan="1" rowspan="1">
 
361
                                                Builds method trace into the specified output method 
 
362
                                        </td>
 
363
                                
 
364
</tr>
 
365
                                
 
366
<tr>
 
367
                                        
 
368
<td colspan="1" rowspan="1">
 
369
                                                -Xwait              
 
370
                                        </td>
 
371
                                        <td colspan="1" rowspan="1">
 
372
                                                Keeps process hanging around after exit
 
373
                                        </td>
 
374
                                
 
375
</tr>
 
376
                        
 
377
</table>
 
378
</div>
 
379
                
 
380
<a name="N10104"></a><a name="Notes"></a>
 
381
<h3>Notes</h3>
 
382
<div style="margin-left: 0 ; border: 2px">
 
383
<p>This command is intended to act as a "drop-in" replacement for the Sun / IBM JVM's. In many cases,
 
384
                        you can take a java command line and simply replace <em>java</em> with <em>ikvm</em>.</p>
 
385
<p>Please refer to the <a target="_top" href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/java.html">Sun documentation</a>
 
386
                        for usage details. Note that ikvm supports only the options listed here.</p>
 
387
<p>ikvm finds classes as follows:</p>
 
388
<ul>
 
389
                                
 
390
<li>If no -cp/-classpath or -jar option specified, and no CLASSPATH environment variable is set,
 
391
                                looks in the current directory.</li>
 
392
                                
 
393
<li>If no -cp/-classpath or -jar option specified, and CLASSPATH environment variable is set,
 
394
                                looks in directories specified in CLASSPATH (not in the current directory unless CLASSPATH contains .).</li>
 
395
                                
 
396
<li>If -cp/-classpath option specified, ignores CLASSPATH environment variable, and looks only in
 
397
                                directories specified in -cp/-classpath option.</li>
 
398
                                
 
399
<li>If -jar option specified, prepends jarfile to CLASSPATH (or -cp/-classpath specified classpath).
 
400
                                <p>
 
401
<strong>Note:</strong> This is different from the Sun JVM behavior.</p>
 
402
                                
 
403
</li>
 
404
                              
 
405
</ul>
 
406
<p>For information about creating executable jar files, see <a target="_top" href="http://www-106.ibm.com/developerworks/library/j-jar/">this IBM article</a>.</p>
 
407
</div>
 
408
                
 
409
                
 
410
<a name="N10139"></a><a name="Examples"></a>
 
411
<h3>Examples</h3>
 
412
<div style="margin-left: 0 ; border: 2px">
 
413
<div class="pre">
 
414
<span class="codefrag">    ikvm MyProg </span>
 
415
</div>
 
416
<p>Loads a class named MyProg.class from the current directory (unless the CLASSPATH environment variable
 
417
                        is set, in which case that is searched instead) and executes its main method. 
 
418
                        </p>
 
419
<div class="pre">
 
420
<span class="codefrag">    ikvm -cp c:\java\lib;c:\mystuff\mylib.jar;c:\mystuff\otherlib.zip org.me.MyProg </span>
 
421
</div>
 
422
<p>Loads a class named org.me.MyProg from a file named MyProg.class and executes its main method. Searches for it in the following locations:</p>
 
423
<ul>
 
424
                        
 
425
<li>c:\java\lib\org\me\MyProg.class</li>
 
426
                        
 
427
<li>c:\mystuff\mylib.jar (looks inside for org/me/MyProg.class)</li>
 
428
                        
 
429
<li>c:\mystuff\otherlib.zip (looks inside for org/me/MyProg.class)</li>
 
430
                        
 
431
</ul>
 
432
<div class="pre">
 
433
<span class="codefrag">    ikvm -jar /usr/share/myprog.jar </span>
 
434
</div>
 
435
<p>Executes Java code in the executable jar file /usr/share/myprog.jar.</p>
 
436
</div>
 
437
        
 
438
<div class="attribution"></div>
 
439
</div>
 
440
</td><td width="10"><img width="10" height="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td>
 
441
</tr>
 
442
<!--================= end Content==================-->
 
443
</table>
 
444
</td>
 
445
</tr>
 
446
</table>
 
447
<!--================= end Menu, NavBar, Content ==================-->
 
448
<!--================= start Footer ==================-->
 
449
<table summary="footer" cellspacing="0" cellpadding="0" width="100%" border="0">
 
450
<tr>
 
451
<td colspan="2" height="1" bgcolor="#4C6C8F"><img height="1" width="1" alt="" src="../skin/images/spacer.gif" class="spacer"><a href="../skin/images/label.gif"></a><a href="../skin/images/page.gif"></a><a href="../skin/images/chapter.gif"></a><a href="../skin/images/chapter_open.gif"></a><a href="../skin/images/current.gif"></a><a href="/favicon.ico"></a></td>
 
452
</tr>
 
453
<tr>
 
454
<td colspan="2" bgcolor="#CFDCED" class="copyright" align="center"><font size="2" face="Arial, Helvetica, Sans-Serif">
 
455
          
 
456
      Send feedback about this page to <a href="mailto:webmaster@ikvm.net?subject=IKVM Website Feedback - Page userguide/ikvm.html">webmaster@ikvm.net</a>
 
457
<br>
 
458
          
 
459
          Copyright &copy;
 
460
          2008&nbsp;Jeroen Frijters  All rights reserved.<script type="text/javascript" language="JavaScript"><!--
 
461
              document.write(" - "+"Last Published: " + document.lastModified);
 
462
            //  --></script></font></td>
 
463
</tr>
 
464
<tr>
 
465
<td colspan="2" align="left" bgcolor="#CFDCED" class="logos"></td>
 
466
</tr>
 
467
</table>
 
468
<!--================= end Footer ==================-->
 
469
</body>
 
470
</html>