How do I run an html code program using TextEdit or something else on a mac?
-
I'm a beginner at Java programming really and I'm working through the book "Introduction to Java Programming Eighth Edition" by Liang. I am on Chapter 18 and the book gives me this code to run: <html> <head> <title>Java Applet Demo</title> </head> <body> <applet code = "DisplayLabel.class" width = 250 height = 50> </applet> </body> </html> I am using Eclipse and as far as I know there is no way to run a program like this in Eclipse. so I've typed it up in TextEdit and saved it as an .html file. When I open it, only the code is displayed. The other problem is that I don't think the program can access the DisplayLabel class I already created from anywhere but Eclipse. So I'm stumped, and this book does not explain how to do this at all... Any help would be appreciated.
-
Answer:
Download text wrangler. Make sure to save as an HTML and you should be good!Vwhen viewing your work, find the document in your computer and pull it up like opening any other document. I advise running it through firefox because if your code is wrong you can use the error console.
Wes at Yahoo! Answers Visit the source
Other answers
adobe dreamviewer is best to edit & desig html,php,css codes .. so i prefer to go for that :)
If it's designed to run a Java applet in a browser, then open the .html file with a browser. If you've compiled and built your project then any classes you've written should be included.
Related Q & A:
- How do I display limited html content in a webview?Best solution by Stack Overflow
- How do I run a silent auction?Best solution by Yahoo! Answers
- How do I put an html code in a scroll box?Best solution by html.am
- How do I run a fast mile?Best solution by Yahoo! Answers
- How do I run a game on both of my monitors?Best solution by tomshardware.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.