Importing .jar package
How would I distribute a .jar package without installing it. I need this because the .jar is the mysql driver and I am not sure how to import it into my code (do I have to extract the files inside) or how to set the classpath I wish to use inside my code.
Thanks in advance for the help.
javac -jar TheJarFile.jar MainClass.java
java -jar TheJarFile.jar MainClass
I think from memory that's how it goes. Should work whether MainClass is in the Jar file or not.
Cheers,
Radish21
(Or it might be javac -jar c:\storage\TheJarFile.jar MainClass.java, depends on where you put it)
Similar Messages
-
Import JAR files (integrating JasperReports)
Dear all,
I'm using JDeveloper 11.1.1.3.0 on Windows 7 32bit.
I search this forum and I google a lot, but I couldn't find any workable solution.
I downloaded the newest version of JasperReport and iReport from the official website. I've done some tutorials from this site and everything seems to work fine.
Now I want to integrate JDev with JasperReports. I create new Fusion Web Application ADF, I get the properties of Model project, Libraries and Classpath tab, add Library and click New... I set the Library name as JasperReports, location as Project, check Deploy ad Default. I add to Class path every JAR files in E:\JasperReports\jasperreports-3.7.6\lib and to Source path the whole directory E:\JasperReports\jasperreports-3.7.6\src. I get sure that the Export is checked and I save all the changes.
I create a new Java Class JasperTest and I use this sample code:
import net.sf.jasperreports.engine.*;
import net.sf.jasperreports.engine.export.*;
import java.util.*;
public class JasperTest {
public static void main(String[] args) {
String fileName = "test.jasper";
String outFileName = "test.pdf";
HashMap hm = new HashMap();
try {
// Fill the report using an empty data source
JasperPrint print = JasperFillManager.fillReport(fileName, hm, new JREmptyDataSource());
// Create a PDF exporter
JRExporter exporter = new JRPdfExporter();
// Configure the exporter (set output file name and print object)
exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, outFileName);
exporter.setParameter(JRExporterParameter.JASPER_PRINT, print);
// Export the PDF file
exporter.exportReport();
} catch (JRException e) {
e.printStackTrace();
System.exit(1);
} catch (Exception e) {
e.printStackTrace();
System.exit(1);
}I cant compile this, it gives me Error(1,1): package net.sf.jasperreports.engine does not exist etc..
I cant import any class from JasperReports. Did I something wrong with importing the JAR files to my project ? Maybe I should set some system environment variable ? What else I can do ?
Any help will be appraciated.
Regards,
Wojtek.Hi,
I am also facing the same problem, I have few Jasper Reports which are closely integrated with my APEX applications, but for this i am using another application ( Jasper reports) which deployed in tomcat. This application hardly have 20 lines of java code, so i thought of embedding same in PL/SQL itself, But i am facing problem while importing JAR files i.e.
1. Where to put these JAR files so that i can import them in my PL/SQL.
2. I also tried using JAVALOAD function, but that also not worked for me.
Please give me some solution how to go about it?? -
How to include another .jar package in an applet jar package
Hi, I'm using Eclipse to write an applet which needs some other .jar packages to support it. I add them as external jar package in project properties. In eclipse, everything works fine when I compile and run. But I when export the applet to .jar and try to run in browser, it doesnt work.
I think probably because I didnt export the packages that the applet requires to run. However I cant find a way to export these packages together with the applet to a final .jar file.
Anyone knows how to solve this ? plz help. thx you in advanceHi, I'm using Eclipse to write an applet which needs
some other .jar packages to support it. I add them as
external jar package in project properties. In
eclipse, everything works fine when I compile and
run. But I when export the applet to .jar and try to
run in browser, it doesn't work.
I think probably because I didn't export the packages
that the applet requires to run. However I cant find
a way to export these packages together with the
applet to a final .jar file.
Anyone knows how to solve this ? plz help. thx you in
advanceHi all,
I have been having the same problems too but came to realize that it is quite difficult getting your applet to work in most cases when using external jars. I found out thet you will have to create the directory hierarchy with the necessary imported classes used by your applet. and then create a new jar file that you will use in the codebase tag.
For example:
/* Java code snippet */
import org.apache.XmlRpcClient;
public MyApplet extends JApplet {
//..... Rest of your code ......
}/* End of snippet */
You would then have to create a the directory structure:
org
_apache
___xmlrpc
Then place all the required classes imported from within (Sometimes it is easier to just add all the classes to save time but lose space i.e. larger jar files).
Execute the jar command (please adjust as needed to your requirements):
jar cvf any_name.jar *.class org/
After signing the applet it may solve your problem. Since I'm working with XmlRpc I still have a lot of problems. If anyone has any advice or tips, please share.
Thank you -
Problem with importing jsp packages
Hi guys. I'm having a problem compiling a class that imports jsp packages.
I'm getting errors along the lines of:
C:\>javac HelloTag.java
HelloTag.java:4: package javax.servlet.jsp does not exist
import javax.servlet.jsp.*;
^
HelloTag.java:5: package javax.servlet.jsp.tagext does not exist
import javax.servlet.jsp.tagext.*;
- I've copied jsp-api.jar and servlet-api.jar to a folder that's in my path: C:\Program Files\Java\jre1.5.0_03\lib\ext
Any suggestion?
Thanks.U have to add the path into the classpath
set CLASSPATH=%CLASSPATH%;jsp-api.jar ....
the compile in the same cmd window
Do not use the CLASSPATH environment variable. Use the -classpath option while compiling and specify the path to your jar file.
javac -classpath <path to jar file> filename.javacheers,
ram. -
How to import JAR file into a class
I have a JAR file that i need to use the content of that file in another class. But when i use "import" syntax, the compiler list down the error that the class of the JAR file is not found.
For example,
import log4j;
after compile, the error is "Class log4j is not found in import".
Please help me. Thank youA common misconception of the import statement is that it would actually do something. Well, it doesn't. It is only a mark for the compiler that you would like to use the shorter name for the classes mentioned, instead of the fully qualified one. You could use the name "java.awt.datatransfer.Clipboard" everywhere you wanted to use the Clipboard class, did you "import" that package or not.
You don't have a class called "log4j" so the compiler complains that it can't find it. Instead, you have classes called org.apache.log4j.* (yes, you can use the * to substitute class names), IIRC. So you could use a import statement with "importorg.apache.log4j.*;" but you don't really have to.
Just make sure that java will found those classes.
http://java.sun.com/j2se/1.3/docs/tooldocs/findingclasses.html -
Import JWeb packages to JDeveloper
Is there any way to import JWeb packages to a JDeveloper project, such as
import oracle.html.*;
while there is no OAS installed on the same machine? The JDeveloper doesn't seem to include these oracle packages.No, and the docs say that you need to has OAS installed on the same machine to develop these sort of applications.
You can copy the jar files from the OAS machine into the project classpath for the JDeveloper and then simply use the import command to reference them. This should get you a clean compile, but you will not be able to debug or run it unless OAS is on the same machine. -
Which folder shall I put, when I import Jar file in the Apache?
Hi,
I m meeting a problem:
I need to import javax package in the jsp page, and I copy the relevant Jar file into WEB-INFO/lib folder, but it doesn't work: i execute the page in the IE explorer that is showed "import javax package is not found".
I don't the reason. Who can help me ? Urgent!
Thank you
AndrewThere is no "javax" package. However, there are quite a few "javax.something" packages. You have to give the whole package name to import it, you can't import a group of packages generically.
-
SAP Ides ECC 6.0 Install: Import ABAP - Package SAPDODS Error - ORA-00903
Experts,
Good Morning!
I'm trying to install SAP IDES ECC 6.0 version on a Windows 2008 R2 Server with Oracle 11g DB (11.2).
System Info: 16GM RAM & 600GB Hdd. Prereqs passed.
I'm getting the following error during the Import ABAP phase (16 of 29) in the sapinst log:
"An error occurred while processing option Enhancement Package 6 for SAP ERP 6.0 > SAP Application Server ABAP > Oracle > Central System > Central System( Last error reported by the step: Program 'Migration Monitor' exits with error code 103. "
Here's the dump of import_monitor.java.log
java version "1.4.2_32"
Java(TM) 2 Runtime Environment, Standard Edition (build 4.1.012)
SAP Java Server VM (build 4.1.012 1.6-b03, Oct 21 2011 14:18:45 - 41_REL - optU - windows amd64 - 6 - bas2:161688 (mixed mode))
Import Monitor jobs: running 1, waiting 1, completed 141, failed 0, total 143.
Loading of 'SAPDODS' import package: ERROR
Import Monitor jobs: running 0, waiting 1, completed 141, failed 1, total 143.
Here's the dump of import_monitor.log:
INFO: 2014-07-05 13:42:53
Data codepage 4103 is determined using TOC file 'C:\Target\Export1\DATA\D010TAB.TOC' for package 'D010TAB'.
TRACE: 2014-07-05 13:42:53 com.sap.inst.migmon.LoadTask run
Loading of 'SAPDODS' import package is started.
TRACE: 2014-07-05 13:42:53 com.sap.inst.migmon.LoadTask processPackage
Loading of 'SAPDODS' import package into database:
C:\usr\sap\AVV\SYS\exe\uc\NTAMD64\R3load.exe -i SAPDODS.cmd -dbcodepage 4103 -l SAPDODS.log -stop_on_error
ERROR: 2014-07-05 13:42:54 com.sap.inst.migmon.LoadTask run
Loading of 'SAPDODS' import package is interrupted with R3load error.
Process 'C:\usr\sap\AVV\SYS\exe\uc\NTAMD64\R3load.exe -i SAPDODS.cmd -dbcodepage 4103 -l SAPDODS.log -stop_on_error' exited with return code 2.
For mode details see 'SAPDODS.log' file.
Standard error output:
sapparam: sapargv(argc, argv) has not been called!
sapparam(1c): No Profile used.
sapparam: SAPSYSTEMNAME neither in Profile nor in Commandline
WARNING: 2014-07-05 13:43:21
Cannot start import of packages with views because not all import packages with tables are loaded successfully.
WARNING: 2014-07-05 13:43:21
1 error(s) during processing of packages.
INFO: 2014-07-05 13:43:21
Import Monitor is stopped.
Here's the log of SAPDODS...
C:\usr\sap\AVV\SYS\exe\uc\NTAMD64\R3load.exe: START OF LOG: 20140705134253
C:\usr\sap\AVV\SYS\exe\uc\NTAMD64\R3load.exe: sccsid @(#) $Id: //bas/720_REL/src/R3ld/R3load/R3ldmain.c#13 $ SAP
C:\usr\sap\AVV\SYS\exe\uc\NTAMD64\R3load.exe: version R7.20/V1.4 [UNICODE]
Compiled Aug 16 2011 02:26:36
patchinfo (patches.h): (0.098) DB6: correction for R3load PL 91 on HP-UX and SOLARIS (note 1609719)
process id 1488
C:\usr\sap\AVV\SYS\exe\uc\NTAMD64\R3load.exe -i SAPDODS.cmd -dbcodepage 4103 -l SAPDODS.log -stop_on_error
DbSl Trace: ORA-1403 when accessing table SAPUSER
(DB) INFO: connected to DB
(DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): UTF16
(SQL) INFO: Searching for SQL file SQLFiles.LST
(SQL) INFO: SQLFiles.LST not found
(SQL) INFO: Searching for SQL file C:\Target\Export1\DB/SQLFiles.LST
(SQL) INFO: C:\Target\Export1\DB/SQLFiles.LST not found
(SQL) INFO: Searching for SQL file DODS.SQL
(SQL) INFO: DODS.SQL not found
(SQL) INFO: Searching for SQL file C:\Target\Export1\DB/ORA/DODS.SQL
(SQL) INFO: found C:\Target\Export1\DB/ORA/DODS.SQL
(SQL) INFO: Trying to open C:\Target\Export1\DB/ORA/DODS.SQL
(SQL) INFO: C:\Target\Export1\DB/ORA/DODS.SQL opened
(DB) ERROR: DDL statement failed
(DROP TABLE "/BI0/APERS_BOD00")
DbSlExecute: rc = 103
(SQL error 942)
error message returned by DbSl:
ORA-00942: table or view does not exist
(IMP) INFO: a failed DROP attempt is not necessarily a problem
DbSl Trace: Error 903 in exec_immediate() from oci_execute_stmt(), orpc=0
DbSl Trace: ORA-00903 occurred at SQL stmt (parse error offset=15)
(DB) ERROR: DDL statement failed
( CREATE TABLE [/BI0/APERS_BOD00] ( [TCTUSERNM] nvarchar(000012) NOT NULL , [TCTOBJVERS] nvarchar(000001) NOT NULL , [TCTSYSID] nvarchar(000010) NOT NULL , [TCTQUACT] nvarchar(000001) NOT NULL , [TCTOBJNM] nvarchar(000040) NOT NULL , [TCTTLOGO] nvarchar(000004) NOT NULL , [RECORDMODE] nvarchar(000001) NOT NULL , [TCTTIMSTMP] nvarchar(000014) NOT NULL ) WITH ( DATA_COMPRESSION = PAGE ) )
DbSlExecute: rc = 99
(SQL error 903)
error message returned by DbSl:
ORA-00903: invalid table name
(DB) INFO: disconnected from DB
C:\usr\sap\AVV\SYS\exe\uc\NTAMD64\R3load.exe: job finished with 1 error(s)
C:\usr\sap\AVV\SYS\exe\uc\NTAMD64\R3load.exe: END OF LOG: 20140705134254
FYI - A retry does not help. Also tried to search for the error on scn, google but haven't been able to find the right solution.
Can you help?
Regards,
Cobain.Divyanshu - sorry to ask but can you explain why i need to update r3load and r3trans to resolve this error? Just want to understand why I'm doing a correction so I can learn from the same.
Also, can you clarify the file update process:
For R3load:
a) the r3load used by the command is dated 8/16/2011 (location:C:\usr\sap\AVV\SYS\exe\uc\NTAMD64\...)
b) the r3load i have in my db folder is dated 10/23/2011 (location:C:\Final\Installer\BS7i2011_Installation_Master_\DATA_UNITS\BS2011_IM_WINDOWS_X86_64\ORA\UC\...)
Do i replace (a) with (b)?
For R3trans:
How do I update this file?
- Cobain. -
Import support package SAPKB70015 at PI System is stuck on IMPORT_PROPER
Dear Expert,
I have some problem when import support package SAPKB70015 at PI System.
IT had shown as below.
Main import
Transport request : SAPKB70015
System : CXI
tp path : tp
Version and release: 372.04.08 700
sap_dext called with msgnr 4:
db call info
function: db_report_interface
fcode: UPDATE_REPORT
tabname: TEXT
len (char): 40
key: /OSP/CL_CJS_CONTEXT===========CP
retcode: 4
Main import
End date and time : 20081120021353
Ended with return code: ===> 12 <===
And I checked the transport log,It shown as below.
4 ETW690 COMMIT "360444" "53156878"
3 ETW674Xstart import of "LIMUCLSD/OSP/CL_CJS_CONTEXT" ...
4 ETW000 1 entry for TADIR updated (R3TRCLAS/OSP/CL_CJS_CONTEXT ).
4 ETW000 REPOS /OSP/CL_CJS_CONTEXT===========CP A replaced.
4 ETW000 dev trc ,00000 Thu Nov 20 02:13:53 2008 39924798 39.924798
4 ETW000 http://dbsloci. ,00000 *** ERROR => Cannot update a LOB column for more than one row piecewise
4 ETW000 85 39.924883
4 ETW000 dev trc ,00000 sc_p=0x110f57d68,no=55,idc_p=0x110f70638,con=0,act=1,slen=125,smax=256,#vars=5,stmt=0x111e1f700,tabl
e=REPOTEXT
4 ETW000 66 39.924949
4 ETW000 dev trc ,00000 prep=0,lit=0,nsql=0,lobret=1,#exec=1,dbcnt=2,upsh_p=(nil),ocistmth_p=0x111e20098
4 ETW000 53 39.925002
4 ETW000 dev trc ,00000 IN : cols=4,rmax=1,xcnt=1,rpc=0,rowi=0,rtot=1,upto=4294967295,rsize=84,vmax=32,bound=1,iobuf_p=0x111
0a4220,vda_p=0x111e21a60
4 ETW000 58 39.925060
4 ETW000 dev trc ,00000 lobs=1,lmax=4,lpcnt=0,larr=0x111e22180,lcurr_p=(nil),rret=0
4 ETW000 48 39.925108
4 ETW000 dev trc ,00000 OUT: cols=1,rmax=0,xcnt=0,rpc=0,rowi=0,rtot=0,upto=0,rsize=0,vmax=32,bound=0,iobuf_p=(nil),vda_p=0x1
11e222c0
4 ETW000 55 39.925163
4 ETW000 dev trc ,00000 lobs=1,lmax=4,lpcnt=0,larr=0x111e22220,lcurr_p=(nil),rret=2
4 ETW000 47 39.925210
4 ETW000 dev trc ,00000 UPDATE "REPOTEXT" SET "DATA" = :A0 WHERE "PROGNAME" = :A1 AND "R3STATE" = :A2 AND "LANGUAGE" = :A3
4 ETW000 51 39.925261
4 ETW000 dev trc ,00000 RETURNING "DATA" INTO :A4; 29 39.925290
4 ETW000 dbrepolo ,00735 ***LOG BZY=>unexpected return code 2 calling dbrepolo#? @ 735
4 ETW000 75 39.925365
2EETW000 sap_dext called with msgnr "4":
2EETW000 -
db call info -
2EETW000 function: db_report_interface
2EETW000 fcode: UPDATE_REPORT
2EETW000 tabname: TEXT
2EETW000 len (char): 40
2EETW000 key: /OSP/CL_CJS_CONTEXT===========CP
2EETW000 retcode: 4
1 ETP154 MAIN IMPORT
1 ETP110 end date and time : "20081120021353"
1 ETP111 exit code : "12"
1 ETP199 ######################################
System information
SAP = NW2004s SR3
Database = Oracle 10.2.0.2
OS versions = AIX 5.3
Tp version = 700 Unicode 179
R3trans version = 700 Unicode 183
PS.I checked tp connect return code 0 and R3trans u2013s return code 0
Could you please suggest how to fix this problem?
Thank you very much
JaturongIu2019ve updated database statistics and then try to reimport the package again. But It canu2019t import package.
Are you still getting the same error after you retry the statistics update? -
While Import support package getting error in R/3
Hi All,
I am getting one error following error while importing support package in R/3.
Open data extraction requests
The system has found a number of open data extraction requests.These should be processed before starting the object import process, as changes to DDIC structures could prevent data extraction requests from being read after the import, thus causing them to terminate. Call the Customizing Cockpit data extraction transaction and process all open extraction requests.
Can Anybody aware of this error. How do I delete the open data extraction process specified here.
Thx & Regds,
SGKHi,
I think I have to stop extraction process in LBWE or R/3. Can anybody tell me how to stop extraction process.
Thx & Regds,
SGK -
Error getting while importing support package in R/3
Hi All,
I am getting one error following error while importing support package in R/3.
Open data extraction requests
The system has found a number of open data extraction requests.These should be processed before starting the object import process, as changes to DDIC structures could prevent data extraction requests from being read after the import, thus causing them to terminate. Call the Customizing Cockpit data extraction transaction and process all open extraction requests.
Can Anybody aware of this error.
Thx & Regds,
SGKHi,
I think I have to stop extraction process in LBWE or R/3. Can anybody tell me how to stop extraction process.
Thx & Regds,
SGK -
Import support package SAPKB70015. Is stuck in IMPORT_PROPER phase
Dear Expert,
I have some problem when import support package SAPKB70015 at PI System.
IT had shown as below.
Main import
Transport request : SAPKB70015
System : CXI
tp path : tp
Version and release: 372.04.08 700
sap_dext called with msgnr 4:
db call info
function: db_report_interface
fcode: UPDATE_REPORT
tabname: TEXT
len (char): 40
key: /OSP/CL_CJS_CONTEXT===========CP
retcode: 4
Main import
End date and time : 20081120021353
Ended with return code: ===> 12 <===
And I checked the transport log,It shown as below.
4 ETW690 COMMIT "360444" "53156878"
3 ETW674Xstart import of "LIMUCLSD/OSP/CL_CJS_CONTEXT" ...
4 ETW000 1 entry for TADIR updated (R3TRCLAS/OSP/CL_CJS_CONTEXT ).
4 ETW000 REPOS /OSP/CL_CJS_CONTEXT===========CP A replaced.
4 ETW000 [dev trc ,00000] Thu Nov 20 02:13:53 2008 39924798 39.924798
4 ETW000 [dbsloci. ,00000] *** ERROR => Cannot update a LOB column for more than one row piecewise
4 ETW000 85 39.924883
4 ETW000 [dev trc ,00000] sc_p=0x110f57d68,no=55,idc_p=0x110f70638,con=0,act=1,slen=125,smax=256,#vars=5,stmt=0x111e1f700,tabl
e=REPOTEXT
4 ETW000 66 39.924949
4 ETW000 [dev trc ,00000] prep=0,lit=0,nsql=0,lobret=1,#exec=1,dbcnt=2,upsh_p=(nil),ocistmth_p=0x111e20098
4 ETW000 53 39.925002
4 ETW000 [dev trc ,00000] IN : cols=4,rmax=1,xcnt=1,rpc=0,rowi=0,rtot=1,upto=4294967295,rsize=84,vmax=32,bound=1,iobuf_p=0x111
0a4220,vda_p=0x111e21a60
4 ETW000 58 39.925060
4 ETW000 [dev trc ,00000] lobs=1,lmax=4,lpcnt=0,larr=0x111e22180,lcurr_p=(nil),rret=0
4 ETW000 48 39.925108
4 ETW000 [dev trc ,00000] OUT: cols=1,rmax=0,xcnt=0,rpc=0,rowi=0,rtot=0,upto=0,rsize=0,vmax=32,bound=0,iobuf_p=(nil),vda_p=0x1
11e222c0
4 ETW000 55 39.925163
4 ETW000 [dev trc ,00000] lobs=1,lmax=4,lpcnt=0,larr=0x111e22220,lcurr_p=(nil),rret=2
4 ETW000 47 39.925210
4 ETW000 [dev trc ,00000] UPDATE "REPOTEXT" SET "DATA" = :A0 WHERE "PROGNAME" = :A1 AND "R3STATE" = :A2 AND "LANGUAGE" = :A3
4 ETW000 51 39.925261
4 ETW000 [dev trc ,00000] RETURNING "DATA" INTO :A4; 29 39.925290
4 ETW000 [dbrepolo ,00735] ***LOG BZY=>unexpected return code 2 calling [dbrepolo#? @ 735]
4 ETW000 75 39.925365
2EETW000 sap_dext called with msgnr "4":
2EETW000 -
db call info -
2EETW000 function: db_report_interface
2EETW000 fcode: UPDATE_REPORT
2EETW000 tabname: TEXT
2EETW000 len (char): 40
2EETW000 key: /OSP/CL_CJS_CONTEXT===========CP
2EETW000 retcode: 4
1 ETP154 MAIN IMPORT
1 ETP110 end date and time : "20081120021353"
1 ETP111 exit code : "12"
1 ETP199 ######################################
System information
SAP = NW2004s SR3
Database = Oracle 10.2.0.2
OS versions = AIX 5.3
Tp version = 700 Unicode 179
R3trans version = 700 Unicode 183
PS.I checked tp connect return code 0 and R3trans u2013s return code 0
Could you please suggest how to fix this problem?
Thank you very much
JaturongHello Karthik
I know the list is long. Unfortunately I have never had such a long list of inactive objects in the system during an update or upgrade. But I believe you can make use of the mass activation program RADMASG0 to have them activated. The other option I can think of is to use the function module RS_INACTIVE_OBJECTS_LIST to list all the inactive objects and see whether they can be mass activated from there. I believe it is possible to activate all from there after selecting a block. (Never tried so I cannot guarantee).
Regards
RB -
OWB Can't Import Existing Package with Collection Data Type as Arguments
I created a package and compiled it successfully as the follows:
+++++++++++++++++++++++++++++
CREATE OR REPLACE PACKAGE PACKAGE_TEST AS
TYPE Num_LIST IS TABLE of NUMBER INDEX BY BINARY_INTEGER;
FUNCTION TEST_FUNCTION1 ( arg1 NUMBER, arg2 NUMBER) RETURN NUMBER;
FUNCTION TEST_FUNCTION2 ( args NUM_LIST) RETURN NUMBER;
END PACKAGE_TEST;
CREATE OR REPLACE PACKAGE BODY PACKAGE_TEST AS
FUNCTION TEST_FUNCTION1 ( arg1 NUMBER, arg2 NUMBER) RETURN NUMBER IS
ln_sum NUMBER;
BEGIN
ln_sum := arg1 + arg2;
RETURN ln_sum;
EXCEPTION
WHEN OTHERS THEN
RETURN -10000;
END TEST_FUNCTION1;
FUNCTION TEST_FUNCTION2 ( args NUM_LIST) RETURN NUMBER IS
ln_sum NUMBER;
BEGIN
ln_sum :=0;
FOR i IN 1.. args.COUNT LOOP
ln_sum := ln_sum + args( i );
END LOOP;
RETURN ln_sum;
EXCEPTION
WHEN OTHERS THEN
RETURN -10000;
END TEST_FUNCTION2;
END PACKAGE_TEST;
++++++++++++++++++++++++++++++++++++++++
Then I tried to import the package into OWB (9.2). The problem came: all the package body and
the specification of TEST_FUNCTION1 were imported, but the package specification of
TEST_FUNCTION2 couldn't be imported. The IMPORT FILTER gave an error message:
"TEST_FUNCTION2: Argument Data type is not supported".
How to resolve this problem? It is very import for our project, since we have to import some
packages with user_defined collection data types as arguments.
Thank you.
LushuHi Lushu,
Unfortunately this is indeed not supported and I would not know how to work around this one. The only way I guess that this would work is to not import it, and then use Expressions to call the function with inputs.
Jean-Pierre -
How to include 3rd party jar package in the native code aiming to generate ane for android
in my native java code,i need to reference a class in another jar package.Simply to say,i want to make use of member functions of a class of some jar package A in the call function of the native class which have implemented the FREFunction class.To generate the native extension,native java code needs to be compiled to a jar package B.i have tried serveral methods to compile jar package A into B.Howerver my flex project failed to proceed when calling function of package A in the call function of native java code.To be sure of the correctness of the package A and B,i referenced them in a java project with main function and succeeded. at the same time my other call functions of classes impemented FREFunction work well,Then, why did i fail referencing package A?
in the discussion http://forums.adobe.com/message/3965757, i found the same problem,but i was unable to get a workaround,can anybody give me same help?Standard Java does not support jars within other jars.
Either re-architect your stuff so jars in jars is eliminated, or write a custom classloader that can load from them, or look into 3rd-party solutions, which you can find by searching the net and these forums. -
How to import .jar files in order to use the classes within this file
hello guys,
I'm just wondering how can i import .jar files in order to uses the classes within this file.
let's take an example:
i have a folder in which I have many .jar files which contain classes to be called. the full path of this folder is set in the Classpath inside the enviroment variables.
so does anyone have any idea how can i import these .jar files so i can use the classes?
thank you.Hi,
My problem is that: I created a Serializable class in a project. And I added this project (first project) to another project (second project). First project is appearing in the second project' s Libraries folder. No problem. I want to create a jar file from second project. i.e. I want to Build second project (I use NetBeans IDE). I am using Build Main Project tab under Run. It is falling out. I am finding it second project' s jar file under its folder. I am clicking on it. But it is NOT WORKING. Do you know WHY. Could you help me please?
Thanks,
Maybe you are looking for
-
How to limit a specific value for an attribute in OIM during AD recon.
Hello, User with same attribute have diffrent values in target system. When trying to reconcile the user i wouod like to rconcile only one value but not all of them. Even though we reconcile all the values for that atribute, we do not want to display
-
I have an imac 27 inch O SX 10.6.8. using iphoto 11 Version 9.1.5. I have scanned some photos at very high resolution with each photo being about 45MB. They're saved to desktop. How can I reduce the size of the scanned photo's they are crashing iphot
-
Photos not appearing in photo stream album?
I have an iPhone 4. All aspects of iCloud work except for photo stream. When I take a photo with my iPhone it appears in the camera roll but doesn't get copied into the 'photo stream album'. Therefore it never gets synced across the cloud to my Macbo
-
Help! pictures too big for layer
When I add a photo to a new layer in elements 9, only a tiny bit of a corner shows up, and it fills the entire space! What do I need to do to have the whole photo appear in the layer?
-
ADVANCE RECEIPT FROM CUSTOMER (SPECIAL GL TRANSACTION)
hi guru's i wud like to know in and out process for Adavance Receipt from Customer under what curcumstances will receive advance amount what kind of entries will be passed and where it can be shown when we make sales order,how the delivery will happe