File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Applets
Bookmark "version mismatch error" Watch "version mismatch error" New topic

version mismatch error

dale virden

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

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

"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 -target 1.1
// Mathias

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

Joined: Mar 23, 2004
Posts: 2
"You can use javac -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:
subject: version mismatch error
It's not a secret anymore!