1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3
* Copyright © 2007 Sun Microsystems, Inc. All rights reserved.
4
* Use is subject to license terms.
8
<title>Running a Single File</title>
9
<link rel="StyleSheet" href="nbdocs://org.netbeans.modules.usersguide/org/netbeans/modules/usersguide/ide.css" type="text/css">
12
<h2>Running a Single File</h2>
13
<p> <small><a href="#seealso">See Also</a> </small>
15
<li>Select the file in the Source Editor or Projects window.</li>
16
<li>Choose Run > Run File > Run
17
<tt>my_class</tt>. <p>The IDE initiates execution of the selected file.
22
<object classid="java:com.sun.java.help.impl.JHSecondaryViewer">
23
<param name="content" value="../project/csh/glossary_freeform.html">
24
<param name="viewerActivator" value="javax.help.LinkLabel">
25
<param name="viewerStyle" value="javax.help.Popup">
26
<param name="viewerSize" value="400,160">
27
<param name="text" value="free-form projects">
28
<param name="textFontSize" value="medium">
29
<param name="textFontFamily" value="SansSerif">
30
<param name="textFontStyle" value="italic">
31
<param name="textFontWeight" value="bold">
32
<param name="textColor" value="blue">
34
, this command is disabled by default.
35
To enable this function, you have to write an Ant target for running
36
the file in the IDE and map it to the IDE's Run Class command. This command
37
is not available for EJB projects. </li>
39
<p>For a complete guide
40
to configuring free-form projects, see:
41
<p><object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
42
<param name="content" value="http://www.netbeans.org/kb/55/freeform-config.html">
43
<param name="text" value="<html><u>http://www.netbeans.org/kb/55/freeform-config.html</u></html>">
44
<param name="textFontSize" value="medium">
45
<param name="textColor" value="blue">
49
<dt><a name="seealso">See Also</a></dt>
50
<dd><a href="run_quickref.html">Running Tasks: Quick Reference</a></dd>
51
<dd><a href="run_app.html">Running an Application</a> </dd>
52
<dd><a href="run_args.html">Setting the Main Class and Runtime Arguments</a></dd>
53
<dd><a href="run_classpath.html">Setting the Runtime Classpath</a></dd>
58
<small><a href="../credits.html">Legal Notices</a></small>
60
<table border="0" cellpadding="20">
61
<tr><td> </td></tr>
62
<tr><td> </td></tr>
63
<tr><td> </td></tr>