Sponsored Content
Full Discussion: java help???
Top Forums UNIX for Advanced & Expert Users java help??? Post 302120365 by zedex on Wednesday 6th of June 2007 03:00:38 AM
Old 06-06-2007
java help???

hi
i am getting following error when i tying to run cobol program that calls java code although its working fine when tried at some other location.

error:
Exception 65538 not trapped by the class javaexceptionmanager.
Description: "Java runtime exception"
Method 'setVal' with signature Ljava/lang/String; not found
Hit T to terminate program. Hit any other key to continue.


after i press enter it works fine.
this is the java code

Code:
   class CallExample1 {
   private int x;

   public CallExample1(){
        this.x=0;
   }

   public CallExample1(int value){
        this.x=value;
   }

   public void setVal(int value){
        this.x=value;
   }

   public int getVal(){
        return this.x;
   }
}

i was confused in which section i should put this question......if this is not the rigth section mods plz move it to appropriate section.
 
All times are GMT -4. The time now is 06:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy