Solved

java sound - not able to record voice

Posted on 2001-06-25
6
218 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

759 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now