wood burning stoves 2.0*
The moose likes Applets and the fly likes version mismatch error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "version mismatch error" Watch "version mismatch error" New topic
Author

version mismatch error

dale virden
Greenhorn

Joined: Mar 23, 2004
Posts: 2
When I compile at home with the latest version of the SDK my applets will not run on the browsers where I work. I get a major version mismatch error. If I compile on the Unix development box here with a much older version of Java then the applets run without error. Apparently applets are not backwardly compataible? If this is true then am I to understand that I have to "dumb down" the applet by compiling it on the oldest version I can find if I want to make it more accessible?
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9043
    
  10
What type of browsers do you have where you work?


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Mathias Nilsson
Ranch Hand

Joined: Oct 13, 2003
Posts: 107
Nope! You can use javac myApplet.java -target 1.1
// Mathias


SCJP2 , MCP( 70-229 ) , Preparing For SCWDC
dale virden
Greenhorn

Joined: Mar 23, 2004
Posts: 2
"You can use javac myApplet.java -target 1.1" Thanks!! I had some pretty good results with this. Not 100% but a teriffic improvement. My applets seemed to work just fine on the older version of IE at work. Still seems to be a problem with the older version of Netscape. I will do some more checking and if I can't find an answer I will post version numbers for the browsers. One small advantage in working for a company that drags it's feet about upgrading to newer browsers. They are furnishing a nice test environment for stuff I am writing at home.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: version mismatch error
 
Similar Threads
when private static var. is initalized?
Java Applets in RedHat Linux
java 1.4 and 1.5 compatable ?
EJBException because of local class incompatible
How can I run an applet for accessing the PC camera