Homework

Homework Questions? Ask a Tutor for Answers ASAP

Ask an Expert,
Get an Answer ASAP!

Homework
This answer was rated:

Need help with Syntax errors on my Retail Calculator. Main.class

and jframe issues to fix...
Need help with Syntax errors on my Retail Calculator. Main.class and jframe issues to fix. Very simple.
Show More
Show Less
Ask Your Own Homework Question
Answered in 5 minutes by:
9/25/2013
ATLProg
ATLProg, Software Engineer
Category: Homework
Satisfied Customers: 9,151
Experience: Expert in Java C++ C C# VB Javascript Design SQL HTML
Verified

Hello Welcome. Thank you for your question, I’m ATLProg and I’ll try to help you.

 

Can you please go to www.wikisend.com and upload your file ? Once you do that you will get a page that has the "File ID" and "Download Link". Copy the "Download Link" or "File ID" and please paste it in your reply here.

 

Ask Your Own Homework Question
Customer reply replied 4 years ago

http://wikisend.com/download/949492/RetailCalculator.java


RetailCalculator.java

Please download solution from

http://wikisend.com/download/981264/RetailCalculator.java

I hope i was able to assist you. If you are happy with my service please rate my service . If your are not 100% satisfied, please reply to me so that i can help you better. Please start your question with "For ATLProg only" to request me again
Ask Your Own Homework Question
Customer reply replied 4 years ago

hi, i uploaded the file you said you fixed and its the same, I dont see any changes and I still am getting "no main classes found"

There was an extra bracket at the end.
If you want i can put this code in netbeans and send it to you
Ask Your Own Homework Question
Customer reply replied 4 years ago

What I did was copy and paste the whole file you sent back into Netbeans. I basically took out what I had and pasted what you gave back and I still get the main class error. So if doing it in Netbeans will make it work, then okay.


Am I doing this right by copy and pasting the code?


let me know that too

It should have worked
Please find solution below

http://wikisend.com/download/732484/RetailApp.zip

http://wikisend.com/download/677160/HowTo_Open_NetBeans_Project.doc
Ask Your Own Homework Question
Customer reply replied 4 years ago

okay. Let me try your instructions but another question before I try.


 


I use the new .java file you sent and open the file in NetBeans as instructed.


Then I should have a calculator that works.


 


So by copy and pasting the code from notepad is not the correct way for the file to "work correctly". Right?


I know copy and paste from Word is not good as I went through that mess. Am I correct? Let me know and I will see your answer as I am trying your instructions so give me a few minutes please.


Stay tuned.


Thank You

I better to do development in some IDE like netbeans or eclipse then Notepad to avoid such issues
Ask Your Own Homework Question
Customer reply replied 4 years ago

Hi, thanks for waiting.


So I did as you instructed.


First how do I save it if I already have a file called RetailCalculator.java.


So I will have to erase mine and then use this one as the name is important.


Next, there are two "errors" that are probably inter related.


First line 21 has a syntax error that says "Class RetailCalculator is public and should be declared.


Next is the "error" from the output screen.


run:
java.lang.UnsupportedClassVersionError: retailcalculator/RetailCalculator : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: retailcalculator.RetailCalculator. Program will exit.
Exception in thread "main" Java Result: 1
BUILD SUCCESSFUL (total time: 1 second)


Let me know


 

Try this..

1. Right click on RetailApp in Netbeans and select "Run"

If that doesnt work Please send me a snapshot of your netbeans should project layout
Ask Your Own Homework Question
Customer reply replied 4 years ago

Same error, I have attached a word doc with screen shot. I believe it is same error

Attachment: 2013-09-25_023337_same_error_and_screen_shot.docx

What is RetailCalculator1.java? It wasnt part of project i sent please remove that infact delete the complete project and try and reopen the project i sent
Ask Your Own Homework Question
Customer reply replied 4 years ago

Will do

Customer reply replied 4 years ago

I got the same error. See below.


Also, how do I save it as RetailCalculator? Netbeans is saying there is something else named that and I thought I erased it already.


 


run:
java.lang.UnsupportedClassVersionError: retailcalculator/RetailCalculator : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: retailcalculator.RetailCalculator. Program will exit.
Exception in thread "main" Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)

this is taking too much time my friend now
Please all RetailCalculator projects you may have and use just the one i sent.
And if that doesnt work please send me snapshot
Ask Your Own Homework Question
Customer reply replied 4 years ago

okay I will again


Attachment: 2013-09-25_025510_same_error_and_screen_shot_v2.docx


