Just ask anyone in the AP class! Here's what my version of BlueJ has as the default code of each class. Now, if you've never programmed before, you may see a lot of daunting looking stuff! Eventually though, what you are looking at below will seem quite familiar and not daunting at all. To do so, right click on the "HelloWorld" icon and select 'Open Editor' Now let's actually start programming!."Helloworld" is just as valid of a classname but " Hello World" is NOT a valid clas name. You cannot have a blank space in the name of a class. By convention class names start iwth a capital letter though Java does not require this. Not surprisingly, the way that you create a new class is to click on the "new class" button!.The blank document with the turned corner represents the project: Your screen should now look like this picture. 1) After opening up BlueJ, select 'new project.' Let's call our first BlueJ project " FirstProject".Okay, now to test everything, start or restart BlueJ, and select the "JavaĬlass Libraries" entry from the Help menu (in the upper right-hand corner.Yielding a complete file name something like: "C:/j2sdk1.5/docs/api/index.html". This will be something like "C:/j2sdk1.5/docs", Replace the " with the directory where you downloaded At the top of the page you will see "JDK documentation URL"Īdjacent to a text box.In BlueJ, select the BlueJ menu, and then Preferences (or the Project menu, and then Preferences, depending on the version.) This will bring upĪ dialog box.As you have just downloaded theĭocumentation onto your own PC, you want to set up BlueJ so that it simplyĪccesses your on-board documentation, instead of browsing the Web. You are on-line, because BlueJ tries to access the on-line documentation providedīy the Sun Corporation, which supports Java. To access the JDK documentation, use the Help menu from within BlueJ.This will create a subdirectory, "docs", within your JDK directory. The same directory where you placed the JDK ("C:/j2sdk1.5", or whatever it was). When asked where to extract the documentation to, select.You can download it for free onto your PC, if you don't already have such a (The documentation is written in HTML, allowing you can read it from aīrowser.) The instructions for doing this can be found at (look for the "J2SE 5.0 Documentation" header.) You may need a compression/decompression utility, such as winzip. If you'd like, you can install the on-line Java documentation associated with The directory at which you installed BlueJ. To open one of the sample projects from the Example directory, located in To test your installation, go ahead and run BlueJ.You may-but probably won't-need this when you get to "step Writing, it is version 2.2.0.) Note the directory in which you save the downloaded Follow the directions to download the latest version of BlueJ.Use your web browser (Firefox or Internet Explorer) to access.You can choose, here, to read the associated README file by clicking on the After much whirring and clanking from the CD and your hard drive the installation.(I think the default is something like "C:/j2sdk1.5" You can accept theĭefault answers, but make sure you note the directory under which you are After a while, you will be asked a series of questions.This will pop up a window that says something about "extracting Running the application "j2sdk-1_5_0_09-windows-i586.exe" by double-clicking.(If you are on a Vista-powered PC, you should use JDK6.) For now, though, we're just interested in. You might want to check these out at some There are several interesting documents in thisįolder, including a README file. Access the CD-ROM that came with your textbook by placing it in your PC's.JDK and BlueJ Installation Installing BlueJ (and the JDK) on a PC Installing the JDK
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |