purplekeron.blogg.se

How to execute bluej program
How to execute bluej program











If the compiler doesn't spit out any errors, it should have generated a ".class" file.

  • Compile by typing javac filename where filename is the name of the file.
  • Setting the path depends on a number of things. If you type "javac" and the command is not recognized, the compiler is not in your path.
  • Make sure that the java compiler is in your PATH.
  • Note: I am assuming that you are not using packages.

    #How to execute bluej program code#

    cd into the directory where your code has been saved.For your first lab you should save the code as "smtpClient.java". If you are writing a class named Test, your file MUST be named Test.java. Important: The name of the file must be the class name with a. Use this as an opportunity to learn more about Java! But, you should be able to understand enough to modify the necessary portions for the assignment. We will talk more about sockets in class. You may not be able to fully understand all of the code. But, remember that you have a couple of things to modify. For your first lab, copy and paste the code from the tutorial web page. Open up your favorite text editor (I like emacs) and write your code.For example, if you have a package named "networks.webserver", all files in that package MUST be in a directory named "webserver" that is in a directory named "networks". But, if you do use packages, you must create a directory tree that matches your package name.

    how to execute bluej program

    For lab 1, you don't need to worry about packages.

    how to execute bluej program

    This step is more important if you are using packages. Optional: Create a new directory where you will store the files for the program.Compiling and Running a Java Program Using the Command Line Compiling and Running a Java Program Using the Command Line











    How to execute bluej program