Posts

Showing posts from September, 2016

How can a Java method returns more than one value

One of my friends asks me this question, can a java method returns than more value? - you can achieve this task through a work around Consider this example     public static java.math.BigDecimal pmsGetActRetB(java.math.BigDecimal P_ID, java.math.BigDecimal P_HON_ID,                                                      oracle.jbo.domain.Date P_DATE,                                                      java.math.BigDecimal P_NAV[] ) throws java.sql.SQLException {         java.math.BigDecimal __jPt_result = null;         CallableStatement __sJT_st = null;         try {                             String theSqlTS =                         "BEGIN :1 := IAIGC.\"PMS_RET_PKG\".PMS_GET_ACT_RET_B(\n       :2  ,\n       :3  ,\n       :4  ,\n       :5  )  \n; END;";                                         __sJT_st.registerOutParameter(1, oracle.jdbc.OracleTypes.NUMERIC);                     __sJT_st.registerOutParameter(5, oracle.jdbc.OracleTypes.NUMERIC);            

Error while setup Jdeveloper 12c-Could not extract the archive because it is corrupted.Error code =1

Image
Hello IF you face this error before , do not worry. There are two  reason for this error . 1- the exe file that you downloaded it from oracle website is corrupted due to antivirus and firewall.So you must disable the antivirus installed on your machine ,and disable windows firewall , then start downloading Jdeveloper source from oracle website. 2- the temp folder 's path contains either blank spaces or dot "." change the value of the "Temp folder" environment variable  to be c:\temp and of course make sure that c:\temp exists Note: the Jdeveloper 12c source comes in two files : exe file and a ziped file. unzipe the file first before start installation