• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Viewing Applets on browsers

 
Jitin Rathod
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having problem with my applets. When i open my html file in the Internet Browsers it just gives me a blank grey colour screen. Sir i was advised to HTMLConverter Utility but even it is not working out. Sir please help on this problem. Please respond me back soon
Thank You
------------------
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you look at the Java Console of your broswer to see if there are any error messages there? If you could post those it would help to know what was going wrong...

-Nate

P.S. - "At ease, soldier!!!" Sorry, I was just commenting on your use of the word "Sir"... I assume you are just using it to show respect, but it only refers to males... I am sure that there are alot of female java programmers that could help you out just as well on here... Also, we are all friends here at the JavaRanch (regardless of what is sometimes displayed in meaningless drivel... ) so the use of "sir" is not needed...
 
Jitin Rathod
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nathan I am sorry for hurting you which i did not mean at all.
i am glad that you replied me soon thanks a lot.Nathan as you had asked me for the error that i am getting in the java console is as follows

Microsoft (R) VM for Java, 5.0 Release 5.0.0.3167
==============================================
? help
c clear
f run finalizers
g garbage collect
m memory usage
q quit
t thread list
==============================================
java.lang.ClassNotFoundException: javax.swing.JApplet
at com/ms/vm/loader/URLClassLoader.loadClass (URLClassLoader.java)
at java/lang/ClassLoader.loadClassInternal (ClassLoader.java)
at java/lang/ClassLoader.resolveClass (ClassLoader.java)
at com/ms/vm/loader/URLClassLoader.loadClass (URLClassLoader.java)
at com/ms/vm/loader/URLClassLoader.loadClass (URLClassLoader.java)
at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
at com/ms/applet/AppletPanel.run (AppletPanel.java)
at java/lang/Thread.run (Thread.java)
 
Aleksey Matiychenko
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
None of the current applets support Swing. In order to use JApplet you need to download and install java plugin from http://java.sun.com/products/plugin/
Then you need to use HTML Converter to create an appropriate HTML file.

 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jitin,
Do not worry... you did not hurt my feelings! I was just trying to give you some pointers... Your problem is that you are using Swing in your applet and the browser JVM does not support it. You mentioned that you had used HTMLConverter, so you probably knew this already... Wll, you need both HTMLConverter ( to convert the applet tag in your HTML into an object tag that calls the applet ) and the Java 2 Plugin ( this makes your applet run in the Sun JVM instead of the browser JVM and uses the object tag provided by HTMLConverter ) to run an applet that uses Swing components ( or other things that were added to Java in Java 2 ).

HTH,
-Nate
 
Jitin Rathod
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nathan
Thanks again for sending your reply. Now please tell me where will i get the Converter and the Plug in. I am working on Jdk1.2.2. So please send me the appropriate reply which would actually work with my package. Nathan i have posted another message but i havent received any replies yet. It is regardin my policy tool.
Nathan I am having one more problem with my JDBC-ODBC. I am making the new connection with my SQL server and when i am running my program the data does not go to the server. It gives an error saying accessdenied. Please reply.
Thanking You
Jitin

 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jitin,

Both the Java2 Plugin and the HTMLConverter can be downloaded from http://java.sun.com/products/plugin/index.html ... The Plug-In is for Java 1.3.1... but everything that you have programmed in 1.2.2 should work fine in 1.3.1 ( and the 1.3.1 JRE is downloaded with the Plug-In, so you don't have to worry about the 1.3.1 plugin trying to access your 1.2.2 JVM and not finding something it is looking for...) You ( and other users ) are supposed to install the Java 2 Plugin to their browsers ( so they will be able to run Java 2 code that the browsers JVM doesn't support ) and you need to run HTMLConverter on the web page that contains your applet ( this ensures that the browser will use the Java2 Plugin instead of it's own JVM ).

I really don't have that much experiance with the policy tool or with JDBC so I can't help you out much there... but I am sure other people on here know about them...

HTH,
-Nate
 
Jitin Rathod
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nathan
Thanks for your advice and I have one more query regarding the .jar files pls can u just make it more clear for me. I would be glad if u would help me and also tell me what is "swingall.jar" file
Thank You
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A .jar file is just like a .zip file... the best place to go for help on JAR files is Sun.. they have several guides to using JAR files.
http://developer.java.sun.com/developer/Books/JAR/basics/index.html

http://java.sun.com/products/jdk/1.1/docs/guide/jar/

If you want to look inside a jar file, the easiest thing to do is open the jar file inside an unzip program (PKZip, WinZip, etc.)... the jar program itself lets you view the contents with command line arguments ( -t I think ), but it's alot easier to just drag it into Winzip and be able to scroll through the file...

I think SwingAll.jar is a jar file that contains all the Swing packages... I think it was used to update Java distributions that did not come with Swing originally...

HTH,
-Nate
[This message has been edited by Nathan Pruett (edited April 30, 2001).]
 
Jitin Rathod
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nathan
Thanks again for your reply. Now the problem is that i have downloaded the plugin and the converter. I am having problem with the converter according to the installation procedurre i was told to unzip the converter file and i did so.
Then i was told to type a path i.e.
java -jar htmlconv1_3.jar -gui
and i got the following error
Exception in thread "main" java.util.zip.ZipException:The system cannot find the file specified
java.util.zip.ZipFile(Native Method)
java.util.zip.ZipFile.<init>(UnknownSource)
java.util.jar.JarFile.<init>(UnknownSource)
java.util.jar.JarFile.<init>(UnknownSource)
please reply soon.
Thank You
------------------
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic