Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Help I'm literally keep having this error that it's killing me! #java #eclipse please provide a step by step on how to fix this thank

Help I'm literally keep having this error that it's killing me! #java #eclipse

please provide a step by step on how to fix this thank you I do give thumbs up

image text in transcribed

Error: Could not find or load main class assignmentOne Caused by: java.lang.ClassNotFoundException: assignmentOne

code:

Main.java

/* // TODO: ADD YOUR DETAILS */ import javax.swing.*; public class Main { public static void main(String[] args) { // creating a frame JFrame jFrame = new JFrame(); // asking user for their name String name = JOptionPane.showInputDialog("What should we call you?"); // displaying the name in the dialog box JOptionPane.showMessageDialog(jFrame, name + ", Welcome to Javal!", "Lab Exercise 1", JOptionPane.INFORMATION_MESSAGE); } }
File Edit Source Refactor Navigate Search Project Run Window Help q >> U * Package Explorer Bassignment#1 assignmentOne.java * 10 /* 2 2 // TODO: ADD YOUR DETAILS 3 */ 4. 5 import javax.swing. *; 6 7 public class Main { 8e public static void main(String[] args) { 9 // creating a frame 3210 JFrame jframe = new JFrame(); 11 12 // asking user for their name 313 String name = JOptionPane.showInputDialog("What should 14 15 // displaying the name in the dialog box 2216 JOptionPane.showMessageDialog(JFrame, name + ", Welcome 17 } 18 } * Problems @ Javadoc Declaration Console X assignmentOne [Java Application] C:\eclipse\plugins\org.e Error: Could not find or load main class assignmentOne Caused by: java.lang.ClassNotFoundException: assignmentOne

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M Kroenke, David J Auer

6th Edition

0132742926, 978-0132742924

More Books

Students also viewed these Databases questions