screen shot attached

Do this first do
1. Right click on project and select "Build" and then do "Run"
Ask Your Own Homework Question
Customer reply replied 4 years ago

I did what you said but dont I need to save it first before I build it?


I did the clean and build as that was my only choice


I have attached another word doc with a screen shot as you like


take a look

Attachment: 2013-09-25_030114_same_error_and_screen_shot_v3.docx

attached!

i am not sure why you are getting that..looks like you are using a jdk version other than 1.7.
Can you create a new Netbeans project and add RetailCalculator.java in retailcalculator package
Ask Your Own Homework Question
Customer reply replied 4 years ago

IT WORKS IT WORKS IT WORKS.


Lets get done with our transaction. OMG it works!!

good..remember to look me up next time :) Please start your question with "For ATLProg only" to request me again
Ask Your Own Homework Question
Customer reply replied 4 years ago

I will, I have seen you before.


One quick question. Can you give me the line number or numbers you fixed so I can see and take note!!


Then I am good. as I have to point out what was added/fixed.


Thank You again.

you program was perfect except that it had an extra ending brace at the end
Ask Your Own Homework Question
Customer reply replied 4 years ago

are you kidding me UGH really


Well I have to say I learned a lot I did not know about NetBeans and so got training on that and this wasnt a total bust.


Thanks again.


so what are next steps?

This answer is protected
Would you like to ask this question?
If you've already paid for this answer, simply Login.
ATLProg
ATLProg, Software Engineer
Category: Homework
Satisfied Customers: 9,151
Experience: Expert in Java C++ C C# VB Javascript Design SQL HTML
Verified
ATLProg and 87 other Homework Specialists are ready to help you
Ask your own question now
Ask ATLProg Your Own Question
ATLProg
ATLProg
ATLProg, Software Engineer
Category: Homework
Satisfied Customers: 9,151
9,151 Satisfied Customers
Experience: Expert in Java C++ C C# VB Javascript Design SQL HTML

ATLProg is online now

A new question is answered every 9 seconds

How JustAnswer works:

  • Ask an ExpertExperts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional AnswerVia email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction GuaranteeRate the answer you receive.

JustAnswer in the News:

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

What Customers are Saying:

Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

Mary C.Freshfield, Liverpool, UK

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

AlexLos Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

GPHesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

JustinKernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

EstherWoodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

RobinElkton, Maryland

He answered my question promptly and gave me accurate, detailed information. If all of your experts are half as good, you have a great thing going here.

DianeDallas, TX

< Previous | Next >

Meet the Experts:

LogicPro

LogicPro

Engineer

5,731 satisfied customers

Expert in Java C++ C C# VB Javascript Design SQL HTML

Manal Elkhoshkhany

Manal Elkhoshkhany

Tutor

4,551 satisfied customers

More than 5000 online tutoring sessions.

Linda_us

Linda_us

Finance, Accounts & Homework Tutor

3,138 satisfied customers

Post Graduate Diploma in Management (MBA)

Chris M.

Chris M.

M.S.W. Social Work

2,636 satisfied customers

Master's Degree, strong math and writing skills, experience in one-on-one tutoring (college English)

F. Naz

F. Naz

Chartered Accountant

2,161 satisfied customers

Experience with chartered accountancy

Bizhelp

Bizhelp

CPA

1,887 satisfied customers

Bachelors Degree and CPA with Accounting work experience

Seanna

Seanna

Tutor

1,781 satisfied customers

3,000+ satisfied customers, all topics, A+ work

< Previous | Next >

