بتاريخ: 17 أغسطس 200619 سنة comment_76775 Dear allhow are you.In fact I have made a simple java class that return a string which represents the screen size . for example 800/600 or 1024/768 or othersbut I face error ORA-29541 class string.string could not be resolvedThis what i madefirst i created my JAVA SourceCREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "ScreenProperty" ASimport java.lang.Object;import java.awt.*;public class ScreenProperty{int w;int h;public static String getScreenSize(){w = Toolkit.getDefaultToolkit().getScreenSize().width;h = Toolkit.getDefaultToolkit().getScreenSize().height; return w+"/"+h;}};/SQL>Operation 160 succeeded.this means the the java source created successfulyand I'm sure that my java code is correctthen i created a fuction to call this java source as fellowSQL> create or replace function f_get_screen_sizereturn varchar2as language javaname 'ScreenProperty.getScreenSize() return java.lang.String';/Function created.the I Issued this sql statement to return the result that should be varchar2 that represent the sceen size(1024/768)SQL> select f_get_screen_size from dual;ORA-29541 class string.string could not be resolved.I do not know what is the reason for this errorand when i searched the documentation for this error i foundORA-29541 class string.string could not be resolvedCause: An attempt was made to execute a method in a Java class that had not been previously and cannot now be compiled or resolved successfully. Action: Adjust the call or make the class resolvableI need to know what is the problem.And is there another way to load this class other than making JAVA SOURCEplease help تقديم بلاغ
بتاريخ: 17 أغسطس 200619 سنة comment_76786 بدلاً من public static String getScreenSize() جرب public String getScreenSize() تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.