Looks like you have Java class version 48, and Simple Math is verson 49.

2008/10/23 Cristian_Pérez <[EMAIL PROTECTED]>:
> Hello,
> I write this mail from Chile and I have any question.
> We work with coldfusion MX7 and we need import an object from JAVA, I made an 
> little example : SimpleMath and I saw that error:
> the error:
> 500 SimpleMath (Unsupported major.minor version 49.0)
>
> SimpleMath (Unsupported major.minor version 49.0)
>
>  what happen?, what do I do?.
>
> ---------------------------------------------------------------------------------
> My Coldfusion code:
>
> <!--- create an object based on the SimpleMath class  --->
> <cfset myObject = createObject( "java", "SimpleMath" ) >
>
> <!--- call the addNumbers method and store the result in a variable. --->
> <cfset result = myObject.addNumbers( 25,25 ) >
>
> <cfoutput>The result is: #result#</cfoutput>
>
> ---------------------------------------------------------------------------------
> My JAVA code:
> public class SimpleMath {
>
>  public int addNumbers(int num1, int num2){
>      return num1 + num2;
>   }
> }
>
> ---------------------------------------------------------------------------------
> Java version coldfusion MX7
> Java version          : 1.4.2_05, Sun Microsystem Inc.
> Java VM version    : 1.4.2_05-b04
> Java class Version: 48.0
>
> Thak

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-community/message.cfm/messageid:276167
Subscription: http://www.houseoffusion.com/groups/cf-community/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5

Reply via email to