1 / 5

Setting JDK folder Path

Follow this step-by-step guide to configure the JDK in RealJ after installation. Begin by navigating to File → Preferences, then set the path to your JDK folder. Create your first Java application by selecting File → New, and entering your Java code in the source window. Don't forget to save your file with the same name as your class. Add your source files to a new project, set the main file, and compile your code. You can run your application with Build → Run Application or by pressing F5. Note: Avoid using Java 1.4 for better compatibility.

christmas
Télécharger la présentation

Setting JDK folder Path

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Setting JDK folder Path • After Installing RealJ • Goto File  Preferences • In Configure Tab Set the path to JDK folder • Can be done by clicking the button next to the textfield • The rest of the tabs can be left as it is

  2. Creating an Application • Goto File  New • Select java Source File and Click Ok • Now enter the java code in the window • After entering the entire code • Goto Filesave • Enter the filename(Same as class name)

  3. Creating an Application (Contd.) • Goto Project  New Project • Enter a name for the project • Again Goto Project  Add Java Source Files • More than one file can be added to one project • In this select the file that was just created and saved • The selected file appears on the left hand side • Select that file • Right Click  Set as main

  4. Compiling and Running • Compiling • Select the file name to be compiled(the one on the left hand side) • Right click  Compile • The error messages will be displayed in a new window at the bottom • Running the Application • Goto Build  Run Application (OR) just press F5 • Output is displayed in the same window at the bottom

  5. Points to note • Kindly don’t use java 1.4 as I had some discrepancies while using it with RealJ. • At some systems it works and at some it doesn’t. • It’s a better practice to not run programs with RealJ as you • cannot supply inputs through Keyboard • Inputs can be given only as command line parameters

More Related