Which package is use for call jni
i call jni from java bean.
so which package is to be used
is there any
java.jni.*; --> ???
JNI is used to extend the functionality of the Java Virtual Machine through native code. Packages are used as a way of physically separating Java code in a logical fashion.
As the native code is not part of your Java code, it has no package, in fact any libraries (be it win32 dll's or another breed) are unlikely to be on your classpath at all. They have to be in your PATH (win32) or LD_LIBRARY_PATH for linux/unix. Have a read of the JNI tutorial on here, it is a great way to get you started.
Similar Messages
-
M2 Dual always asks which sim to use for calls
I have M2 dual, it always asks which sime to use when I make a phone call. I went into the seeting to set the default sim but the phone asks everytime. This is vwry annoying more espcially when you use it in the car, because you always have to select the im on the phone.
This is not possible.
If i have helped at all a click on the white star below would be nice thanks.
Now using the Lumia 1520 -
Interface/class which can be used for obtaining exchange rates of currency
Is there any interface or class in the java package which can be used for obtaining current exchange rates of currencies ?
Yes. The people at Sun change the static fields every day to reflect the current prices on the world currency markets at GMT 12:00. Then every day all the java programmers around the world reinstall a new JDK that contains the updated class. The class is called:
EuroDollarDollarEuroDollarYenYenDollarYenEuroEuroYenRubleDollarDollarRuble
To access the Euro-Dollar exchange rate, you write:
EuroDollarDollarEuroDollarYenYenDollarYenEuroEuroYenRubleDollarDollarRuble.EURODOLLAR -
I'm using two displays and several desktops on my Mac (OS X 10.9.4).
When I need to restart Firefox, it remembers to open windows from last session in correct display, but does not remember which desktop was used for each window. So when the application starts, it opens all windows on a desktop which is currently active instead of reopening them on desktops used during the last session. How to fix the issue?Hi Nerva,
Thank you for your question, there is a add on I have been recommended to custom set up of opening windows in new monitors. It's called [https://addons.mozilla.org/en-US/firefox/addon/monitor-master/ Monitor Master].
However, in regards to the session remembering which monitor the window was open in, in the profile folder there is a file that stores window positions and dimensions. It is called localstore.rdf.
Please stay tuned for more investigation, as there are definitely bugs on file for similar issues. Pinpointing it is the hard part. -
Which function is used for adding days to given month
which function is used for adding days to given month
Hi Jagrut,
Good ... Check out the following examples
<b>Get a date</b>
DATE_GET_WEEK Returns week for a date
WEEK_GET_FIRST_DAY Returns first day for a week
RP_LAST_DAY_OF_MONTHS Returns last day of month
FIRST_DAY_IN_PERIOD_GET Get first day of a period
LAST_DAY_IN_PERIOD_GET Get last day of a period
RP_LAST_DAY_OF_MONTHS Determine last day of month
<b>Date calculations</b>
DATE_COMPUTE_DAY Returns a number indicating what day of the week the date falls on. Monday is returned as a 1, Tuesday as 2, etc.
DATE_IN_FUTURE Calculate a date N days in the future.
RP_CALC_DATE_IN_INTERVAL Add days/months to a date
RP_CALC_DATE_IN_INTERVAL Add/subtract years/months/days from a date
SD_DATETIME_DIFFERENCE Give the difference in Days and Time for 2 dates
MONTH_PLUS_DETERMINE Add or subtract months from a date. To subtract a month, enter a negative value for the 'months' parameter.
DATE_CREATE Calculates a date from the input parameters:
Example: DATE_CREATE
CALL FUNCTION 'DATE_CREATE'
EXPORTING
anzahl_jahre = 1
anzahl_monate = 2
anzahl_tage = 3
datum_ein = '20010101'
IMPORTING
datum_aus = l_new_date.
Result:
l_new_date = 20020304
Example: MONTH_PLUS_DETERMINE
data: new_date type d.
CALL FUNCTION 'MONTH_PLUS_DETERMINE'
EXPORTING
months = -5 " Negative to subtract from old date, positive to add
olddate = sy-datum
IMPORTING
NEWDATE = new_date.
write: / new_date.
<b>Hollidays</b>
HOLIDAY_GET Provides a table of all the holidays based upon a Factory Calendar &/ Holiday Calendar.
HOLIDAY_CHECK_AND_GET_INFO Useful for determining whether or not a date is a holiday. Give the function a date, and a holiday calendar, and you can determine if the
date is a holiday by checking the parameter HOLIDAY_FOUND.
Example: HOLIDAY_CHECK_AND_GET_INFO
data: ld_date like scal-datum default sy-datum,
lc_holiday_cal_id like scal-hcalid default 'CA',
ltab_holiday_attributes like thol occurs 0 with header line,
lc_holiday_found like scal-indicator.
CALL FUNCTION 'HOLIDAY_CHECK_AND_GET_INFO'
EXPORTING
date = ld_date
holiday_calendar_id = lc_holiday_cal_id
WITH_HOLIDAY_ATTRIBUTES = 'X'
IMPORTING
HOLIDAY_FOUND = lc_holiday_found
tables
holiday_attributes = ltab_holiday_attributes
EXCEPTIONS
CALENDAR_BUFFER_NOT_LOADABLE = 1
DATE_AFTER_RANGE = 2
DATE_BEFORE_RANGE = 3
DATE_INVALID = 4
HOLIDAY_CALENDAR_ID_MISSING = 5
HOLIDAY_CALENDAR_NOT_FOUND = 6
OTHERS = 7.
if sy-subrc = 0 and
lc_holiday_found = 'X'.
write: / ld_date, 'is a holiday'.
else.
write: / ld_date, 'is not a holiday, or there was an error calling the function'.
endif.
Checking dates
DATE_CHECK_PLAUSIBILITY Check to see if a date is in a valid format for SAP. Works well when validating dates being passed in from other systems.
Converting dates
DATE_CONV_EXT_TO_INT Conversion of dates to SAP internal format e.g. '28.03.2000' -> 20000328 Can also be used to check if a date is valid ( sy-subrc <> 0 )
Function to return literal for month
he table you want to use is T247. You can also use the function MONTH_NAMES_GET.
You can also try table T015M. It has the month number in it's key.
Formatting
DATUMSAUFBEREITUNG Format date as the user settings
Other
MONTH_NAMES_GET It returns all the month and names in repective language.
Good Luck and thanks
AK -
Which method is used for event creation
Dear All,
My client has more then one Purchase Organization. Workflow for Purchase order release very from pur org to pur org. For example - workflow WS92000030 is trigger when PO is created for India pur org where as workflow WS92000021 is trigger when PO is created for US pur org.
I checked and found that same Object Type - BUS2012 & event - RELEASESTEPCREATED is used in all Pur. Org PO release workflow. Also I found in Transaction code - SWETYP that Type linkage activate for BUS2012, RELEASESTEPCREATED in all the PO workflow - WS92000030 & WS92000021.
As per my knowledge, event can be created in various way such as Function module, Change document, General status management, Business Transaction Events etc.
Can some one guide me, how can I found that which method is used for event creation in different pur org?
How can I fould what is the fuctional module used for event creation if Fuctional module used for event creation.
For your information, I can see in T. Code - SWUO that 'Result dependent on a check function module' for all the workflow - WS92000030, WS92000021 etc.
Thanks inHi Sahu,
I dont think they have used the Function module or change document or any other kind of methods to trigger the workflow. This is because RELEASESTEPCREATED method is a standard method and it will be triggered by standard SAP. They can not make changes in standard sap saying RELEASESTEPCREATED should be triggered for this Purchase Org .
Istead what i think is, they might have given the Event Condition for each workflow.
In SWDD>> basic settings>> Start Events, we can give condition on triggering the workflow.
Please check this.
Regards,
Gautham -
Which CKM is used for moving data from Oracle to delimited file ?
Hi All
Please let me know Which CKM is used for moving data from Oracle to delimited file ?
Also is there need of defining each columns before hand in target datastore. Cant ODI take it from the oracle table itself ?Addy,
A CKM is a Check KM which is used to validate data and log errors. It is not going to assist you in data movement. You will need an LKM SQL to File append as answered in another thread.
Assuming that you have a one to one mapping, to make things simpler you can duplicate the Oracle based model and create a file based model. This will take all the column definitions from the Oracle based model.
Alternatively, you can also use an ODI tool odiSQLUnload to dump the data to a file
HTH -
How to specify which cert to use for software virt server?
Is there a way to specify which certificate to use for each software virtual server? So, for example a user hitting https://somewhere.com would get the certificate for somewhere.com while the virtual server https://somewhereelse.com would use the certifcate with the name somewhereelse.com in it?
No, this is not possible due to limitations of the underlying protocols.
HTTP requests are sent over TCP connections which deal with IP addresses and port numbers (i.e. hardware virtual server properties), not hostnames (i.e. software virtual server properties). The HTTP protocol adds software virtual server support by allowing a client to identify the hostname (e.g. "www.iplanet.com") of the server it wishes to communicate with. This is achieved by including a "Host:" header with each HTTP request.
Unfortunately, the SSL/TLS protocols require that the web server present its SSL/TLS certificate BEFORE the client sends its HTTP request. Since the software virtual server information is contained in the HTTP request, it is not possible for the server to select different certificates for different software virtual servers.
You will need to use hardware virtual servers (i.e. virtual servers that have different IP addresses and/or port numbers) if you wish to use distinct SSL/TLS certificates. -
I am trying to enter the No. Of my VISA card (which I normaly use for payments) in the billing info of my account and it is not accepted. Does anyone have any idea why?
JarleEkanger wrote:
How about this? Use Delete array subset to extract chunks for averaging, and a shift register to retain the remaining array.
It is typically not advisable to use "delete from array" in a tight loop. The constant memory reallocations due to array resizing are probably inefficient.
Here's one simple way to do it..
(If the number of points is not divisible by 10, the excess tail is discarded. You can easily modify that behavior if desired.)
LabVIEW Champion . Do more with less code and in less time .
Attachments:
averages of 10.png 5 KB
averages of 10.vi 9 KB -
Which cable should use for Sony DV connect to iMac ?
Which cable should use for Sony DV(IEEE 1394)connect to iMac ?
If your iMac has just the FireWire 800 connection, you will need the 9 pin to 4 pin cable.
http://www.cwol.com/firewire/firewire-800-1394b-cables.htm
If your iMac has the FireWire 400 connection, you will need the 6 pin to 4 pin cable.
http://www.radtech.us/Products/ProCableFW400800.aspx
Links are to illustrate examples. You should be able to pick them up at most computer stores. -
have a Comcast system and am going through a Bose amp for sound. The comcast box has an HDMI port which I've used for the Apple TV connection. Nothing works! Help.
Thanks. Thought that would be the solution but for my wall mounted TV it's going to be a problem but many thanks for your reply.....
-
Is there a custom function available which can be used for logging errors captured in a sp during and after execution in a sql table?
Basically we would like to utilize such function in every sp and log errors of each sp in a error log table
MudassarThanks .
I was able to write this however I am thinking I am missing something
CREATE FUNCTION testfunction1()
RETURNS @temp_error TABLE (
id int identity(1,1),
procedure_name varchar(255),
line_number int,
error_number int,
error_message varchar(max),
error_state int,
error_severity int,
occurence_datetime datetime default current_timestamp,
user_name sysname default suser_name(),
login_name sysname default suser_name()
AS
BEGIN
insert @temp_error(procedure_name,line_number,error_number,error_message,error_state,error_severity)
select error_procedure(),error_line(),error_number(),error_message(),error_state(),error_severity()
RETURN;
END;
CREATE TYPE test_type AS TABLE(
id int identity(1,1),
procedure_name varchar(255),
line_number int,
error_number int,
error_message varchar(max),
error_state int,
error_severity int,
occurence_datetime datetime default current_timestamp,
user_name sysname default suser_name(),
login_name sysname default suser_name()
GO
create proc usp_error_test
@test_type AS test_type READONLY
as
begin
begin try
select 1/0
end try
begin catch
select * from testfunction1(@test_type)
end catch
end
Mudassar -
Which frame is used for movie preview?
Which frame is used for a home movie preview, takin with an iPhone 4s? I guess the question is, is there a way to specify the frame of the movie which is used for the preview?
-ThanksI would have a look at
Gallery
Demo or at the site of a friend of mine
http://www.schutte.name -
B2B software package you use for AS2
Hi All,
We are using Oracle 10G B2B. We are adding a new supplier. Our new supplier asks " what is your B2B software package you use for AS2"
I said " Application server integration B2B of version 10.1.2.3.0", then immediately he replied
"I could not find Oracle Application Server Integration B2B 10.1.2.3 listed on the Drummond Group website for AS2 interoperability certification. Would the software package be listed under another name?"
Could you please help us to reply his question..Hi,
Ask your supplier to check the AS2-3Q05 report of Drummond group. It is available at below link -
http://www.drummondgroup.com/html-v2/as2-archive.html
You can find Oracle Application Server 10g (10.1.2) listed here. Also give him the refernce of below doc -
http://www.drummondgroup.com/pdfs/AS2_5.05.04_Final_release.pdf
Regards,
Anuj -
Which dictionary is used for spell check.
Hi,
I wanted to find out which dictionary is used for spell check? Is it Miriam Webster? My product manager and myself are curious.
Regards.
Ram.Hi Ram,
Its ApEx Dictionary.
Thanks
Rana
Maybe you are looking for
-
when i try to open itunes on windows keeps saying apple application is required to run itunes error 2 windows error 2
-
Cant get itunes to install it keeps saying HRESULT:0x80073712 please help!!!
I cant get itunes to install on my computer. I uninstalled it and now it wont let me reinstall. It keeps saying error HRESULT:0x80073712 please HELP!!
-
My Location/Search Bar has no memory. It does not remember what I type in.
My Location/Search Bar has no memory. It does not remember what I type in it when I am doing Google Searches. I have had this problem for over a week now.
-
We have our EJB's deployed in EAR file which deploys correctly in Oracle 10.1.2. When I try to deploy the same ear file in Oracle 10.1.3 using GUI deployer I get error message of invalid archive file. If I use admin.jar to deploy the same file, I can
-
SOS:i have a problem with svrmgrl..?!
hello all, my problem is when i want to run svrmgrl i have the following message. error in loading shared library libwtc8.so:cannot open shared object file:No such file or directory. what is the problem? can i resolve it? thank's a lot