• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic