Link to home
Start Free TrialLog in
Avatar of kamaljeets
kamaljeets

asked on

java sound - not able to record voice

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??
Avatar of dnoelpp
dnoelpp
Flag of Switzerland image

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.

Avatar of kamaljeets
kamaljeets

ASKER

how to use java plugin , i do not know please help..
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!
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
ASKER CERTIFIED SOLUTION
Avatar of dnoelpp
dnoelpp
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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