100
100
#: programming/C/programming.xml:36(para)
101
msgid "Install the <application>python-gtk2-tutorial</application> package (see <ulink type=\"help\" url=\"ghelp:add-applications\">Add Applications</ulink>). You will need to use <application>Synaptic Package Manager</application> to install this package."
101
msgid "<ulink url=\"apt:python-gtk2-tutorial\">Install the <application>python-gtk2-tutorial</application> package</ulink>."
104
#: programming/C/programming.xml:40(para)
104
#: programming/C/programming.xml:39(para)
105
105
msgid "To access the documentation, visit <ulink url=\"file:///usr/share/doc/python-gtk2-tutorial/html/index.html\">python-gtk-tutorial</ulink>."
108
#: programming/C/programming.xml:46(title)
108
#: programming/C/programming.xml:45(title)
112
#: programming/C/programming.xml:47(para)
112
#: programming/C/programming.xml:46(para)
113
113
msgid "<application>Devhelp</application> is an application to read and search all of the documentation that you install."
116
#: programming/C/programming.xml:51(para)
117
msgid "Install the <application>devhelp</application> package (see <ulink type=\"help\" url=\"ghelp:add-applications\">Add Applications</ulink>)."
116
#: programming/C/programming.xml:50(para)
117
msgid "<ulink url=\"apt:devhelp\">Install the <application>devhelp</application> package</ulink>."
120
#: programming/C/programming.xml:54(para)
120
#: programming/C/programming.xml:53(para)
121
121
msgid "Choose <menuchoice><guimenu>Applications</guimenu><guisubmenu>Programming</guisubmenu><guimenuitem>Devhelp</guimenuitem></menuchoice>."
124
#: programming/C/programming.xml:61(title)
124
#: programming/C/programming.xml:60(title)
125
125
msgid "C and C++"
128
#: programming/C/programming.xml:62(para)
128
#: programming/C/programming.xml:61(para)
129
129
msgid "Compiling C and C++ programs requires some packages that are not installed by default."
132
#: programming/C/programming.xml:65(para)
133
msgid "Install the <application>build-essential</application> package (see <ulink type=\"help\" url=\"ghelp:add-applications\">Add Applications</ulink>)."
132
#: programming/C/programming.xml:64(para)
133
msgid "<ulink url=\"apt:build-essential\">Install the <application>build-essential</application> package</ulink>."
136
#: programming/C/programming.xml:68(para)
136
#: programming/C/programming.xml:67(para)
137
137
msgid "There are many tools available for C and C++ developers. Those wishing to develop graphical applications will find that choosing a graphical toolkit/platform will make development more convenient. The two most popular development platforms for Ubuntu are <quote>GTK/GNOME</quote> and <quote>Qt/KDE</quote>, each of which has its own set of tools and documentation."
140
#: programming/C/programming.xml:70(title)
140
#: programming/C/programming.xml:69(title)
141
141
msgid "Anjuta IDE for GNOME"
144
#: programming/C/programming.xml:71(para)
144
#: programming/C/programming.xml:70(para)
145
145
msgid "<application>Anjuta</application> is an IDE for developing applications in C and C++ for the <quote>GNOME</quote> platform."
148
#: programming/C/programming.xml:74(para)
149
msgid "Install the <application>anjuta</application> package from the <quote>Universe</quote> repository (see <ulink type=\"help\" url=\"ghelp:add-applications\">Add Applications</ulink>)."
148
#: programming/C/programming.xml:73(para)
149
msgid "<ulink url=\"apt:anjuta\">Install the <application>anjuta</application> package</ulink> from the <quote>Universe</quote> repository."
152
#: programming/C/programming.xml:77(para)
152
#: programming/C/programming.xml:76(para)
153
153
msgid "Press <keycombo><keycap>Alt</keycap><keycap>F2</keycap></keycombo>, type <quote>anjuta</quote> and press <guibutton>Run</guibutton> to start using <application>Anjuta</application>."
156
#: programming/C/programming.xml:82(title)
156
#: programming/C/programming.xml:81(title)
157
157
msgid "KDevelop IDE for KDE"
160
#: programming/C/programming.xml:83(para)
160
#: programming/C/programming.xml:82(para)
161
161
msgid "<application>KDevelop</application> is an IDE for developing applications in C and C++ for the <quote>KDE</quote> platform."
164
#: programming/C/programming.xml:86(para)
165
msgid "Install the <application>kdevelop</application> package from the <quote>Universe</quote> repository (see <ulink type=\"help\" url=\"ghelp:add-applications\">Add Applications</ulink>)."
164
#: programming/C/programming.xml:85(para)
165
msgid "<ulink url=\"apt:kdevelop\">Install the <application>kdevelop</application> package</ulink> from the <quote>Universe</quote> repository."
168
#: programming/C/programming.xml:89(para)
168
#: programming/C/programming.xml:88(para)
169
169
msgid "Press <menuchoice><guimenu>Applications</guimenu><guisubmenu>Programming</guisubmenu><guimenuitem>KDevelop</guimenuitem></menuchoice> to start using <application>KDevelop</application>."
172
#: programming/C/programming.xml:96(title)
172
#: programming/C/programming.xml:95(title)
176
#: programming/C/programming.xml:98(para)
176
#: programming/C/programming.xml:97(para)
177
177
msgid "For <emphasis>PowerPC</emphasis> machines, see <ulink url=\"https://help.ubuntu.com/community/Java\">Ubuntu Help Online</ulink>."
180
#: programming/C/programming.xml:100(para)
180
#: programming/C/programming.xml:99(para)
181
181
msgid "Java, developed by Sun Microsystems, is and interpreted language which is compiled to bytecode. This bytecode can be run on any Java Virtual Machine, making Java a highly portable language. It is object oriented, has similar syntax to C and is designed to be secure."
184
#: programming/C/programming.xml:102(title)
184
#: programming/C/programming.xml:101(title)
185
185
msgid "Installation"
188
#: programming/C/programming.xml:103(para)
188
#: programming/C/programming.xml:102(para)
189
189
msgid "Ubuntu supports both Java 1.5 and 1.6 in both Sun and Open Source flavors."
192
#: programming/C/programming.xml:105(title)
192
#: programming/C/programming.xml:104(title)
196
#: programming/C/programming.xml:108(para) programming/C/programming.xml:127(para)
197
msgid "Install <application>sun-java5-jdk</application> from the <quote>Multiverse</quote> repository (see <ulink type=\"help\" url=\"ghelp:add-applications\">Add Applications</ulink>). You will need to use <application>Synaptic Package Manager</application> to install these packages."
196
#: programming/C/programming.xml:107(para)
197
msgid "<ulink url=\"apt:sun-java5-jdk\">Install the <application>sun-java5-jdk</application> package</ulink> from the <quote>Multiverse</quote> repository."
200
#: programming/C/programming.xml:112(para) programming/C/programming.xml:131(para)
200
#: programming/C/programming.xml:110(para) programming/C/programming.xml:128(para)
201
201
msgid "Read the Java license presented. You must accept it to continue."
204
#: programming/C/programming.xml:115(para)
204
#: programming/C/programming.xml:113(para)
205
205
msgid "To get your system to use Sun Java instead of the open-source (but less functional) GIJ that is installed by default, run: <screen>sudo update-alternatives --config java</screen> and choose the option that has <filename>j2re1.5-sun</filename> in it."
208
#: programming/C/programming.xml:123(title)
208
#: programming/C/programming.xml:121(title)
212
#: programming/C/programming.xml:124(para)
212
#: programming/C/programming.xml:122(para)
213
213
msgid "Java 1.6 is also available, and can be installed by following the above directions, swapping all instances of 1.5 to 1.6"
216
#: programming/C/programming.xml:134(para)
216
#: programming/C/programming.xml:125(para)
217
msgid "<ulink url=\"apt:sun-java6-jdk\">Install the <application>sun-java6-jdk</application> package</ulink> from the <quote>Multiverse</quote> repository."
220
#: programming/C/programming.xml:131(para)
217
221
msgid "To get your system to use Sun Java instead of the open-source (but less functional) GIJ that is installed by default, run: <screen>sudo update-alternatives --config java</screen> and choose the option that has <filename>j2re1.6-sun</filename> in it."
220
#: programming/C/programming.xml:143(title)
224
#: programming/C/programming.xml:140(title)
221
225
msgid "Hello World"
224
#: programming/C/programming.xml:144(para)
228
#: programming/C/programming.xml:141(para)
225
229
msgid "Enter the following code into a text editior and save it as \"Hello.java\":"
228
#: programming/C/programming.xml:145(screen)
232
#: programming/C/programming.xml:142(screen)
230
234
msgid "public class Hello {\n public static void main(String[] args) {\n System.out.println(\"Hello world\");\n }\n}\n"
233
#: programming/C/programming.xml:151(para)
237
#: programming/C/programming.xml:148(para)
234
238
msgid "Open a terminal and run your code by typing:<screen>javac Hello.java; java Hello</screen>"
237
#: programming/C/programming.xml:154(title)
241
#: programming/C/programming.xml:151(title)
238
242
msgid "Integrated Development Environments"
241
#: programming/C/programming.xml:156(title)
245
#: programming/C/programming.xml:153(title)
242
246
msgid "Eclipse IDE for Java"
249
#: programming/C/programming.xml:154(para)
250
msgid "The <application>Eclipse</application> platform provides a complete, extensible Java development environment."
245
253
#: programming/C/programming.xml:157(para)
246
msgid "The <application>Eclipse</application> platform provides a complete, extensible Java development environment."
254
msgid "<ulink url=\"apt:eclipse\">Install the <application>eclipse</application> package</ulink> from the <quote>Universe</quote> repository."
249
257
#: programming/C/programming.xml:160(para)
250
msgid "Install the <application>eclipse</application> package from the <quote>Universe</quote> repository (see <ulink type=\"help\" url=\"ghelp:add-applications\">Add Applications</ulink>)."
253
#: programming/C/programming.xml:163(para)
254
258
msgid "Press <menuchoice><guimenuitem>Applications</guimenuitem><guimenuitem>Programming</guimenuitem><guimenuitem>Eclipse IDE</guimenuitem></menuchoice> to start using <application>Eclipse</application>."
257
#: programming/C/programming.xml:168(title)
261
#: programming/C/programming.xml:165(title)
265
#: programming/C/programming.xml:166(para)
266
msgid "The <application>Netbeans</application> platform provides a complete, extensible Java development environment."
261
269
#: programming/C/programming.xml:169(para)
262
msgid "The <application>Netbeans</application> platform provides a complete, extensible Java development environment."
265
#: programming/C/programming.xml:172(para)
266
msgid "Install the <application>Netbeans</application> package from the <quote>Universe</quote> repository (see <ulink type=\"help\" url=\"ghelp:add-applications\">Add Applications</ulink>)."
269
#: programming/C/programming.xml:180(title)
270
msgid "<ulink url=\"apt:netbeans\">Install the <application>Netbeans</application> package</ulink> from the <quote>Universe</quote> repository."
273
#: programming/C/programming.xml:177(title)
270
274
msgid "Other programming languages"
273
#: programming/C/programming.xml:181(para)
277
#: programming/C/programming.xml:178(para)
274
278
msgid "There are many programming tools available in Ubuntu for many different programming languages. This section provides a short list of some of the more commonly-used languages."
277
#: programming/C/programming.xml:184(title)
281
#: programming/C/programming.xml:181(title)
278
282
msgid "Mono .NET development environment"
285
#: programming/C/programming.xml:182(para)
286
msgid "<application>Mono</application> is an implementation of the <application>.NET</application> stack, which allows you to write cross-platform programs in a number of different languages, including C#, Java, Visual Basic .NET and JavaScript. More information about <application>Mono</application> is available from the <ulink url=\"http://www.mono-project.com/\">Mono project homepage</ulink>."
281
289
#: programming/C/programming.xml:185(para)
282
msgid "<application>Mono</application> is an implementation of the <application>.NET</application> stack, which allows you to write cross-platform programs in a number of different languages, including C#, Java, Visual Basic .NET and JavaScript. More information about <application>Mono</application> is available from the <ulink url=\"http://www.mono-project.com/\">Mono project homepage</ulink>."
290
msgid "Install the <ulink url=\"apt:monodevelop\"><application>monodevelop</application></ulink> and <ulink url=\"apt:monodoc\"><application>monodoc</application></ulink> packages from the <quote>Universe</quote> repository."
285
293
#: programming/C/programming.xml:188(para)
286
msgid "Install the <application>monodevelop</application> and <application>monodoc</application> packages from the <quote>Universe</quote> repository."
294
msgid "Press <menuchoice><guimenuitem>Applications</guimenuitem><guimenuitem>Programming</guimenuitem><guimenuitem>MonoDevelop</guimenuitem></menuchoice> to start the <application>MonoDevelop</application> IDE."
289
297
#: programming/C/programming.xml:191(para)
290
msgid "Press <menuchoice><guimenuitem>Applications</guimenuitem><guimenuitem>Programming</guimenuitem><guimenuitem>MonoDevelop</guimenuitem></menuchoice> to start the <application>MonoDevelop</application> IDE."
293
#: programming/C/programming.xml:194(para)
294
298
msgid "Press <menuchoice><guimenuitem>Applications</guimenuitem><guimenuitem>Programming</guimenuitem><guimenuitem>MonoDoc</guimenuitem></menuchoice> to start the <application>Monodoc</application> documentation browser."
297
#: programming/C/programming.xml:200(title)
301
#: programming/C/programming.xml:197(title)
298
302
msgid "Gambas graphical BASIC language"
305
#: programming/C/programming.xml:198(para)
306
msgid "<application>Gambas</application> is a <application>Visual Basic</application>-like development environment, which allows you to rapidly design and build graphical applications using the easy-to-learn BASIC language."
301
309
#: programming/C/programming.xml:201(para)
302
msgid "<application>Gambas</application> is a <application>Visual Basic</application>-like development environment, which allows you to rapidly design and build graphical applications using the easy-to-learn BASIC language."
310
msgid "<ulink url=\"apt:gambas\">Install the <application>gambas</application> package</ulink> from the <quote>Universe</quote> repository."
305
313
#: programming/C/programming.xml:204(para)
306
msgid "Install the <application>gambas</application> package from the <quote>Universe</quote> repository."
314
msgid "Press <menuchoice><guimenuitem>Applications</guimenuitem><guimenuitem>Programming</guimenuitem><guimenuitem>Gambas</guimenuitem></menuchoice> to start the <application>Gambas</application> IDE."
309
317
#: programming/C/programming.xml:207(para)
310
msgid "Press <menuchoice><guimenuitem>Applications</guimenuitem><guimenuitem>Programming</guimenuitem><guimenuitem>Gambas</guimenuitem></menuchoice> to start the <application>Gambas</application> IDE."
313
#: programming/C/programming.xml:210(para)
314
318
msgid "A set of example applications are provided with <application>Gambas</application>, which you can use to help you to learn the language. To view an example application, start <application>Gambas</application>, press <guibutton>Examples</guibutton> on the <guilabel>Welcome to Gambas!</guilabel> screen and select the example which you would like to view."
317
#: programming/C/programming.xml:215(title)
321
#: programming/C/programming.xml:212(title)
318
322
msgid "Development Tools"
321
#: programming/C/programming.xml:216(para)
325
#: programming/C/programming.xml:213(para)
322
326
msgid "There are many development tools available for Ubuntu. A list of some of these is included below."
325
#: programming/C/programming.xml:218(title)
329
#: programming/C/programming.xml:215(title)
326
330
msgid "Integrated Development Environments (IDEs) and source-code editors"
329
#: programming/C/programming.xml:220(para)
333
#: programming/C/programming.xml:217(para)
330
334
msgid "<ulink url=\"http://anjuta.sourceforge.net/\">Anjuta</ulink> is an Integrated Development Environment (IDE) for C and C++."
333
#: programming/C/programming.xml:222(para)
337
#: programming/C/programming.xml:219(para)
334
338
msgid "<ulink url=\"http://bluefish.openoffice.nl/index.html\">Bluefish</ulink> is a powerful editor for experienced web designers and programmers."
337
#: programming/C/programming.xml:224(para)
341
#: programming/C/programming.xml:221(para)
338
342
msgid "<ulink url=\"http://www.eclipse.org/\">Eclipse</ulink> is an IDE for Java and other programming languages. It forms the basis for closed-source programs such as JBuilder."
341
#: programming/C/programming.xml:226(para)
345
#: programming/C/programming.xml:223(para)
342
346
msgid "<ulink url=\"http://eric-ide.python-projects.org/index.html\">Eric</ulink> is a fully featured Python and Ruby IDE."
345
#: programming/C/programming.xml:228(para)
349
#: programming/C/programming.xml:225(para)
346
350
msgid "<ulink url=\"http://geany.uvena.de/\">Geany</ulink> is a general-purpose IDE which can handle manydifferent programming and markup languages."
349
#: programming/C/programming.xml:230(para)
353
#: programming/C/programming.xml:227(para)
350
354
msgid "<ulink url=\"http://www.python.org/idle/\">IDLE</ulink> is the Python IDE built with the Tkinter GUI toolkit."
353
#: programming/C/programming.xml:232(para)
357
#: programming/C/programming.xml:229(para)
354
358
msgid "<ulink url=\"http://www.kdevelop.org/\">KDevelop</ulink> is a IDE for KDE which supports many programming languages."
357
#: programming/C/programming.xml:234(para)
361
#: programming/C/programming.xml:231(para)
358
362
msgid "<ulink url=\"http://www.monodevelop.com/Main_Page\">MonoDevelop</ulink> is an IDE for writing Mono/.NET applications in C# and other languages."
361
#: programming/C/programming.xml:236(para)
365
#: programming/C/programming.xml:233(para)
362
366
msgid "<ulink url=\"http://www.netbeans.org/index.html\">NetBeans</ulink> is a Java IDE that features support for CVS and a form builder."
365
#: programming/C/programming.xml:238(para)
369
#: programming/C/programming.xml:235(para)
366
370
msgid "<ulink url=\"http://quanta.kdewebdev.org/\">Quanta</ulink> is a powerful IDE for web development and features support for DocBook editing."
369
#: programming/C/programming.xml:244(title)
373
#: programming/C/programming.xml:241(title)
370
374
msgid "Source-code management systems"
373
#: programming/C/programming.xml:247(para)
377
#: programming/C/programming.xml:244(para)
374
378
msgid "<ulink url=\"http://www.bazaar-ng.org/\">Bazaar-NG</ulink> is a decentralised version control system used for Ubuntu development."
377
#: programming/C/programming.xml:249(para)
381
#: programming/C/programming.xml:246(para)
378
382
msgid "<ulink url=\"http://www.nongnu.org/cvs/\">CVS</ulink> is an advanced version control system used by many open-source projects."
381
#: programming/C/programming.xml:251(para)
385
#: programming/C/programming.xml:248(para)
382
386
msgid "<ulink url=\"http://subversion.tigris.org/\">Subversion</ulink> (SVN) is a powerful version control system intended as a replacement for CVS."
385
#: programming/C/programming.xml:257(title)
389
#: programming/C/programming.xml:254(title)
386
390
msgid "Other tools"
389
#: programming/C/programming.xml:259(para)
393
#: programming/C/programming.xml:256(para)
390
394
msgid "<ulink url=\"http://glade.gnome.org/\">Glade</ulink> is a user interface designer for building GNOME and GTK applications."