473,386 Members | 1,621 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Problem with Java Applets in Textpad

blackstormdragon
I've been trying to run a Java applet in TextPad. When I click on "Run Java Applet" it prompts me for my html file, but when I hit ok a window pops up and says "The system cannot find the file specified." Other times it dosen't even prompt me for my html file it simply tells me "The system cannot find the file specified." I figure it has nothing to due with my program because I get the same answer even when working with one of the demos Java supplies.

I know when I first started with TextPad I had to fix the "Compile Java" and "Run Java Application", so I figured maybe this was the same sort of problem. I've been seraching for quite awhile, but have been unable to find a solution. If there are any suggestions, I'll be willing to try them. (I have to fix this before my assignments due.)

Thanks.
Mar 14 '08 #1
4 6393
BigDaddyLH
1,216 Expert 1GB
Be sure that the active file is your applet class. All that the "Run Java Applet" menu item does is give you a chance to pick a HTML file from the current folder. If you say "no", it generates a trivial HTML file like this:

[HTML]<!DOCTYPE HTML><HTML><HEAD></HEAD><BODY>
<APPLET CODE="YouApplet.class" CODEBASE="." WIDTH=400 HEIGHT=300></APPLET>
</BODY></HTML>[/HTML]

You can always create this by hand.
Mar 14 '08 #2
Be sure that the active file is your applet class. All that the "Run Java Applet" menu item does is give you a chance to pick a HTML file from the current folder. If you say "no", it generates a trivial HTML file like this:

[HTML]<!DOCTYPE HTML><HTML><HEAD></HEAD><BODY>
<APPLET CODE="YouApplet.class" CODEBASE="." WIDTH=400 HEIGHT=300></APPLET>
</BODY></HTML>[/HTML]

You can always create this by hand.
I feel very silly( and slighlty confused) right now. This is my first time working with an applet. So if I understand, the only way to see what my applet looks like is to make an html file and than open it in a web browser. So what is the point of "Run Java Applet" if it does nothing?
Mar 14 '08 #3
BigDaddyLH
1,216 Expert 1GB
I feel very silly( and slighlty confused) right now. This is my first time working with an applet. So if I understand, the only way to see what my applet looks like is to make an html file and than open it in a web browser. So what is the point of "Run Java Applet" if it does nothing?
There are two common ways to run an applet: using a browser like Firefox or using the JDK tool appletviewer.exe

The TextPad menuitem is just a short cut to calling appletviewer. You can also open up the HTML file in TextPad and click on the 'world icon' on its toolbar ("view in web browser").
Mar 14 '08 #4
There are two common ways to run an applet: using a browser like Firefox or using the JDK tool appletviewer.exe

The TextPad menuitem is just a short cut to calling appletviewer. You can also open up the HTML file in TextPad and click on the 'world icon' on its toolbar ("view in web browser").
Okay, thank you very much. This seems to make sense now.
Mar 14 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Dave D | last post by:
I just read something that spooked me. I'm a newbie working my way through "SAMS Teach Youself Java 2 in 21 Days." I used to code a bit in Symantec's Visual Cafe for Java about 3 years ago, but...
1
by: Rick | last post by:
Hi, I'm having problems with Java applets. I just generated a JApplet (also tried normal Applet) in Netbeans which is delivered with the newest JDK. When I compile it in Netbeans it seems to...
1
by: Put 030516 in email subj to get thru | last post by:
I have a nice little applet on my web page at: www.benslade.com/pictures/2003/jul/alaska/images/Ben's_Alaska_Vacation_Slideshow.html (yes, that's an apostrophe in the URL, sorry) It runs fine...
0
by: Martin | last post by:
Hi All, I am a relative newbie to Java / Applets, but am despirately after some help ! I have got the following code, which is basically a listing with button items along the sides, allowing...
1
by: Justin | last post by:
Hi, We are researching options on which technologies to use for an advanced web application. We are planning on using DHTML as much as possible, but there are a few components that require more...
1
by: Jim Westwood | last post by:
Is it possible to write java applets in the python language. is that what jython does? I would realy like to write an applet but i dont know any java. I do have some python experience. Can you...
40
by: Eitan | last post by:
Hello, I know Java-Applet (written for JBuilder). I would like to know about dotnet technology, pros and cons in comparation to Java-Applet technololgy. Can I write a program in dotnet, like...
12
by: Wladimir Borsov | last post by:
On one of my web pages there is an java applets which works fine on my computer. However I noticed on some other computer that the run of java applets are disabled. I got an error message...
2
by: erik | last post by:
I'm working on a project which will test users abilities to guess a series of randomly generated pitches. The users need to be able to access the program via the web and the results will either be...
1
by: Boris | last post by:
Is there a way to develop a client-side web control based on the .NET framework and running in a browser (embedded in a web page)? As far as I understand ASP.NET web controls are all server-side? ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.