![]() ![]() Note that this does require some technical knowledge and coding, but it’s okay.īut don’t worry, this tutorial is written so that even a total newbie can follow along! This should take no longer than an hour and I’ll go over it step-by-step. I’ll show you how to download, install, and run Java in just a few steps. Regardless, this tutorial will show you how to get Java on your Chromebook. Or you just want to run some web pages that require Java. Maybe you want to play some games like Minecraft or various Steam games. This HTML version of Think Java is provided for convenience, but it is not the best format of the book.So, you want to install Java on your Chromebook. You might prefer to read the PDF version, or you can buy a hardcopy at In particular, some of the symbols are not rendered correctly. The steps for compiling, running, and debugging Java code depend on your development environment and operating system. We avoided putting these details in the main text, because they can be distracting. Instead, we provide this appendix with a brief introduction to DrJava – an integrated development environment (IDE) that is well suited for beginners – and other development tools, including Checkstyle for code quality and JUnit for testing. A simple text editor such as Notepad++ or Sublime Text, and/or an IDE such as DrJava, Eclipse, jGrasp, or NetBeans.The Java Development Kit (JDK), which includes the compiler, the Java Virtual Machine (JVM) that interprets the compiled byte code, and other tools such as Javadoc.If you are unable to install software on your computer (which is often the case in public schools and Internet cafés), you can use these online development environments for almost everything in this book.īut if you want to compile and run Java programs on your own computer, you will need: The easiest way to start programming in Java is to use a website that compiles and runs Java code in the browser.Įxamples include,, and others. The JDK we recommend is Java SE (Standard Edition), which Oracle makes available for free. The IDE we recommend is DrJava, which is an open-source development environment written in Java (see Figure A.1). To install the JDK, search the web for “download JDK” which should take you to Oracle’s website. Then accept the license agreement and select the installer for your operating system.ĭon’t forget to run the installer after you download it! Scroll down to “Java Platform, Standard Edition” and click the download button under JDK. To install DrJava, visit and download the JAR file. We recommend that you save it to your Desktop or another convenient location. Simply double-click the JAR file to run DrJava. Refer to the DrJava documentation ( ) for more details. ![]() There is one subtle detail to note when using the Interactions feature. ![]() If you don’t end an expression (or statement) with a semicolon, DrJava automatically displays its value. Notice in Figure A.2 how the variable declarations end with semicolons, but the logic expressions in the following lines do not. This feature saves you from having to type every time. What’s nice about this feature is that you don’t have to create a new class, declare a main method, write arbitrary expressions inside statements, save the source file, and get all of your code to compile in advance.Īlso, you can press the up/down arrows on the keyboard to repeat previous commands and experiment with incremental differences. One of the most powerful and useful skills you can learn is how to use the command-line interface, also called the “terminal”. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |