Question

Q:Write the steps in detail to execute a swing program from command prompt.
0 0
Add a comment Improve this question Transcribed image text
Answer #1

For compiling and running the swing program you need to install JDK. You can download the latest release of the JDK

Please ensure that you have installed the latest version of the JDK  by:

 javac -version java -version

(Latest version is JAVA SE 14 )

1. Compile the Program :

To compile the program, for example: HomeworkLibSwing.java file:

 javac HomeworkLibSwing.java 

If your swing program is in any dir_xyz directory then you have to first go to the dir_xyz directory then compile the program by:

javac dir_xyz/HomeworkLibSwing.java

2. Run the Program :

After you compile the program successfully, you can run it :

 java HomeworkLibSwing

If the swing file is inside any director then for running the program you need to type :

java dir_xyz.HomeworkLibSwing

Add a comment
Know the answer?
Add Answer to:
Q:Write the steps in detail to execute a swing program from command prompt.
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • at the powershell command prompt execute the command to add the following two new global security...

    at the powershell command prompt execute the command to add the following two new global security group in the active directory: Marking, Engineering

  • How do I do the following on a Unix Command Line Prompt: Change you command-line prompt...

    How do I do the following on a Unix Command Line Prompt: Change you command-line prompt to some interesting phrase/word of your choice Change the command-line prompt to display your user name and your current working directory (this includes your interesting phrase/word) Create a short alias for “ls -l -a”, it is up to you, but maybe “lsa” Execute the “who” command together with the “grep” command to identify whether your peer group (or any 3 or more people) are...

  • Open Command Prompt typing CMD command in your Search window. Change the directory from current to...

    Open Command Prompt typing CMD command in your Search window. Change the directory from current to root (C:). Make a new directory called CIS165_Your Last Name (example: CIS165_Nossa). Within this directory, make subdirectories called Can1 and Can2. Verify the created directory and subdirectories using particular command. Under Can1 subdirectory creates three files called Jam.txt, Milk.txt and Juice.txt. Verify that you created these files using particular command. Move Jam.txt file from the Can1 subdirectory to the Can2 folder. Compare using special...

  • A) Write a command that will execute the file named main and report memory management errors...

    A) Write a command that will execute the file named main and report memory management errors (memory leaks) when the program has finished. B) Write a command that will generate an executable file named main from the C++14 source code file main.cpp that includes all available debugging information. After this command, write a second command to start the C++ debugger in text user interface.

  • Round 1: sequence.c This program should read and execute a list of commands from stdin. Each comm...

    Round 1: sequence.c This program should read and execute a list of commands from stdin. Each command and its arguments (if any) will appear on a separate line. For example, if the file "cmdfile" contains the lines: whoami cal 4 2019 echo The time is: date then running 1 /sequence< cmdfile should output your username, a calendar of the month of April, the string "The time is:", and the current date/time, to standard output. Suggested approach: first, make sure you...

  • Write a C program that implements a simple shell. The shell takes a user command as...

    Write a C program that implements a simple shell. The shell takes a user command as input and execute the command. When a shell is started, it should take user command, execute it and display the output.

  • please write down the code Thank you. Write a simple shell that is similar to this: while(1 //repeat forever //display prompt on screen type_prompt )i read_command ( command, parameters); // read inp...

    please write down the code Thank you. Write a simple shell that is similar to this: while(1 //repeat forever //display prompt on screen type_prompt )i read_command ( command, parameters); // read input from terminal if ( fork) 0) // parent //wait for child wait NULL elset execve (commamd, parameters, 0 // execute command but contains enough code that it actually works so you can test it. For simplicity, you may assume that all commands are in the directory /bin Write...

  • SQL Question: 1:The SCRIPT...AS command in the SSMS will A. Execute a command to create the...

    SQL Question: 1:The SCRIPT...AS command in the SSMS will A. Execute a command to create the object. B. Retrieve the properties of the object. C. Retrieve a data result-set. D. Create a query script of the object. 2:As queries are written, if the IntelliSense is enabled in the SSMS, there will be A. Indents added to the second line. B. Comments automatically added. C. Table and column options. D. New query windows available.

  • Task 1: Using the adduser Command Execute the following commands in the root command-line environment: #...

    Task 1: Using the adduser Command Execute the following commands in the root command-line environment: # ls /home # adduser newuser1 # ls /home Contrast the contents of home before and after the adduser command. ? ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- # cd /home/newuser1 # ls -al # tail -n 5 /etc/passwd What is the absolute path of newuser1's home directory? ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- What is the default shell for newuser1? ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- # tail -n 5 /etc/shadow Contrast the newuser1 record with your...

  • A program (or a program task) takes 150 million instructions to execute on a processor running...

    A program (or a program task) takes 150 million instructions to execute on a processor running at 2.7 GHz. Suppose that 50% of the instructions execute in 3 clock cycles, 30% execute in 4 clock cycles, and 20% execute in 5 clock cycles. What is the execution time for the program or task? Suppose the processor in the previous question part is redesigned so that all instructions that initially executed in 5 cycles and all instructions executed in 4 cycles...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT