This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

getting the following error no such method exists  RSS feed

 
Sanjay Datta
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am getting the following error when my applet is invoked from the javaScript

java.lang.Exception: connectPort{0} :no such method exists
at sun.plugin.com.JavaClass.getMethod1(Unknown Source)
at sun.plugin.com.JavaClass.getDispatcher(Unknown Source)
at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)

This happens only JRE version 1.4.2_08 but works fine with 1.5

Thanks,
Sanjay
 
Sanjay Datta
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys any ideas..
 
Joe Ess
Bartender
Posts: 9436
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This method:

Does not exist in JDK 1.4.2_8. If you aren't using any 1.5 specific features, try compiling with the following command:

It tells the compiler to generate a JDK 1.4-level class.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!