project_creation.html 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1">
  6. <title>jMonkeyEngine SDK: Creating Projects :: jMonkeyEngine Docs</title>
  7. <link rel="canonical" href="https://wiki.jmonkeyengine.org/docs/sdk/project_creation.html">
  8. <meta name="keywords" content="documentation, project, deployment, sdk">
  9. <meta name="generator" content="Antora 2.3.3">
  10. <link rel="stylesheet" href="../../_/css/site.css">
  11. <meta property="og:image" content="https://mitm001.github.io/docs.jmonkeyengine.org/_/img/iconx128.png">
  12. <meta property="og:description" content="jMonkeyEngine SDK: Creating Projects">
  13. <meta property="og:title" content="jMonkeyEngine Docs">
  14. <link rel="icon" href="../../_/img/favicon.ico" type="image/x-icon">
  15. </head>
  16. <body class="article">
  17. <header class="header">
  18. <nav class="navbar">
  19. <div class="navbar-brand">
  20. <a class="navbar-item" href="https://wiki.jmonkeyengine.org">
  21. <img alt="" src="../../_/img/jMonkeyDocLogo.png" height="32" type="image/x-icon">
  22. </a>
  23. <button class="navbar-burger" data-target="topbar-nav">
  24. <span></span>
  25. <span></span>
  26. <span></span>
  27. </button>
  28. </div>
  29. <div id="topbar-nav" class="navbar-menu">
  30. <div class="navbar-end">
  31. <div class="navbar-item theme-switch-wrapper">
  32. <label class="theme-switch" for="checkbox">
  33. <input type="checkbox" id="checkbox" />
  34. <div class="slider round"></div>
  35. </label>
  36. </div>
  37. <a class="navbar-item" href="https://github.com/jmonkeyengine/wiki">Github</a>
  38. </div>
  39. </div>
  40. </nav>
  41. </header>
  42. <div class="body">
  43. <div class="nav-container" data-component="docs" data-version="master">
  44. <aside class="nav">
  45. <div class="panels">
  46. <div class="nav-panel-menu is-active" data-panel="menu">
  47. <nav class="nav-menu">
  48. <h3 class="title"><a href="../documentation.html">Docs</a></h3>
  49. <ul class="nav-list">
  50. <li class="nav-item" data-depth="0">
  51. <ul class="nav-list">
  52. <li class="nav-item" data-depth="1">
  53. <a class="nav-link" href="../documentation.html">Getting Started</a>
  54. </li>
  55. <li class="nav-item" data-depth="1">
  56. <a class="nav-link" href="https://javadoc.jmonkeyengine.org/v3.3.2-stable">JavaDoc</a>
  57. </li>
  58. <li class="nav-item" data-depth="1">
  59. <button class="nav-item-toggle"></button>
  60. <a class="nav-link" href="../jme3.html">jMonkeyEngine 3</a>
  61. <ul class="nav-list">
  62. <li class="nav-item" data-depth="2">
  63. <button class="nav-item-toggle"></button>
  64. <span class="nav-text">Beginner Tutorials</span>
  65. <ul class="nav-list">
  66. <li class="nav-item" data-depth="3">
  67. <a class="nav-link" href="../jme3/beginner/hello_simpleapplication.html">Hello SimpleApplication</a>
  68. </li>
  69. <li class="nav-item" data-depth="3">
  70. <a class="nav-link" href="../jme3/beginner/hello_node.html">Hello Node</a>
  71. </li>
  72. <li class="nav-item" data-depth="3">
  73. <a class="nav-link" href="../jme3/beginner/hello_asset.html">Hello Asset</a>
  74. </li>
  75. <li class="nav-item" data-depth="3">
  76. <a class="nav-link" href="../jme3/beginner/hello_main_event_loop.html">Hello Main Event Loop</a>
  77. </li>
  78. <li class="nav-item" data-depth="3">
  79. <a class="nav-link" href="../jme3/beginner/hello_input_system.html">Hello Input System</a>
  80. </li>
  81. <li class="nav-item" data-depth="3">
  82. <a class="nav-link" href="../jme3/beginner/hello_material.html">Hello Material</a>
  83. </li>
  84. <li class="nav-item" data-depth="3">
  85. <a class="nav-link" href="../jme3/beginner/hello_animation.html">Hello Animation</a>
  86. </li>
  87. <li class="nav-item" data-depth="3">
  88. <a class="nav-link" href="../jme3/beginner/hello_picking.html">Hello Picking</a>
  89. </li>
  90. <li class="nav-item" data-depth="3">
  91. <a class="nav-link" href="../jme3/beginner/hello_collision.html">Hello Collision</a>
  92. </li>
  93. <li class="nav-item" data-depth="3">
  94. <a class="nav-link" href="../jme3/beginner/hello_terrain.html">Hello Terrain</a>
  95. </li>
  96. <li class="nav-item" data-depth="3">
  97. <a class="nav-link" href="../jme3/beginner/hello_audio.html">Hello Audio</a>
  98. </li>
  99. <li class="nav-item" data-depth="3">
  100. <a class="nav-link" href="../jme3/beginner/hello_effects.html">Hello Effects</a>
  101. </li>
  102. <li class="nav-item" data-depth="3">
  103. <a class="nav-link" href="../jme3/beginner/hello_physics.html">Hello Physics</a>
  104. </li>
  105. </ul>
  106. </li>
  107. <li class="nav-item" data-depth="2">
  108. <button class="nav-item-toggle"></button>
  109. <span class="nav-text">Intermediate Tutorials</span>
  110. <ul class="nav-list">
  111. <li class="nav-item" data-depth="3">
  112. <button class="nav-item-toggle"></button>
  113. <span class="nav-text">Concepts</span>
  114. <ul class="nav-list">
  115. <li class="nav-item" data-depth="4">
  116. <a class="nav-link" href="../jme3/intermediate/best_practices.html">Best Practices</a>
  117. </li>
  118. <li class="nav-item" data-depth="4">
  119. <a class="nav-link" href="../jme3/intermediate/simpleapplication.html">Simple Application</a>
  120. </li>
  121. <li class="nav-item" data-depth="4">
  122. <a class="nav-link" href="../jme3/features.html">Features</a>
  123. </li>
  124. <li class="nav-item" data-depth="4">
  125. <a class="nav-link" href="../jme3/intermediate/optimization.html">Optimization</a>
  126. </li>
  127. <li class="nav-item" data-depth="4">
  128. <a class="nav-link" href="../jme3/faq.html">FAQ</a>
  129. </li>
  130. </ul>
  131. </li>
  132. <li class="nav-item" data-depth="3">
  133. <button class="nav-item-toggle"></button>
  134. <span class="nav-text">Math Concepts</span>
  135. <ul class="nav-list">
  136. <li class="nav-item" data-depth="4">
  137. <a class="nav-link" href="../jme3/math_for_dummies.html">Math For Dummies</a>
  138. </li>
  139. <li class="nav-item" data-depth="4">
  140. <a class="nav-link" href="../jme3/intermediate/math.html">Math</a>
  141. </li>
  142. <li class="nav-item" data-depth="4">
  143. <a class="nav-link" href="../jme3/math.html">More Math</a>
  144. </li>
  145. <li class="nav-item" data-depth="4">
  146. <a class="nav-link" href="../jme3/rotate.html">Rotate</a>
  147. </li>
  148. <li class="nav-item" data-depth="4">
  149. <a class="nav-link" href="../jme3/math_video_tutorials.html">Math Video Tutorials</a>
  150. </li>
  151. </ul>
  152. </li>
  153. <li class="nav-item" data-depth="3">
  154. <button class="nav-item-toggle"></button>
  155. <span class="nav-text">3D Graphics Concepts</span>
  156. <ul class="nav-list">
  157. <li class="nav-item" data-depth="4">
  158. <a class="nav-link" href="../jme3/intermediate/multi-media_asset_pipeline.html">Multi-Media Asset Pipeline</a>
  159. </li>
  160. <li class="nav-item" data-depth="4">
  161. <a class="nav-link" href="../jme3/scenegraph_for_dummies.html">Scenegraph for Dummies</a>
  162. </li>
  163. <li class="nav-item" data-depth="4">
  164. <a class="nav-link" href="../jme3/beginner/hellovector.html">Hello Vector</a>
  165. </li>
  166. <li class="nav-item" data-depth="4">
  167. <a class="nav-link" href="../jme3/terminology.html">Terminology</a>
  168. </li>
  169. <li class="nav-item" data-depth="4">
  170. <a class="nav-link" href="../jme3/intermediate/how_to_use_materials.html">How to Use Materials</a>
  171. </li>
  172. <li class="nav-item" data-depth="4">
  173. <a class="nav-link" href="../jme3/intermediate/transparency_sorting.html">Transparency and Sorting</a>
  174. </li>
  175. <li class="nav-item" data-depth="4">
  176. <a class="nav-link" href="../jme3/external/blender.html">Importing from Blender</a>
  177. </li>
  178. <li class="nav-item" data-depth="4">
  179. <a class="nav-link" href="../jme3/external/3dsmax.html">Importing from 3DS Max</a>
  180. </li>
  181. </ul>
  182. </li>
  183. </ul>
  184. </li>
  185. </ul>
  186. </li>
  187. <li class="nav-item" data-depth="1">
  188. <a class="nav-link" href="../logo.html">Logo Usage</a>
  189. </li>
  190. <li class="nav-item" data-depth="1">
  191. <a class="nav-link" href="../bsd_license.html">License</a>
  192. </li>
  193. <li class="nav-item" data-depth="1">
  194. <a class="nav-link" href="../github_tips.html">Github Tips</a>
  195. </li>
  196. </ul>
  197. </li>
  198. <li class="nav-item" data-depth="0">
  199. <button class="nav-item-toggle"></button>
  200. <span class="nav-text">SDK</span>
  201. <ul class="nav-list">
  202. <li class="nav-item" data-depth="1">
  203. <a class="nav-link" href="../sdk.html">jMonkeyEngine SDK</a>
  204. </li>
  205. </ul>
  206. </li>
  207. </ul>
  208. </nav>
  209. </div>
  210. <div class="nav-panel-explore" data-panel="explore">
  211. <div class="context">
  212. <span class="title">Docs</span>
  213. <span class="version">master</span>
  214. </div>
  215. <ul class="components">
  216. <li class="component is-current">
  217. <span class="title">Docs</span>
  218. <ul class="versions">
  219. <li class="version is-current is-latest">
  220. <a href="../documentation.html">master</a>
  221. </li>
  222. </ul>
  223. </li>
  224. <li class="component">
  225. <span class="title">Wiki UI</span>
  226. <ul class="versions">
  227. <li class="version is-latest">
  228. <a href="../../wiki-ui/index.html">master</a>
  229. </li>
  230. </ul>
  231. </li>
  232. </ul>
  233. </div>
  234. </div>
  235. </aside>
  236. </div>
  237. <main class="article">
  238. <div class="toolbar" role="navigation">
  239. <button class="nav-toggle"></button>
  240. <nav class="breadcrumbs" aria-label="breadcrumbs">
  241. <ul>
  242. <li><a href="../documentation.html">Docs</a></li>
  243. <li><a href="project_creation.html">jMonkeyEngine SDK: Creating Projects</a></li>
  244. </ul>
  245. </nav>
  246. <div class="edit-this-page"><a href="https://github.com/jMonkeyEngine/wiki/edit/master/docs/modules/ROOT/pages/sdk/project_creation.adoc">Edit this Page</a></div>
  247. </div>
  248. <div class="content">
  249. <article class="doc">
  250. <h1 class="page">jMonkeyEngine SDK: Creating Projects</h1>
  251. <div id="preamble">
  252. <div class="sectionbody">
  253. <div class="paragraph">
  254. <p>The jMonkeyEngine SDK makes it easy to get started with developing 3-D games based on the jMonkeyEngine.</p>
  255. </div>
  256. </div>
  257. </div>
  258. <div class="sect1">
  259. <h2 id="creating-a-new-jmonkeyengine-project"><a class="anchor" href="#creating-a-new-jmonkeyengine-project"></a>Creating a New jMonkeyEngine Project</h2>
  260. <div class="sectionbody">
  261. <div class="olist arabic">
  262. <ol class="arabic">
  263. <li>
  264. <p>Choose <code><span class="menuseq"><b class="menu">File</b>&#160;<i class="fa fa-angle-right caret"></i> <b class="menuitem">New Project</b></span></code> from the main menu.</p>
  265. </li>
  266. <li>
  267. <p>In the New Project Wizard, select the template <code><span class="menuseq"><b class="menu">JME3</b>&#160;<i class="fa fa-angle-right caret"></i> <b class="menuitem">Basic Game</b></span></code>.</p>
  268. </li>
  269. <li>
  270. <p>Click next to specify a project name, and the path where to store your new project.</p>
  271. </li>
  272. <li>
  273. <p>Click Finish. A skeleton application is created and opens in the Project Explorer.</p>
  274. <div class="ulist">
  275. <ul>
  276. <li>
  277. <p>This basic jme3 application is based on the SimpleApplication class to allow an easy start with jme3.</p>
  278. </li>
  279. <li>
  280. <p>You can click the run button to run it: You will see a blue cube.</p>
  281. </li>
  282. </ul>
  283. </div>
  284. </li>
  285. </ol>
  286. </div>
  287. <div class="sect2">
  288. <h3 id="project-structure"><a class="anchor" href="#project-structure"></a>Project Structure</h3>
  289. <div class="imageblock text-center">
  290. <div class="content">
  291. <img src="../_images/sdk/jmonkeyplatform-docu-4.png" alt="jmonkeyplatform-docu-4.png" width="421" height="298">
  292. </div>
  293. </div>
  294. <div class="paragraph">
  295. <p>Let&#8217;s have a look at the abstract project structure in the Project Explorer. (<kbd>Ctrl</kbd>+<kbd>1</kbd>).</p>
  296. </div>
  297. <div class="ulist">
  298. <ul>
  299. <li>
  300. <p><strong>Project Assets node:</strong> These directories have been created for you to store your games assets, such as fonts, materials, models, shaders, sounds, and textures. For a newly created project, these directories are empty.</p>
  301. </li>
  302. <li>
  303. <p><strong>Source Packages node:</strong> This is where you manage your packages and classes. For a newly created project, it contains one package and one class, <code>Main.java</code>. Double click <code>Main.java</code> to open it in the editor.</p>
  304. </li>
  305. <li>
  306. <p><strong>Libraries node:</strong> An overview of all libraies on your game&#8217;s classpath. The classpath is already set-up for the jme3 framework (including LWJGL, Bullet, Nifty <abbr title="Graphical User Interface">GUI</abbr>, etc).</p>
  307. </li>
  308. </ul>
  309. </div>
  310. </div>
  311. <div class="sect2">
  312. <h3 id="directory-structure"><a class="anchor" href="#directory-structure"></a>Directory Structure</h3>
  313. <div class="paragraph">
  314. <p>Now let&#8217;s have a look at the project&#8217;s file structure in the File Explorer (<kbd>Ctrl</kbd>+<kbd>2</kbd>). This explorer shows the physical directory structure on your hard drive.</p>
  315. </div>
  316. <div class="ulist">
  317. <ul>
  318. <li>
  319. <p><strong>assets</strong> – This directory corresponds to the Project Assets node. It is needed for the assetManager.</p>
  320. <div class="paragraph">
  321. <p>This is the recommended internal structure:</p>
  322. </div>
  323. <div class="ulist">
  324. <ul>
  325. <li>
  326. <p><code>assets/Interface</code></p>
  327. </li>
  328. <li>
  329. <p><code>assets/MatDefs</code></p>
  330. </li>
  331. <li>
  332. <p><code>assets/Materials</code></p>
  333. </li>
  334. <li>
  335. <p><code>assets/Models</code></p>
  336. </li>
  337. <li>
  338. <p><code>assets/Scenes</code></p>
  339. </li>
  340. <li>
  341. <p><code>assets/Shaders</code></p>
  342. </li>
  343. <li>
  344. <p><code>assets/Sounds</code></p>
  345. </li>
  346. <li>
  347. <p><code>assets/Textures</code></p>
  348. </li>
  349. </ul>
  350. </div>
  351. </li>
  352. <li>
  353. <p><strong>src</strong> – This directory corresponds to the Source Packages node. Your sources code goes here.</p>
  354. </li>
  355. <li>
  356. <p><strong>nbproject</strong> – This is meta data used by the jMonkeyEngine SDK (don&#8217;t edit).</p>
  357. </li>
  358. <li>
  359. <p><strong>build.xml</strong> – This is an Ant build script that is hooked up to the clean/build/run/test actions in the jMonkeyEngine SDK. It loads a default build script, and allows you to further customize the build process. The Ant script also assures that you are able to clean/build/run/test your application outside of the jMonkeyEngine SDK – e.g. from the command line.</p>
  360. </li>
  361. <li>
  362. <p><strong>build</strong> – This directory contains the compiled classes. (Will be generated by the jMonkeyEngine SDK when you build the project.)</p>
  363. </li>
  364. <li>
  365. <p><strong>dist</strong> – This directory contains the executable JAR files. (Will be generated by the jMonkeyEngine SDK when you build the project.)</p>
  366. </li>
  367. <li>
  368. <p><strong>test</strong> – The jMonkeyEngine SDK will store JUnit tests here if you create any. (Optional.)</p>
  369. </li>
  370. </ul>
  371. </div>
  372. </div>
  373. <div class="sect2">
  374. <h3 id="project-configuration"><a class="anchor" href="#project-configuration"></a>Project Configuration</h3>
  375. <div class="paragraph">
  376. <p>[RMB] select the project and from the menu open the project <code>Properties</code>.</p>
  377. </div>
  378. <div class="ulist">
  379. <ul>
  380. <li>
  381. <p>In the <code>Run</code> section:</p>
  382. <div class="ulist">
  383. <ul>
  384. <li>
  385. <p>Specify the main class of your project. (Pressing <kbd>F6</kbd> runs this main class.)</p>
  386. </li>
  387. <li>
  388. <p>You can optionally configure JVM options and command line parameters. In most cases, set the <code>-Xms VMOption [NUMBER] m</code> for the memory usage.</p>
  389. <div class="ulist">
  390. <ul>
  391. <li>
  392. <p>For example (-Xms500m).</p>
  393. </li>
  394. <li>
  395. <p>see <a href="http://performance.netbeans.org/howto/jvmswitches/">http://performance.netbeans.org/howto/jvmswitches/</a>).</p>
  396. </li>
  397. </ul>
  398. </div>
  399. </li>
  400. </ul>
  401. </div>
  402. </li>
  403. <li>
  404. <p>In the Application section:</p>
  405. <div class="ulist">
  406. <ul>
  407. <li>
  408. <p>Specify the game title (by default the game will be named <code>BasicGame</code>).</p>
  409. </li>
  410. <li>
  411. <p>Specify the vendor name (your name), a short description, your project&#8217;s homepage, and a splash screen.</p>
  412. </li>
  413. </ul>
  414. </div>
  415. </li>
  416. </ul>
  417. </div>
  418. </div>
  419. <div class="sect2">
  420. <h3 id="clean-build-and-run-cycle"><a class="anchor" href="#clean-build-and-run-cycle"></a>Clean, Build and Run Cycle</h3>
  421. <div class="imageblock text-center">
  422. <div class="content">
  423. <img src="../_images/sdk/jmonkeyplatform-docu-5.png" alt="jmonkeyplatform-docu-5.png" width="421" height="298">
  424. </div>
  425. </div>
  426. <div class="admonitionblock important">
  427. <table>
  428. <tr>
  429. <td class="icon">
  430. <i class="fa icon-important" title="Important"></i>
  431. </td>
  432. <td class="content">
  433. <div class="paragraph">
  434. <p>Pressing <strong><kbd>F6</kbd> builds &amp; runs</strong> the <em>main</em> class of the <em>main project</em>. If there are several classes, or several projects, you have to specify which one you want <kbd>F6</kbd> to run. <b class="button">RMB</b> select a project and choose <code>Set As Main Project</code>, then <b class="button">RMB</b> select the project again and choose <code><span class="menuseq"><b class="menu">Properties</b>&#160;<i class="fa fa-angle-right caret"></i> <b class="menuitem">Run</b></span></code> and choose a Main Class.</p>
  435. </div>
  436. <div class="paragraph">
  437. <p>To build and run the main() of <em>any file that is open in the editor</em>, press <kbd>Shift</kbd>+<kbd>F6</kbd>!</p>
  438. </div>
  439. </td>
  440. </tr>
  441. </table>
  442. </div>
  443. <div class="ulist">
  444. <ul>
  445. <li>
  446. <p><b class="button">RMB</b> select the project and use the context-menu to clean all generated classes and JARs.</p>
  447. </li>
  448. <li>
  449. <p><b class="button">RMB</b> select individual files with a main method to build and run them. (<kbd>Shift</kbd>+<kbd>F6</kbd>)</p>
  450. </li>
  451. <li>
  452. <p>Press the <b class="button">Run</b> button (green arrow in the toolbar) to build and run the project. (<kbd>F6</kbd>)</p>
  453. </li>
  454. </ul>
  455. </div>
  456. <div class="paragraph">
  457. <p><strong>More than one project open?</strong> The toolbar buttons and the F-keys are bound to the main project, which is shown in bold in the Project Explorer. <b class="button">RMB</b> select a project and select <code>Set As Main Project</code> to make it respond to the toolbar buttons and F-keys.</p>
  458. </div>
  459. <div class="paragraph">
  460. <p><strong>Worried About Proprietary Lock-in?</strong> You are never locked into the jMonkeyEngine SDK: At any time, you can change into your project directory on the command line, and clean, build, and run your project, using non-proprietary Apache Ant commands:</p>
  461. </div>
  462. <div class="listingblock">
  463. <div class="content">
  464. <pre class="highlightjs highlight"><code>ant clean; ant jar; ant run;</code></pre>
  465. </div>
  466. </div>
  467. </div>
  468. </div>
  469. </div>
  470. <div class="sect1">
  471. <h2 id="development-process"><a class="anchor" href="#development-process"></a>Development Process</h2>
  472. <div class="sectionbody">
  473. <div class="ulist">
  474. <ul>
  475. <li>
  476. <p><strong>Creating new files and packages:</strong> Select the Source Packages node (or any of its subnodes), and press <kbd>Ctrl</kbd>+<kbd>N</kbd> (<code><span class="menuseq"><b class="menu">File</b>&#160;<i class="fa fa-angle-right caret"></i> <b class="menuitem">New File</b></span></code>): Use the <code>New File</code> wizard to create new Java classes, Java packages, Java beans, Swing forms, JUnit files, j3m Materials, j3o scenes, j3f filters, and many more.</p>
  477. </li>
  478. <li>
  479. <p><strong>Editing files:</strong> Open the Projects Explorer and double-click a Java file from the Source Packages to open it in the Editor. The <a href="code_editor.html" class="page">jMonkeyEngine SDK Code Editor</a> assists you in many ways, including syntactic and semantic code coloring, code completion, and javadoc.</p>
  480. </li>
  481. <li>
  482. <p><strong>Adding Assets:</strong></p>
  483. <div class="ulist">
  484. <ul>
  485. <li>
  486. <p>You can <a href="model_loader_and_viewer.html" class="page">import models, scenes, and materials</a> as assets into your project.</p>
  487. </li>
  488. <li>
  489. <p>To add sound files and images, use your operating system&#8217;s file explorer and copy the files into your project&#8217;s asset directory.</p>
  490. </li>
  491. </ul>
  492. </div>
  493. </li>
  494. <li>
  495. <p><strong>ToDo List:</strong> The tasks window automatically lists all lines containing errors and warnings, and all lines that you have marked with the comment keywords</p>
  496. <div class="listingblock">
  497. <div class="content">
  498. <pre class="highlightjs highlight"><code class="language-html hljs" data-lang="html">FIXME</code></pre>
  499. </div>
  500. </div>
  501. <div class="paragraph">
  502. <p>, @todo, or TODO.</p>
  503. </div>
  504. </li>
  505. <li>
  506. <p><strong>Integrated tools:</strong> <a href="debugging_profiling_testing.html" class="page">Debugging, Testing, Profiling</a>.</p>
  507. </li>
  508. </ul>
  509. </div>
  510. <div class="sect2">
  511. <h3 id="adding-external-jar-libraries"><a class="anchor" href="#adding-external-jar-libraries"></a>Adding external jar libraries</h3>
  512. <div class="paragraph">
  513. <p>You may want to use external Java libraries in your jME project, for example content generators or artificial intelligence implementations.</p>
  514. </div>
  515. <div class="paragraph">
  516. <p>Add the library to the global library list:</p>
  517. </div>
  518. <div class="ulist">
  519. <ul>
  520. <li>
  521. <p>Select <span class="menuseq"><b class="menu">Tools</b>&#160;<i class="fa fa-angle-right caret"></i> <b class="menuitem">Libraries</b></span> in the main menu.</p>
  522. </li>
  523. <li>
  524. <p>Click &#8220;New Library&#8221;, enter a name for the library, and press <b class="button">OK</b>.</p>
  525. </li>
  526. <li>
  527. <p>In the &#8220;Classpath&#8221; tab, press &#8220;Add JAR/Folder&#8221; and select the jar file(s) needed for the library.</p>
  528. </li>
  529. <li>
  530. <p>(Optional) In the &#8220;JavaDoc&#8221; tab, press &#8220;Add ZIP/Folder&#8221; and select the javadoc for the library, as zip file or folder.</p>
  531. </li>
  532. <li>
  533. <p>(Optional) In the &#8220;Sources&#8221; tab you can select a folder or jar file containing the source files of the library.</p>
  534. </li>
  535. <li>
  536. <p>Press <b class="button">OK</b>.</p>
  537. </li>
  538. </ul>
  539. </div>
  540. <div class="paragraph">
  541. <p>Add the library to a project:</p>
  542. </div>
  543. <div class="ulist">
  544. <ul>
  545. <li>
  546. <p><b class="button">RMB</b> select your project and select &#8220;Properties&#8221;.</p>
  547. </li>
  548. <li>
  549. <p>Select &#8220;Libaries&#8221; on the left and then press &#8220;Add Library&#8221;.</p>
  550. </li>
  551. <li>
  552. <p>Select the library from the list and press <b class="button">OK</b>.</p>
  553. </li>
  554. </ul>
  555. </div>
  556. <div class="paragraph">
  557. <p>That&#8217;s it, your project can now use the external library. If you also linked the javadoc and sources, the SDK will assist you with javadoc popups, code completion (<kbd>Ctrl</kbd>+<kbd>Space</kbd>) and source navigation (<kbd>Ctrl</kbd>+<b class="button">LMB</b> ).</p>
  558. </div>
  559. </div>
  560. <div class="sect2">
  561. <h3 id="application-deployment"><a class="anchor" href="#application-deployment"></a>Application Deployment</h3>
  562. <div class="ulist">
  563. <ul>
  564. <li>
  565. <p>You can <a href="application_deployment.html" class="page">deploy</a> your game as desktop application (JAR), browser applet, WebStart (JNLP), or on the Android platform.</p>
  566. </li>
  567. </ul>
  568. </div>
  569. </div>
  570. </div>
  571. </div>
  572. <div class="sect1">
  573. <h2 id="running-sample-projects"><a class="anchor" href="#running-sample-projects"></a>Running Sample Projects</h2>
  574. <div class="sectionbody">
  575. <div class="paragraph">
  576. <p>The SDK contains <a href="sample_code.html" class="page">Sample Code</a> (read more).</p>
  577. </div>
  578. <div class="paragraph">
  579. <p>Open the Source Packages node of the JmeTests project.</p>
  580. </div>
  581. <div class="ulist">
  582. <ul>
  583. <li>
  584. <p><b class="button">RMB</b> select the <code>JME3Tests</code> project and choose Run.<br>
  585. Choose samples from the TestChooser and try out the included demos.</p>
  586. </li>
  587. <li>
  588. <p>Browse a demo&#8217;s source code in the SDK&#8217;s Project window to learn how a feature is implemented and used.</p>
  589. </li>
  590. <li>
  591. <p>Feel free to modify the code samples and experiment! If you break something, you can always recreate the packaged samples from the <code>JME3 Tests</code> template.</p>
  592. </li>
  593. </ul>
  594. </div>
  595. </div>
  596. </div>
  597. </article>
  598. <aside class="toc sidebar" data-title="Contents" data-levels="2">
  599. <div class="toc-menu"></div>
  600. </aside>
  601. </div>
  602. </main>
  603. </div>
  604. <footer class="footer">
  605. <p>Copyright 2020 jMonkeyEngine Wiki Contributors. Licensed BSD-3.</p>
  606. </footer>
  607. <script src="../../_/js/site.js"></script>
  608. <script async src="../../_/js/vendor/highlight.js"></script>
  609. </body>
  610. </html>