![]() ![]() That run will be appended to the output from the first. ![]() This will run your main method.Ī terminal window will pop up and show you the output from your program. This can be very usefulįor testing, but for now just pick the main method. There will be an entry for everyĬonstructor and static method in the class. Looking for a "run" button, but there isn't one. To run your program, go to the main BlueJ window.If you want to forceĪ recompilation of every class in your project, choose Window (or "compile" under the "Tools" menu) compiles all of theĬlasses that haven't already been compiled. Your project that need to be compiled, it's quicker to compile from You'll get a message on the bottom of your screen indicating whether theĬompilation was successful. To compile a single classįrom its editor window, push the Compile button or type control-K. There are two ways to compile classes.If your program will contain several classes, use the procedures above.Make a copy of this file and put it into your project folder. You If you'd rather use an existing Java file, go to the Edit menu andĬhoose Add Class From File.Window is still there behind this editor window. You can edit it to create your ownĬlass, or just type control-A and then Delete and start from scratch.Ĭontrol-S to save the file. This will create an editor window for your file and you'll see a little To edit your Java file, double-click its box in the main BlueJ window.It will have diagonal lines across it, showing that the file has not been Now you'll see another file in the main BlueJ window. For example, if you want to create a class calledĬlass1, type " Class1" ( not Class1.java).īlueJ will create a file called Class1.java. You'll be asked for a name this will be the name of To create a new Java file for your program, click the NewĬlass button.Record any information you like, then use the Close button to get You double-click on it, you will see that it is the README.TXT file. Right now, there will be only one file showing. ![]() The main BlueJ window always shows you the files in your Package.bluej, which is for BlueJ's use only and you should leave it alone. Record information about your program if you wish. BlueJ will create the new folderĬ:/CISC121/assignment1 and open it as a new project folder.īlueJ will create two files inside this new folder. For example, suppose you have aįolder called c:/CISC121 and you would like your new projectįolder to be a sub-folder of this folder, calledĪssignment1. You'll get a file open dialog in which you should create a newįolder to hold your project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |