Solved

java sound - not able to record voice

Posted on 2001-06-25
6
224 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
servlet example 11 74
How do I remove an object from a 3 60
Java 8 to Java 6 8 41
Html split(text) 2 46
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…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses

737 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