Need help on java Telephony package
Hello Friends,
I am involved in a telephony software development...and I want to use JTAPI for it...but Iam encountering a very basic problem...Iam having jdk1.3 installed in my PC...but whenever I import the javax.telephony.* package,I get an error 'cannot resolve symbol'...please tell me what is the solution for it...also what changes I need to make in path setting so that I can implement it...ie...which jar file I need to include in the classpath...I would like to know if any good guiding tutorial is available for it on the net...
Ashish
Hello freddyrb!
First, you need to download JTAPI from java.sun.com,
because it don't present neither in the standard jdk nor jre.
But, the JTAPI kit is only a bunch of INTERFACES so
you need some implementation, which Sun didn't (and imho shouldn't) provide.
And the problem is a lack of JTAPI implementations.
The only one i have heard of is a some fake system from alphaworks (http://www.alphaworks.ibm.com/aw.nsf/FAQs/j323engine).
No of hardware providers did gladden us with a JTAPI port (at least as of fall of 2000, the last time i checked it). BTW, if someone knows of any JTAPI-enabled yet not too exotic hardware, let me know, please, serge(AT)zolshar.ru.
As for JTAPI over a modem, i heard of an implementation of JTAPI over TAPI but now the project is dead.
Look also here
http://free-jtapi.westhawk.co.uk/
Similar Messages
-
I need help with compiling different packages
I've just downloaded j2sdk1.4.0_03 and when i use
import TerminalIO.KeyboardReader;
it says : package TerminalIO does not exist;
and it also has a problem with KeyboardReader.
Please help me!The TerminalIO is not part of standard java classes. Some one must have given that to you, or needs to give it to you. It might be in a jar file. Without knowing what/where the TerminalIO package is, it is difficult to help you.
If the package is in a jar, then you need to include the jar in your Classpath when you compile. If it is not in a jar, then the directory that contains the TerminalIO directory needs to be in the Classpath.
http://java.sun.com/docs/books/tutorial/java/interpack/packages.html -
RE: Need Help in Java~!!
Hi to all developers,
I have a problem here. Hope you guys can help me!!
Basically, i need to generate a report or charts based on the search criteria.
For example: I do a search for a transaction for the month of May 2005, then it will display my search results and when i click a button, it will be able to generate a chart/ report for the transaction for the month of May 2005.
I hope there is someone that can provide me a url or sample codes/application like what i am doing now to guide me along. At least, i won't be so lost.
PS: Actually, my boss asked me to used SQL Server 2005 Reporting Services to generate charts/reports but the problem i faced is how to integrate my reports that i do to my java application.
Thks,
CelineHow much help do you want?
. . . when i click a button, . . . How well do you understand GUI programming?
. . . my boss asked me to used SQL Server 2005 Reporting Services . . .Are you familiar with the java.sql package? -
Help with Java.Sql package download
I am compiling some java files with the following :
import java.sql.*
and getting errors. I realize I need the java.sql package. Can anyone help me by pointing out where I can download the package?
Thanks.
Murthy GandikotaThis package comes with the JDK. what are your specific problems.
-
I need help to run this package and i got some error
create or replace
PACKAGE BODY SUBS_INS_API_sun
AS
PROCEDURE SUBSCRIBER_INS_sun
(SOURCE_SYS_ID IN VARCHAR2,
TRACKING_ID IN VARCHAR2,
ACCOUNT_NO IN VARCHAR2,
prepaidActDevDetails_tab IN prepaidactdvcdetailsobj_sun,
ERROR_CODE OUT VARCHAR2)
IS
Input_Parameter_Is_Null EXCEPTION;
pragma exception_init(Input_Parameter_Is_Null,-2000);
prepaidAccountDetails prepaidActDevDetails_tab:= prepaidActDevDetails_tab(NULL,NULL,NULL,NULL,NULL);
STATUS VARCHAR2(1):='1';
cust_no VARCHAR(10);
m_mac_id VARCHAR2(20);
subscriber_master_Rec subscriber_master%ROWTYPE :=NULL;
flg NUMBER(1);
BEGIN
IF(Source_Sys_Id IS NULL OR Tracking_Id IS NULL OR ACCOUNT_NO IS NULL OR prepaidAccountDetails.LAST=0) THEN
RAISE Input_Parameter_Is_Null;
END IF;
BEGIN
select cm_cust_no into cust_no from customer_master where cm_cust_id=ACCOUNT_NO and cm_status in('A','P','0');
EXCEPTION
WHEN NO_DATA_FOUND THEN
DBMS_OUTPUT.PUT_LINE('NO DATA FOUND');
STATUS:='0';
END;
BEGIN
FOR i IN prepaidAccountDetails.FIRST .. (prepaidAccountDetails.LAST) LOOP
prepaidAccountDetails1:=prepaidActDevDetails_tab(i);
prepaidAccountDetails1.Status_of_device:='1';
IF (prepaidAccountDetails.Account_id is NULL OR prepaidAccountDetails.Mac_Id is NULL or prepaidAccountDetails.LOB_value is NULL) THEN
RAISE Input_Parameter_Is_Null;
END IF;
IF(prepaidAccountDetails.LOB_value = 'VDO') THEN
IF(prepaidAccountDetails.Channel_Line_Up is NULL) THEN
Error_code :='SI002';
DBMS_OUTPUT.PUT_LINE('NO DATA FOUND');
STATUS:=0;
prepaidAccountDetails.Status_of_device:='0';
END IF;
END IF;
begin
select 1 into flg from subscriber_master where pm_phone_no=prepaidAccountDetails.Mac_Id and pm_status in('P','0','A','B');
EXCEPTION
WHEN NO_DATA_FOUND THEN
flg:=0;
END;
if(flg=1) then
DBMS_OUTPUT.PUT_LINE('NO DATA FOUND');
STATUS:=0;
prepaidAccountDetails.Status_of_device:='0';
END IF;
begin
select md_mac_id into m_mac_id from mac_details where md_mac_id=prepaidAccountDetails.Mac_Id and md_start_date<=sysdate
and md_status='A';
EXCEPTION when OTHERS then
Error_code :='SI004';
DBMS_OUTPUT.PUT_LINE('NO DATA FOUND');
STATUS:=0;
prepaidAccountDetails.Status_of_device:='0';
end;
if(STATUS= 1 and prepaidAccountDetails.Status_of_device='1') then
SELECT PM_SUBS_ACT_NO_SEQ.nextval
INTO subscriber_master_rec.PM_SUBS_ACT_NO
FROM dual;
subscriber_master_Rec.pm_phone_no :=prepaidAccountDetails.Mac_Id;
subscriber_master_Rec.pm_open_date :=sysdate;
subscriber_master_rec.pm_status :='P';
subscriber_master_rec.PM_CUST_LVL_YN:='S';
subscriber_master_rec.PM_EQUP_CODE:=prepaidAccountDetails.LOB_value;
subscriber_master_rec.PM_HOME_AREA:='HOM';
subscriber_master_rec.PM_USG_CODE:='USG';
subscriber_master_rec.PM_NO_TYPE:='S';
subscriber_master_rec.PM_TCG_CODE:='DEF';
subscriber_master_rec.PM_APLN_DATE:=sysdate;
subscriber_master_rec.PM_USER2:=prepaidAccountDetails.LOB_value;
subscriber_master_rec.PM_USER3:=prepaidAccountDetails.Channel_Line_Up;
subscriber_master_rec.pm_cust_no:=cust_no;
INSERT INTO subscriber_master VALUES subscriber_master_rec;
END IF;
END LOOP;
END;
END SUBSCRIBER_INS_sun;
END SUBS_INS_API_sun;
and
i got this error
Package Body PREPAID_TESTNEW.SUBS_INS_API@PREPAID_TESTNEW
Error(73,4): PL/SQL: Statement ignored
Error(73,99): PLS-00302: component 'LAST' must be declared
Error(87,6): PL/SQL: Statement ignored
Error(87,37): PLS-00302: component 'FIRST' must be declared
please help to run this package if anyone knowsnow i corrected my package. It working fine. But, how to run this package via procedure. my procedure check below. I give all the details about my package check below.
---pkg specification
create or replace
PACKAGE SUBS_INS_API_SS
IS
PROCEDURE SUBSCRIBER_INS_SS
(SOURCE_SYS_ID IN VARCHAR2,
TRACKING_ID IN VARCHAR2,
ACCOUNT_NO IN VARCHAR2,
prepaidActDevDetails_tab IN prepaidActDeviceDetails_tabobj,
ERROR_CODE OUT VARCHAR2);
END SUBS_INS_API_SS;
-----pkg body
create or replace
PACKAGE BODY SUBS_INS_API_SS
AS
PROCEDURE log_error (ip_code IN VARCHAR2,
ip_message IN VARCHAR2,
ip_description IN VARCHAR2)
IS
BEGIN
INSERT INTO ERR_LOG (IEL_REF_ID,
IEL_DATE,
IEL_CODE,
IEL_MSG,
IEL_DESC)
VALUES (IVRS_ERR_LOG_SEQ.NEXTVAL,
SYSDATE,
ip_code,
ip_message,
ip_description);
EXCEPTION
WHEN OTHERS
THEN
ROLLBACK;
END log_error;
PROCEDURE INSERT_WS_LOG (SOURCE_SYS_ID IN VARCHAR2,
STATUS IN VARCHAR2,
TRACKING_ID IN VARCHAR2,
ACCOUNT_ID IN VARCHAR2,
MAC_ID IN VARCHAR2)
IS
ws_log_rec WS_LOG%ROWTYPE := NULL;
BEGIN
SELECT WS_LOG#REC#ID.NEXTVAL INTO ws_log_rec.rec#id FROM DUAL;
ws_log_rec.VER#ID := 1;
ws_log_rec.CRE#TS := SYSDATE;
ws_log_rec.wl_source := SOURCE_SYS_ID;
ws_log_rec.wl_status := Status;
ws_log_rec.wl_tracking_id := tracking_id;
ws_log_rec.wl_account_id := account_id;
ws_log_rec.wl_mac_id := mac_id;
INSERT INTO ws_log
VALUES ws_log_rec;
EXCEPTION
WHEN OTHERS
THEN
ROLLBACK;
END INSERT_WS_LOG;
PROCEDURE REPLICO_DEV_INFO( Acc_id IN VARCHAR2, Mc_Id IN VARCHAR2,channel IN VARCHAR2,
LOB_VAL IN VARCHAR2, outlet1 IN VARCHAR2, kit_cod IN VARCHAR2,
serial_No IN VARCHAR2, shipperr IN VARCHAR2, estm_recived_date IN date)
IS
Replico_device_info_det_Rec Replico_device_info_det%ROWTYPE := NULL;
REC_ID NUMBER;
BEGIN
SELECT REPLICO_DEVICE_INFO_DET#RECID.nextval INTO REC_ID FROM dual;
Replico_device_info_det_Rec.REC#ID := REC_ID;
Replico_device_info_det_Rec.ACCOUNT_ID := Acc_id;
Replico_device_info_det_Rec.MAC_ID := Mc_Id;
Replico_device_info_det_Rec.CHANNEL_LINE_UP := channel;
Replico_device_info_det_Rec.LOB_VALUE := LOB_VAL;
Replico_device_info_det_Rec.OUTLET := outlet1;
Replico_device_info_det_Rec.KIT_CODE := kit_cod;
Replico_device_info_det_Rec.SERIAL_NUMBER := serial_No;
Replico_device_info_det_Rec.SHIPPER := shipperr;
Replico_device_info_det_Rec.ESTIMATED_RECIVED_DATE := estm_recived_date;
INSERT INTO replico_device_info_det
VALUES Replico_device_info_det_Rec;
EXCEPTION
WHEN OTHERS
THEN
ROLLBACK;
END REPLICO_DEV_INFO;
PROCEDURE SUBSCRIBER_INS_SS (
SOURCE_SYS_ID IN VARCHAR2,
TRACKING_ID IN VARCHAR2,
ACCOUNT_NO IN VARCHAR2,
prepaidActDevDetails_tab IN prepaidActDeviceDetails_tabobj,
ERROR_CODE OUT VARCHAR2)
IS
Input_Parameter_Is_Null EXCEPTION;
PRAGMA EXCEPTION_INIT (Input_Parameter_Is_Null, -2000);
prepaidAccountDetails prepaid_act_dvc_details_obj
:= prepaid_act_dvc_details_obj (NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL);
STATUS VARCHAR2 (1) := '1';
cust_no VARCHAR (10);
m_mac_id VARCHAR2 (20);
channel_lineup VARCHAR2 (25);
LOB_VALUE VARCHAR2 (25);
subscriber_master_Rec subscriber_master%ROWTYPE := NULL;
Replico_device_info_det_Rec Replico_device_info_det%ROWTYPE := NULL;
flg NUMBER (1);
plan_code VARCHAR2(10);
subs_aact_no NUMBER(20);
m_plan_code1 payment_transaction_history.TH_PLAN_CODE%type;
m_payment_mode1 payment_transaction_history.TH_PAYMENT_MODE%type;
pm_phone_no_cur subscriber_master.pm_phone_no%type;
pm_status_cur subscriber_master.pm_status%type;
pm_user2_cur subscriber_master.pm_user2%type;
pm_user9_cur subscriber_master.pm_user9%type;
pm_cust_no_cur subscriber_master.pm_cust_no%type;
pm_cust_1 subscriber_master.pm_cust_no%type;
cm_i customer_master.cm_status%type;
CURSOR subs_rec is select pm_cust_no, pm_phone_no, pm_status, pm_user2, pm_user9 from subscriber_master
where pm_cust_no = cust_no and pm_status= 'S';
BEGIN
IF ( Source_Sys_Id IS NULL
OR Tracking_Id IS NULL
OR ACCOUNT_NO IS NULL
OR prepaidActDevDetails_tab.LAST = 0)
THEN
RAISE Input_Parameter_Is_Null;
END IF;
BEGIN
SELECT cm_cust_no
INTO cust_no
FROM customer_master
WHERE cm_cust_id = ACCOUNT_NO AND cm_status IN ('A', 'P', '0');
EXCEPTION
WHEN NO_DATA_FOUND
THEN
ERROR_CODE := 'SI001';
log_error ('SI001',
SQLERRM,
'No Customer exist with Active or Pre Actiavted');
INSERT_WS_LOG (Source_Sys_Id,
'F',
Tracking_Id,
Account_No,
prepaidAccountDetails.Mac_Id);
STATUS := '0';
END;
BEGIN
FOR i IN prepaidActDevDetails_tab.FIRST ..
(prepaidActDevDetails_tab.LAST)
LOOP
prepaidAccountDetails := prepaidActDevDetails_tab (i);
prepaidAccountDetails.Status_of_device := '1';
IF ( prepaidAccountDetails.Account_id IS NULL
OR prepaidAccountDetails.Mac_Id IS NULL
OR prepaidAccountDetails.LOB_value IS NULL)
THEN
RAISE Input_Parameter_Is_Null;
END IF;
IF (prepaidAccountDetails.LOB_value = 'VIDEO')
THEN
/* Commented as channel lineup is not coming from the input request */
/*IF(prepaidAccountDetails.Channel_Line_Up is NULL) THEN
Error_code :='SI002';
log_error ('SI002', SQLERRM, 'Channel line up is mandatory for Video');
INSERT_WS_LOG(Source_Sys_Id,'F',Tracking_Id,Account_No,prepaidAccountDetails.Mac_Id);
STATUS:=0;
prepaidAccountDetails.Status_of_device:='0';
END IF;*/
SELECT EC_CHANNEL_LINEUP
INTO channel_lineup
FROM ELIGIBLE_CUSTOMER
WHERE EC_CUSTOMER_NO = cust_no;
END IF;
BEGIN
SELECT 1
INTO flg
FROM subscriber_master
WHERE pm_phone_no = prepaidAccountDetails.Mac_Id
AND pm_status IN ('P', '0', 'A', 'B');
EXCEPTION
WHEN NO_DATA_FOUND
THEN
flg := 0;
END;
IF (flg = 1)
THEN
ERROR_CODE := 'SI003';
log_error ('SI003',
SQLERRM,
'Customer Already Exist with given Mac Id');
INSERT_WS_LOG (Source_Sys_Id,
'F',
Tracking_Id,
Account_No,
prepaidAccountDetails.Mac_Id);
STATUS := 0;
prepaidAccountDetails.Status_of_device := '0';
END IF;
BEGIN
SELECT md_mac_id
INTO m_mac_id
FROM mac_details
WHERE md_mac_id = prepaidAccountDetails.Mac_Id
AND md_start_date <= SYSDATE
AND md_status = 'A';
EXCEPTION
WHEN OTHERS
THEN
ERROR_CODE := 'SI004';
log_error ('SI004', SQLERRM, 'Invalid Mac Id');
INSERT_WS_LOG (Source_Sys_Id,
'F',
Tracking_Id,
Account_No,
prepaidAccountDetails.Mac_Id);
STATUS := 0;
prepaidAccountDetails.Status_of_device := '0';
END;
select pm_cust_no into pm_cust_1 from subscriber_master where pm_cust_no = cust_no;
IF (STATUS = 1 AND prepaidAccountDetails.Status_of_device = '1')
THEN
SELECT DECODE (prepaidAccountDetails.LOB_value,
'HSD', 'HSD',
'VIDEO', 'VDO')
INTO LOB_VALUE
FROM DUAL;
OPEN subs_rec;
LOOP
FETCH subs_rec into pm_cust_no_cur, pm_phone_no_cur, pm_status_cur, pm_user2_cur, pm_user9_cur;
IF subs_rec%FOUND THEN
IF
( pm_cust_1 = pm_cust_no_cur and pm_user2_cur= LOB_VALUE and pm_user9_cur = prepaidAccountDetails.outlet and pm_status_cur = 'S')
THEN
update subscriber_master set pm_phone_no = prepaidAccountDetails.Mac_Id, pm_status = 'P', pm_name = prepaidAccountDetails.Mac_Id
where pm_cust_no = pm_cust_no_cur and pm_user9 = prepaidAccountDetails.outlet;
select cm_status into cm_i from customer_master where cm_cust_no = pm_cust_no_cur;
IF( cm_i = '0')
THEN
update customer_master set cm_status = 'P' where cm_cust_no = pm_cust_no_cur;
END IF;
REPLICO_DEV_INFO( prepaidAccountDetails.Account_id, prepaidAccountDetails.Mac_Id,channel_lineup,
prepaidAccountDetails.LOB_value, prepaidAccountDetails.outlet, prepaidAccountDetails.kit_code,
prepaidAccountDetails.serial_Number, prepaidAccountDetails.shipper,prepaidAccountDetails.estimated_recived_date);
ELSIF
( pm_cust_1 = pm_cust_no_cur and pm_user2_cur= LOB_VALUE and pm_user9_cur = null and pm_status_cur = 'S')
THEN
update subscriber_master set pm_phone_no = prepaidAccountDetails.Mac_Id, pm_status = 'P', pm_name = prepaidAccountDetails.Mac_Id, pm_user9 = prepaidAccountDetails.outlet
where pm_cust_no = pm_cust_no_cur and pm_user9 = NULL;
update customer_master set cm_status = 'P' where cm_cust_no = pm_cust_no_cur;
REPLICO_DEV_INFO( prepaidAccountDetails.Account_id, prepaidAccountDetails.Mac_Id,channel_lineup,
prepaidAccountDetails.LOB_value, prepaidAccountDetails.outlet, prepaidAccountDetails.kit_code,
prepaidAccountDetails.serial_Number, prepaidAccountDetails.shipper,prepaidAccountDetails.estimated_recived_date);
END IF;
ELSIF subs_rec%NOTFOUND THEN
SELECT PM_SUBS_ACT_NO_SEQ.NEXTVAL
INTO subs_aact_no
FROM DUAL;
subscriber_master_rec.PM_SUBS_ACT_NO := subs_aact_no;
subscriber_master_Rec.pm_phone_no :=
prepaidAccountDetails.Mac_Id;
subscriber_master_Rec.pm_open_date := SYSDATE;
subscriber_master_rec.pm_status := 'P';
subscriber_master_rec.PM_CUST_LVL_YN := 'S';
subscriber_master_rec.PM_EQUP_CODE := LOB_VALUE;
subscriber_master_rec.PM_HOME_AREA := 'HOM';
subscriber_master_rec.PM_USG_CODE := 'USG';
subscriber_master_rec.PM_NO_TYPE := 'S';
subscriber_master_rec.PM_TCG_CODE := 'DEF';
subscriber_master_rec.PM_APLN_DATE := SYSDATE;
subscriber_master_Rec.PM_NAME := prepaidAccountDetails.Mac_Id;
subscriber_master_Rec.PM_STAFF_id := '16';
subscriber_master_rec.PM_USER2 := LOB_VALUE;
subscriber_master_rec.PM_USER3 := channel_lineup;
subscriber_master_rec.pm_cust_no := cust_no;
subscriber_master_rec.PM_USER8 := 'Y';
INSERT INTO subscriber_master
VALUES subscriber_master_rec;
REPLICO_DEV_INFO( prepaidAccountDetails.Account_id, prepaidAccountDetails.Mac_Id,channel_lineup,
prepaidAccountDetails.LOB_value, prepaidAccountDetails.outlet, prepaidAccountDetails.kit_code,
prepaidAccountDetails.serial_Number, prepaidAccountDetails.shipper,prepaidAccountDetails.estimated_recived_date);
END IF;
END LOOP;
CLOSE subs_rec;
SELECT TH_PLAN_CODE,TH_PAYMENT_MODE
INTO m_plan_code1,m_payment_mode1
FROM PAYMENT_TRANSACTION_HISTORY
WHERE TH_CUSTOMER_NO = cust_no
AND TH_LOB = LOB_VALUE
AND TH_SUBSCRIBER_NO IS NULL;
IF(LOB_VALUE = 'HSD') THEN
IF(m_plan_code1 = 'SIKI') THEN
plan_code := 'SIKI';
ELSE
plan_code := 'KIT';
END IF;
ELSE
IF(m_plan_code1 = 'SIKT') THEN
plan_code := 'SIKT';
ELSE
plan_code := 'TV';
END IF;
END IF;
UPDATE PAYMENT_TRANSACTION_HISTORY SET TH_SUBSCRIBER_NO = subs_aact_no, th_writeback_status = 'Y' WHERE TH_CUSTOMER_NO = cust_no AND TH_PLAN_CODE = plan_code;
COMMIT;
END IF;
END LOOP;
END;
END SUBSCRIBER_INS_SS;
END SUBS_INS_API_SS;
--- type object
create or replace
TYPE prepaid_act_dvc_details_obj--prepaidAccountDeviceDetailsObj
AS OBJECT ( Account_id VARCHAR2 ( 25 )
, Mac_Id VARCHAR2 ( 25 )
, Channel_Line_Up VARCHAR2 ( 25 )
, LOB_value VARCHAR2 ( 25 )
, Status_of_device VARCHAR2 ( 25 )
, outlet VARCHAR2(25)
, kit_code VARCHAR2(25)
, serial_Number VARCHAR2(25)
, shipper VARCHAR2(25)
, estimated_recived_date date )
type---
create or replace
TYPE prepaidActDeviceDetails_tabobj as table of prepaid_act_dvc_details_obj
---- i need to run this package via separate procedure. but i don't know how to pass the variable. because the passing argument contain object tab variable. please help me.. give me suggestion or procedure to run this pkg. -
ok so i have a midterm and need help this question that is gonna be on the midterm. i dont know how to do it and its worth 16 marks!!!! here it is
the UW Orchestra wants to produce a CD containing all the pieces of music
from its upcoming concert. In order to do that, it needs to calculate the total length of time for the
CD. In addition, the conductor wishes to know which piece of music has the longest duration.
Sample output for the program.
The Swan (3.88)
The Bee (0.98)
Claire de Lune (6.02)
Liebesfreund (3.38)
Ragtime (3.48)
The total time for the CD is 18.74 minutes.
The longest piece is Claire de Lune.
Do not include the HTML that is required to embed the program into a Web page (that is, show
only what you would write between <script> and </script> tags).
[4 marks] In the following space, define a function, Print, that takes two parameters, Title and
Length, and outputs a line of text such that Title appears in italics, followed by Length in
parentheses. The function also returns the value of Length.
For example, Print("My World",30) will output the line
My World (30)
and return the value 30.
Put your JavaScript program for the remainder of this question in the space provided on the next
two pages.
[9 marks]. For each piece of music, your program should input the title of the piece and the
duration (in minutes) for that piece, and it should output a line showing those values using the
Print function just defined. After all pieces have been listed, the program should output the
total length of time for the CD, adding in 0.25 minutes between each piece of music (which is
needed on the CD to separate the pieces).
[3 marks] The program should also output the name of the piece that has the longest playing
time.
Use reasonable variable names, indentation and good programming style. Documentation and
comments are not required, but you may add them to explain any assumptions you might want to
make. You need not check that the input is valid, and you may assume that no two pieces have the
same duration.
can anyone help me out! i would be indebt of ur kindness if u can help me out!This forum is for Java, not JavaScript. The two have nothing to do with each other.
And anyway, this is your studying, so you should try to do it, put forth your best effort, and ask specific questions (on the proper fourm). -
Need help with Java Script to perform a calculation in Adobe Acrobat Pro 9 form
I have a form (test) that I am creating in Adobe Acrobat Pro 9.
I need help creating custom Java Script so I can get the desired answer.
1) There are several questions in each group that require a numerical answer between 0-4
2) There is a total field set up to sum the answers from all above questions
3) The final "score" takes the answer from Step 2 above and divides by the total possible answer
Any help on what Java Script I need to complete this would be greatly appreciated!
I've attached a "spreadsheet" that shows it in more detail as well as what formulas I used in Excel to get the desired end result.
Thanks in advance.Have you tried the "The field is the average of:"?
-
i Need some help in Java Script,
am using the following code :
<script type="text/javascript">
var newwindow;
function poptastic(url)
newwindow=window.open(url,'name','height=300,width=400,left=100, top=100,resizable=yes,scrollbars=yes,toolbar=yes,status=yes');
if (window.focus) {newwindow.focus()}
else {newwindow.close()}
// if (window.focus) {newwindow.focus()}
</script>
In HTML,
thWorld Environment
Day, June 5<sup>th</sup>,2005
Am using onmouseover event, so that when my mouse in on the link, popup is opened....and when my mouse is out of the link, the new window should b closed....
but according to the above code, the new window is opened but have to close it manually....
Is there any other way to close the popup when my mouse is out of the linkPrawn,
This is not really a good way to make friends. With the cross posting and the posting in a wrong forum anyway thing you have going.
Please kindly take your question to an appropriate JavaScript forum.
Have a happy day.
Cross post from http://forum.java.sun.com/thread.jspa?messageID=3797201 -
Need help setting java paths?
I have a number of java files set up like this:
com.pogo.chess2.Applet, com.pogo.chess2.game.Applet, etc
Now each class file uses the keyword: package followed with its associating directory, for example Applet.class would look like this:
package com.pogo.chess2;
import com.pogo.game.external.b;
How do I create a new java project and properly set the path?
Basically I have all of my java code in a folder called com, which has subdirectories with java files as well. What is a package? How do I set it up using a gui such as JCreator Le? Is there a way to drag the folder com to the project and all the files will load?
Thanks in advance.For package, see
http://java.sun.com/docs/books/tutorial/java/concepts/package.html
The rest of your questions involve details of editor/IDE usage. None of them relate to Java. Read the information or Helps from the product you're using. -
Is any one tell me that JAVA BEAN only used in WEB or also you in Desktop applications???? and aslo tell how i implement Java class and use JAVA BEAN. I need help regarding above matter
thanks in advance
Rehan MIrzaHere is a good link that indicate that JavaBean is not only for applets
http://java.sun.com/docs/books/tutorial/javabeans/whatis/beanDefinition.html
quote:
The JavaBeans API makes it possible to write component software in the Java programming language. Components are self-contained, reusable software units that can be visually composed into composite components, applets, applications, and servlets using visual application builder tools. JavaBean components are known as Beans.
Francois -
Need help on Java in sound application
A good day to everyone here,
I need help on using Java.My project is mainly manipulating WAV sound files with Java. There is some problem.I hope you all can help me. I couldn't find much info about Java in sound manipulating,sample coding or something like that. I need to find the command to
1) Find each sampling point value in a sound file.
2) Find the number of sampling point and the average value of the all the sampling point.
3) Record the sound file in a different bit rate format.
I dont know how to go about it.I really hope you all can help me, or direct me to any resources that may help me. Your help is very much appreciated.
Thank you very much....i found this coding in a website n i not very sure that i understand it.
can anyone tell me if i can find the sample point value of a sound file with this coding (byte[] source is byte array of the sound file).
thanks...for all the help
public byte[] executeAmplitudeTransformationInternal(byte[]
source)
int[] sampleArray = getSampleArray(source);
int[] newSampleArray = executeTransformation(sampleArray);
//convert 16 bit samples back to 8 bit byte[]
return getByteArray(newSampleArray);
public int[] getSampleArray(byte[] eightBitByteArray) {
//create an array 1/2 the size (since every 2
//8bit samples makes 1 16bit sample)
int[] toReturn = new int[eightBitByteArray.length];
int index = 0;
for (int t = 0; t < eightBitByteArray.length; t += 2) {
//read the high bit
int low = (int) eightBitByteArray[t];
//read the low bit
int high = (int) eightBitByteArray[t + 1];
//bit shift the high bit 8 bits to the left and
// "And" the low bit against 255 to drop any
//sign extended data in the top 8 bits.
//refer to the tutorial for more clarification
toReturn[index] = (high << 8) (low & 0x00ff);
index++;
return toReturn;
public byte[] getByteArray(int[] sampleArray) {
//create a new byte[] twice as big as the sample array
//because it takes two 8-bit bytes to represent one
//16-bit sample
byte[] toReturn = new byte[sampleArray.length * 2];
int index = 0;
for (int t = 0; t < sampleArray.length; t++) {
int sample = sampleArray[t];
//this places the low byte in the array.
//the downcasting automatically lops off the high byte
toReturn[index] = (byte) sample;
index++;
//this byte shifts the sample 8 bits to the right
//this puts the old high byte in the position of the low byte.
//this way the high byte remains after the downcasating from
//an int to a byte
toReturn[index] = (byte) (sample >> 8);
index++;
return toReturn;
public int[] executeTransformation(int[] sampleArray) {
//create a clone sample array
int[] newSampleArray = new int[sampleArray.length];
//apply algo to each sample
for (int t = 0; t < sampleArray.length; t++) {
int result = (int) (sampleArray[t] );
//add the sample
newSampleArray[t] = result;
return newSampleArray; -
Need help with Java always get error
hey guys need help
this the problem i get :
I go to certain websites and I get this error with firefox.
This Site requires that JavaScript be enabled.
It is enabled.
This is the one of the errors in java script console with firefox.
Error: [Exception... "'Component does not have requested interface' when calling method: [nsIInterfaceRequestor::getInterface]" nsresult: "0x80004002 (NS_NOINTERFACE)" location: "<unknown>" data: no]
I have installed the java script from there home site and did a test and says everything is fine. Any ideas?
please helpHi 49ers,
Sorry not to have any real idea of how to help you out here, but this is a Java forum, not JavaScript.
Some Firefox expert may stumble across your post and be able to offer some advice (I hope they do) but this isn't really the best place to post such questions.
Try here: http://www.webdeveloper.com/forum/forumdisplay.php?s=&forumid=3
Good luck!
Chris. -
Need Help with Java Desktop CP Icon
I just formatted and reinstalled Windows XP Home SP2 and installed the JRE 1.5.0.02. I usually see an icon in my Control Panel but it only appears in the Administrator's CP which I can reach in Safe Mode of course, but it would be easier to deal with if it appeared somewhere on my desktop/taskbar or CP (I am also an Admin). In Safe Mode I made sure that the right settings were made for displaying, but it doesn't.
I know precious little about Java so I need help here.This forum is dedicated to Sun's Java Desktop System, an alternative desktop operating environment. Try reposting here:
http://forum.java.sun.com/forum.jspa?forumID=54 -
What tools needed to complie java telephony application
Dear all,
I heve downloaded JTAPI.But I thnk it is only documentation of API.
In that downloaded JTAPI I got all .java files too.
Now my Question is : what path or classpath I would have to set so that It will give me the all the description of javax.telephony.Call or Terminal or any XYZ classes or Interface just like if U give javap java.awt.Graphics or java.applet.Applet gives U all the methods and veriable whithin it.
If U got the Question's answer or U have it then reply me at my
yahoo mail : [email protected] with subject ::::to answer to telephony question posted on Sun. by [email protected]
ANOTHER THING :::::::>if what I downloaded is not enough then what else will be needed to compile my telephony related application.
kindly forward the link to download those JTAPI that is needed to compile my applicaton
I would grately be thankful to U.
Thanks.......
Yours friend
Tapan Bhattu can make all the java files of jtapi as a jar file.then compile it.then u get the class file.
i'm using the JTAPI.i u know more about that means mail me.
[email protected] -
Need help about classpath and packages
I am new to jAVA and trying to learn packages.I wrote a java programme called AccountBalance.java with package MyPack;
I set the classpath as C:\java programs\MyPack.
My java program was compile fine BUT classes were not creating in MyPack folder.
Cananyone suggest how java programs create the classes in ClassPath specified folder automatically.
ThanksHere you want to create your class file in a separate package.
Actually the creation of class will happen at the time of compilation.
So you have to take care about it at the time of compilation.
try this one to compile your source file:
javac <java source file name> -d <targetplace>
the java source file name is your source file name and -d is switch that is used to create the package(directory) and the target place is the location where you want to create your package. if you want to create your package in the current directory then you can simply give
javac <java source file name> -d .
try this one all the best. if it's not working then reply me so that i can check myself and try to find another solution for that.
thank you
bye
Maybe you are looking for
-
How to use tv as a monitor with HDMI adapter
with the HDMI adapter to thunderbolt plug the tv will display what is on my laptop monitor but only if I drag the screen to like 5 times its normal size. is there a way to just make it automaticly fit the tv everytime I want to use it as my monitor.
-
How do you sync the free iWork and iLife apps to multiple supervised devices?
So, I have a number of 4th gen iPads that are eligible for the free iWork and iLife update. I downloaded all the apps manually to one device, but was wondering how you can do this with multiple devices at once. If I try to add the apps in Configurato
-
Can I call a function? (indesign js)
can I call a external function from a new program? not as executing script using doScript().
-
Until recently i have been achieving broadband speeds of between 6.0MB and 7.1MB over the last 12 months See copy of speed test done on 17th May 2011 We have had work done recently at our exchange Knock Belfast and the broadband checker results have
-
IPhone iTunes match problem, songs displaying incorrectly or not displaying at all
I have an iPhone 4, and recently subscribed to iTunes Match. The list of artists/songs/albums, etc. does not show my content correctly. Some songs aren't displayed even though they have been downloaded, and the alphabetical display is making no sens