Solved

java sound - not able to record voice

Posted on 2001-06-25
6
221 Views
Last Modified: 2010-03-31
I am working on a voice mail application using java,
i am able to record voice using java sound through java application, and it is running perfectly alright, but when i try to use the same cade in an applet, it throws a LineUnavailableException , i have granted all permissions to the applet,

can anyone help??
0
Comment
Question by:kamaljeets
  • 3
  • 3
6 Comments
 
LVL 3

Expert Comment

by:dnoelpp
ID: 6226892
Java Sound uses a native library. This library needs to be installed on the clients. So I think, the applet can't access the native library.

I would try two things:

1. Use the Java plug-in. Take care to have the extension with the Java sound installed with the plugin.

2. Use Java Webstart. Maybe you have to specify that you use Java sound.

0
 

Author Comment

by:kamaljeets
ID: 6227464
how to use java plugin , i do not know please help..
0
 
LVL 3

Expert Comment

by:dnoelpp
ID: 6228612
The idea behind the Java plug-in is that you give the browser the most up-to-date version of Java. You use the <OBJECT> (Internet Explorer) or <EMBED> (Netscape) tag. There's even a tool which converts your HTML page with the <APPLET> tag to the right tags to work with the plug-in.

See the link about the Java plug-in from the Sun's Java web site:

http://java.sun.com/products/plugin/?frontpage-javaplatform

Please read carefully on how the plug-in works with extensions or native libraries, because I am not sure whether the plug-in will really help. But I think so. I would try the plug-in in your place.

Here's the link about Java Webstart:

http://java.sun.com/products/javawebstart/?frontpage-javaplatform

I wish you good luck!
0
Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 

Author Comment

by:kamaljeets
ID: 6230406
Hi!
I downloaded the plug-in , installed it and tried to run the applet , now the applet uses the installed plugin instead of default plug in of IE,
but still the problem presists, rather it is more intense, as the applet is not even getting initialized.

anyway thanx for the help,
 kamal
0
 
LVL 3

Accepted Solution

by:
dnoelpp earned 100 total points
ID: 6230751
Did you check that the plug-in contains Java sound?
0
 

Author Comment

by:kamaljeets
ID: 6230936
Hi!
Thanx for the help,
finally i am able to record voice through an applet in IE,
although there were other problems as well but ur help gave me a direction to think, and one of the major reasons the code was not working was older jvm,
so once again thanx!

Kamal
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
The viewer will learn how to implement Singleton Design Pattern in Java.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question