Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Putting a java.[...].class in a JAR for browser

 
Paul Bailey
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using a method in java.awt.Color that is in the 1.3 JRE, but not in the 1.1 JRE (and i don't want to force people to download a new plug-in). Is there a way to include java.awt.Color in my JAR file and force the JRE to use the one i included and not the one it has?
 
Julia Reynolds
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could download the Sun html converter and apply it to your applet tag. The HTML Converter is a tool that automatically converts applet tags to the format required by Java Plug-in, directing the browser to install and run the plugin jvm from the sun server instead of its own jvm.
http://java.sun.com/products/plugin/1.3/docs/html_converter.html
Julia
 
Paul Bailey
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Julia,
I am almost sure that the html converter forces users to download a new JVM before executing. I don't want to have to force them into that. I was wondering if there was a way around that, by say, just including the only class i use from 1.2/1.3.
 
Anil Sadineni
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Paul,
How u got the solution for that one. Please try to exaplain the solution

Thank u,
Anil
 
Paul Bailey
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Anil,
I have no solution.
I simply caught the unknown method error, and used another method that doesn't work as well (but is in 1.1) in the catch block.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!