Solved

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

Posted on 2002-07-24
15
196 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

738 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