Related Homework Questions
Case Study #2: Technology & Product Review for Identity
Case Study #2: Technology & Product Review for Identity Governance & Administration Case Scenario: For this case study, our focus shifts to technologies and products used to implement the Identity Gov… read more
F. Naz
F. Naz
Chartered Accountant
CA Finalist & Completed B.com
2,161 satisfied customers
Looking for some help creating this project. This is not due
looking for some help creating this project. This is not due for three weeks. So i am looking for completion byFebruary 9th. I will attach the files need to complete this project. Thanks.… read more
The-PC-Guy
The-PC-Guy
Bachelor\u0027s Degree
629 satisfied customers
Thank you for the last answer! It was great. Are you able to
Hello David! Thank you for the last answer! It was great. Are you able to do this one by next Tuesday evening by 12 midnight? Thanks again! Matthew… read more
David L.
David L.
Bachelor\u0027s Degree
6 satisfied customers
For LogicPro only Implement the Singly linked list interface
For LogicPro onlyImplement the Singly linked list interface to store the data from Words.txt (used in lab0). Demonstrate that the list of words does print in reverse using the 'prev' node (rather than… read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
5,731 satisfied customers
Looking for some help writing these python codes. I have
Looking for some help writing these python codes. I have attached the code layout and what needs to be included as well as documentation as to how the code was created.Each program must have its own e… read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
5,731 satisfied customers
I need help writing 2 poems in spanish, The listening
The listening passage for this examination consists of two poems. You'll hear the poems three times. These poems are to be written in Spanish as you hear them spoken on the tape. The listening passage for this examination consists of two poems. You'll hear the poems three times. These poems are to be written in Spanish as you hear them spoken on the tape. http://lessons.pennfoster.com/vid/Listening-Comprehension_Side-A_EQ0850.mp3 … read more
Cher
Cher
JustAnswer Expert & Mentor;Teacher/Tutor
Masters Degree
1,381 satisfied customers
Answer, I am a paid member for service from Just Answer.I am
Dear Just Answer,I am a paid member for service from Just Answer.I am working in Excel. I need assistance in providing me a formula for totaling the number of similar numbers in a column of data (900+… read more
NPVAdvisor
NPVAdvisor
CFP Licensee and Practitioner
Master's Degree
180 satisfied customers
In an industrial setting, a pipe is plugged with fats, oils
In an industrial setting, a pipe is plugged with fats, oils and greases. Can you use steam, inside the pipe, to clear the plug? One coworker says yes, another says no. The reasoning behind the no is t… read more
David L.
David L.
Bachelor\u0027s Degree
6 satisfied customers
For LogicPro only: Design a C++ program in which a class
For LogicPro only: Design a C++ program in which a class should manage the free and allocated space. You should use a dynamic node implementation of link list to implement both lists for this assignme… read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
5,731 satisfied customers
You can apply several different worksheets themes from which
You can apply several different worksheets themes from which tab? A.Insert, B. Home, C.File, or D. Page layout! Its not B What would be a situations in which you could use an excel chart to present yo… read more
GLENN
GLENN
Master of Mathematics
345 satisfied customers
6. How many worksheets display in the Excel window when you
6. How many worksheets display in the Excel window when you create a new blank workbook? A. 3 B. 2 C. 4 D. 1 Student Answer: A Answer: Incorrect Reference: Objective 2.17. What would be a situation in… read more
AnswersByEric
AnswersByEric
Software Developer
Associate Degree
38 satisfied customers
Question 18 of 20: Select the best answer for the question.
Question 18 of 20 : Select the best answer for the question. 18. What size paper should you use for a legal document? A. 3″ × 5″ B. 8½″ × 11″ C. 7¼″ × 10½″ D. 8½″ × 14″… read more
JA Engineer
JA Engineer
Broadcast Engineer
Diploma (Honors)
163 satisfied customers
I need help with Exam Number: 00701400 Lesson Name: General
I need help with Exam Number: 00701400Lesson Name: General Math I, Study Unit 2 Pennfoster test… read more
GLENN
GLENN
Master of Mathematics
345 satisfied customers
Answer all three questions and don't exceed 600 words for
Answer all three questions and don't exceed 600 words for each answer while using at least two references to support your answers for each question adopting APA citation in the text and in the referen… read more
F. Naz
F. Naz
Chartered Accountant
CA Finalist & Completed B.com
2,161 satisfied customers
QUESTION 1 A(n) _________________ policy are codified as
QUESTION 1A(n) _________________ policy are codified as standards and procedures that are used when configuring or maintaining systems.0.10000 points Save AnswerQUESTION 2In systems analysis and desig… read more
F. Naz
F. Naz
Chartered Accountant
CA Finalist & Completed B.com
2,161 satisfied customers
I need all the questions answered inthis pdf! I need all
I need all the questions answered inthis pdf! I need all sixty questions on all 21 pages answered!… read more
Steven, M.Acc.
Steven, M.Acc.
Instructor
Master\u0027s Degree
252 satisfied customers
Exam Number: 584002RR I need all t he questions answered in
Exam Number: 584002RR I need all t he questions answered in excel in this pdf file now! Asap!… read more
The-PC-Guy
The-PC-Guy
Bachelor\u0027s Degree
629 satisfied customers
How do you differentiate between an expression and an
How do you differentiate between an expression and an equation? Provide an example of each, where the two are either related to or similar to each other. … read more
GLENN
GLENN
Master of Mathematics
345 satisfied customers
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Show MoreShow Less

Ask Your Question

x