Solved

Applet .....running in jsdk2.1...........problem

Posted on 2002-07-24
15
185 Views
Last Modified: 2010-03-31
I have stored the html file along with the class file in jsdk2.1\examples. In jsdk2.1 I have started the server by supplying the command startserver.bat. There is no message is displayed in my dos prompt. I am getting a windows explorer on c:\windows\java instead of new Dos prompt.Should I change the System properties. Else What's the solution.
Thanks in advance
javasans
0
Comment
Question by:javasans
  • 8
  • 7
15 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 7173699
I'm not familiar with startserver.bat, but you should be able to just compile the applet and run it by opening the html file in your browser. Are you sure the the applet's class file is in the directory?
0
 

Author Comment

by:javasans
ID: 7173708
Yes, I am sure that the class file is in directory.If I navigate to
d:\jsdk2.1\examples\x.html  , the html files are displayed.
But if I start the server
d:\jsdk2.1\startserver
then navigate
to
http://localhost:8080/examples/x.html
then it displays the error as "page not found"
Thanks in advance
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 7173717
I'm not familiar with JDK2.1, but it seems that it contains some sort of web server which you can run locally. I can only guess that this might be something to do with the server root and paths. Is there some way of setting the server root? Properties file? Parameter in command line/batch file? Maybe if you posted startserver.bat it would help.
0
Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

 

Author Comment

by:javasans
ID: 7173729
Sorry ,At present I am not having   jsdk2.1\startserver.bat.But it is readily available in java.sun.com. I have'nt made any change to that batch file. (I forgot to mention in the last mail the os is windows 98. ). I am in need of the solution
Thanks in advance.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 7173738
OK, I'm getting confused now!
1. What are you trying to do?
2. What is the problem with the above?
0
 

Author Comment

by:javasans
ID: 7173773
Sorry for the confusion I have made.
Here is my task.
1.Writing java applet
2. compiling it.
3. Embedding the applet class file into the html for eg x.html(by using the code atribute of the applet tag)
4. Storing the html file and the class file in the server directory
 for eg/ d:\jsdk2.1\examples
5. starting the server.
 ie,
 d:\jsdk2.1\startserver
6. opening the browser and in the location
  http://localhost:8080/examples/x.html
7. Here is the problem.The html page is not displayed.Page cannot be found message is displayed.

I think the confusion  is OK now
MY question.
Why the html page is not displayed?
Thanks in advance.

   
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 50 total points
ID: 7173791
OK. Break down the problem into its two main parts:

1. Verifying the applet is viewable
2. Viewing the applet in the 'server'

So, taking 1. first, can you view the applet in your browser by opening the html file?
0
 

Author Comment

by:javasans
ID: 7174221
Yes I can view the applet in the browser.
0
 

Author Comment

by:javasans
ID: 7174228
Yes I can view the applet in the browser.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 7174229
OK. So now you want to run it in this 'server'?
0
 

Author Comment

by:javasans
ID: 7176250
Yes, I want to run it in the server
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 7176532
OK. Next step is to get the server up and running. Let me know when http://localhost:8080 shows something in your browser.
0
 

Author Comment

by:javasans
ID: 7176564
"The page cannot be displayed" error is displayed on the browser
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 7176578
1. Are you *certain* that the server is running?
2. Are you entering the *exact* address http://localhost:8080?
0
 

Author Comment

by:javasans
ID: 7177117
Here's the problem. As in the first question If I start the server in
d:\jsdk2.1\startserver.bat
window explorer is opened at c:\windows\java. I cognise it as my server is started.

And also I have given the exact address.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how to add new optional parameter to JSP 1 49
eclipse buid path vs tomcat lib path 10 34
JAVA API design with micro service cloud in mind 1 49
jsp error 6 27
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question