The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Sun Java Platform, Standard Edition 6u6 (Java 6 branch) iBot Software Releases - RSS News 0 04-26-2008 01:10 AM
Sun Java Platform, Standard Edition 1.5.0_15 (Java 5 branch) iBot Software Releases - RSS News 0 03-06-2008 02:50 PM
Sun Java Platform, Standard Edition 6u5 (Java 6 branch) iBot Software Releases - RSS News 0 03-06-2008 02:50 PM
Using Subversion, NetBeans IDE, and Sun Java System Web Server With Java ME iBot UNIX and Linux RSS News 0 02-01-2008 02:00 PM
Sun Java Platform, Standard Edition 6u4 (Java 6 branch) iBot Software Releases - RSS News 0 01-14-2008 04:40 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 06-06-2007
Registered User
 

Join Date: Feb 2007
Location: india,mumbai
Posts: 82
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.
Reply With Quote
Forum Sponsor
  #2  
Old 06-06-2007
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,477
Quote:
Originally Posted by zedex
Method 'setVal' with signature Ljava/lang/String; not found
Hit T to terminate program. Hit any other key to continue.
Are you using JNI? By the way, the message seems to suggest setVal() is a method which accepts a String object, but setVal() in your code accepts an int. Probably this is why the message comes up?
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:54 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0