|
It's also SO urgent - plz send me the full money!
regards
Torsten
PS: No, I don't have the code, but I would take the money anyway!
I never finish anyth...
|
|
|
|
|
Before asking for the whole code, why don't you first try it yourself and then if you have difficulties, people here will be happy to help. But asking for codes directly is not good. No one here is working for you we are just wanting to help those who help themselves..........
|
|
|
|
|
that's the best thing........... no noe should ask the whole codes here........
|
|
|
|
|
First, Do google, Try yourself something, do some RnD, then come here with doubts and ask it.
***** Programme comme si dept soutien technique. est plein de tueurs en série et ils savent adresse de votre domicile. *****
|
|
|
|
|
I need a few very large ( >= 500K loc ) opensource Java and C# source code repositories to test some ideas. Do you know any?
Thanks,
|
|
|
|
|
isn't SourceForge[^] the one to go with? I actually don't even know others
Does it need to be a repository? Otherwise you could go with a service like dropbox or so.
regards
Torsten
I never finish anyth...
|
|
|
|
|
I mean single large project
|
|
|
|
|
There are lots of projects in sourceforge and also in Codeplex[^]; go and have a look.
|
|
|
|
|
Hi Richard,
I know. I just wanted to get specific project names. I got them. Thanks.
|
|
|
|
|
|
hi for all
(SORRY FOR MY BAD ENGLISH)
please i want this jar file
javax,microedition
free
thank you all
|
|
|
|
|
is Google down again? one can't depend on faulty services like that!
call it Java ME[^]
regards,
Torsten
I never finish anyth...
|
|
|
|
|
i did not find the jar file i want
maybe i am weak in searching
please if you have a download link help me
(SORRY FOR MY BAD ENGLISH)
and thank you too much
|
|
|
|
|
You did not find "a jar file" because there is no jar file.
You are talking about JAVA ME. That's a complete runtime.
Let's get it in another way:
- What are you trying to do?
- Why do you think you need a jar-file from JAVA ME?
regards
Torsten
I never finish anyth...
|
|
|
|
|
i know it is J2ME
i am going to make a chat program work in all mobiles in my country
so i need j2me
i found small example
j2me with php with mysql
i am going to understant that code
but the code import javax.mircoedition like this
import javax.microedition.lcdui.Command;
import javax.microedition.rms.*;
...etc
so i need that
but you say that javax is not a jar
so how can i use it to correct my code
thank you very much
mabye my questions is not good , i am really thank you
(SORRY FOR MY BAD ENGLISH)
|
|
|
|
|
OK, so you want to work with it.
Java ME JDK 3.0[^]
download that JDK and install it. Setup the project preferences, so that it points to this JDK (you might need to import it first into the IDE).
Afterwards you should be able to address the Java ME.
Eclipse:
setup Project Preferences: right click on project -> preferences -> Java Build Path
importing JRE or JDK: Window -> Preferences -> installed JREs
Netbeans:
setup Project Preferences: ???
importing JRE or JDK: ???
regards
Torsten
I never finish anyth...
|
|
|
|
|
i am getting this errror when i try to run the file on java netbeans..it doesnt record the voice and compares...can anyone please reply to this problem.
thank you
Exception in thread "AWT-EventQueue-0"
java.lang.IllegalArgumentException: No line matching interface
TargetDataLine supporting format PCM_SIGNED 44100.0 Hz, 16 bit,
stereo, 4 bytes/frame, little-endian is supported.
at javax.sound.sampled.AudioSystem.getLine(AudioSystem.java:459)
at voice.AdminForm.jButtonStartRecordingActionPerformed(AdminForm.java:266)
at voice.AdminForm.access$200(AdminForm.java:24)
at voice.AdminForm$3.actionPerformed(AdminForm.java:77)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6267)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6032)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Exception in thread "AWT-EventQueue-0"
java.lang.IllegalArgumentException: No line matching interface
TargetDataLine supporting format PCM_SIGNED 44100.0 Hz, 16 bit,
stereo, 4 bytes/frame, little-endian is supported.
at javax.sound.sampled.AudioSystem.getLine(AudioSystem.java:459)
at voice.AdminForm.jButtonStartRecordingActionPerformed(AdminForm.java:266)
at voice.AdminForm.access$200(AdminForm.java:24)
at voice.AdminForm$3.actionPerformed(AdminForm.java:77)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6267)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6032)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
|
|
|
|
|
java.lang.IllegalArgumentException: No line matching interface
TargetDataLine supporting format PCM_SIGNED 44100.0 Hz, 16 bit,
stereo, 4 bytes/frame, little-endian is supported.
at javax.sound.sampled.AudioSystem.getLine(AudioSystem.java:459)
at voice.AdminForm.jButtonStartRecordingActionPerformed(AdminForm.java:266)
That's where you should take a look at. There's an IllegalArgumentException thrown at the class AudioSystem / method getLine(), which is Line 459 of that file (please try to set the line count visible if not yet done - > Preferences).
The method getLine() will have at least one argument, which is not valid (probably it's null in this moment). Try to set a breakpoint on that exception and your debugger will show you the problem.
regards
Torsten
I never finish anyth...
|
|
|
|
|
same program works in one system,but not in another ...
do u need any specific audio driver or any software since its shows error in audiofile..
there is a error shown in this line of audio system..
target Dataline=(TargetDataline)Audiosystem.getLine(Info);
i have problem recording voice..it doesnt enable the stop button when start record is click.
|
|
|
|
|
public static Line getLine(Line.Info info) throws LineUnavailableException {
LineUnavailableException lue = null;
List providers = getMixerProviders();
// 1: try from default mixer for this line class
try {
Mixer mixer = getDefaultMixer(providers, info);
if (mixer != null && mixer.isLineSupported(info)) {
return mixer.getLine(info);
}
} catch (LineUnavailableException e) {
lue = e;
} catch (IllegalArgumentException iae) {
// must not happen... but better to catch it here,
// if plug-ins are badly written
}
// 2: if that doesn't work, try to find any mixing mixer
for(int i = 0; i < providers.size(); i++) {
MixerProvider provider = (MixerProvider) providers.get(i);
Mixer.Info[] infos = provider.getMixerInfo();
for (int j = 0; j < infos.length; j++) {
try {
Mixer mixer = provider.getMixer(infos[j]);
// see if this is an appropriate mixer which can mix
if (isAppropriateMixer(mixer, info, true)) {
return mixer.getLine(info);
}
} catch (LineUnavailableException e) {
lue = e;
} catch (IllegalArgumentException iae) {
// must not happen... but better to catch it here,
// if plug-ins are badly written
}
}
}
// 3: if that didn't work, try to find any non-mixing mixer
for(int i = 0; i < providers.size(); i++) {
MixerProvider provider = (MixerProvider) providers.get(i);
Mixer.Info[] infos = provider.getMixerInfo();
for (int j = 0; j < infos.length; j++) {
try {
Mixer mixer = provider.getMixer(infos[j]);
// see if this is an appropriate mixer which can mix
if (isAppropriateMixer(mixer, info, false)) {
return mixer.getLine(info);
}
} catch (LineUnavailableException e) {
lue = e;
} catch (IllegalArgumentException iae) {
// must not happen... but better to catch it here,
// if plug-ins are badly written
}
}
}
// if this line was supported but was not available, throw the last
// LineUnavailableException we got (??).
if (lue != null) {
throw lue;
}
// otherwise, the requested line was not supported, so throw
// an Illegal argument exception
throw new IllegalArgumentException("No line matching " +
info.toString() + " is supported.");//line 459
what could be the error
}
|
|
|
|
|
search for line 459 in your code. There is the problem. You're throwing multiple IllegalArgumentExceptions in this, I can't determinate which is reacting.
What I can tell you: the exception is just the consequence, the failure itself is produced before. So you need to find out who is calling that method and what that calling function is handing over to the getLine()-method.
regards
Torsten
I never finish anyth...
|
|
|
|
|
Hi guys,i am asking about webcam video recording thru java,i`ve tried this code but i get this output> Video Capture failed after approximately 0 seconds.
The code consists of 2 files web.java and location2location.java,Can anybody help me about that??thnxxx
import javax.swing.*;
import javax.swing.event.*;
import java.io.*;
import javax.media.*;
import javax.media.format.*;
import javax.media.util.*;
import javax.media.control.*;
import javax.media.protocol.*;
import java.util.*;
import java.awt.*;
import java.awt.image.*;
import java.awt.event.*;
import com.sun.image.codec.jpeg.*;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
public class Web extends Panel implements ActionListener
{
public static Player player = null;
public CaptureDeviceInfo di = null;
public MediaLocator ml = null;
public JButton capture1 = null;
public Buffer buf = null;
public Image img = null;
public VideoFormat vf = null;
public BufferToImage btoi = null;
public ImagePanel imgpanel = null;
public MediaLocator dl;
String destinationName = null;
public double duration = 10;
public int waitFor = 0;
public Vector devices;
public static final Format VIDEO_FORMAT = new VideoFormat(VideoFormat.CINEPAK);
public Location2Location capture;
public Format[] formats = new Format[1];
public ContentDescriptor videoContainer = new ContentDescriptor(FileTypeDescriptor.MSVIDEO);
public ContentDescriptor container = null;
public Web()
{
setLayout(new BorderLayout());
setSize(320,550);
imgpanel = new ImagePanel();
capture1 = new JButton("Capture1");
capture1.addActionListener(this);
String str1 = "vfw:Logitech USB Video Camera:0";
String str2 = "vfw:Microsoft WDM Image Capture (Win32):0";
di = CaptureDeviceManager.getDevice(str2);
ml = new MediaLocator("vfw://0");
String DEFAULT_VIDEO_NAME = "captured.avi";
String VIDEO = "video";
String selected = VIDEO;
formats[0] = VIDEO_FORMAT;
if (destinationName==null)
destinationName = DEFAULT_VIDEO_NAME;
container = videoContainer;
dl = new MediaLocator(destinationName);
System.out.println("Configuring for capture. Please wait.");
capture = new Location2Location(ml,
dl,formats,container,1.0);
System.out.println("Started recording " + duration +
" seconds of " + selected + " ...");
capture.setStopTime(new Time(duration));
if (waitFor==0)
waitFor = (int)(4000*duration);
else
waitFor *= 1000;
int waited = capture.transfer(waitFor);
int state = capture.getState();
if (state==Location2Location.FINISHED)
System.out.println(selected + " capture successful " +
"in approximately " + ((int)((waited+500)/1000)) +
" seconds. Data written to " + destinationName);
else if (state==Location2Location.FAILED)
System.out.println(selected + " capture failed " +
"after approximately " + ((int)((waited+500)/1000)) +
" seconds");
else {
System.out.println(selected + " capture still ongoing " +
"after approximately " + ((int)((waited+500)/1000)) +
" seconds");
System.out.println("Process likely to have failed");
}
System.exit(0);
Location2Location(MediaLocator sourceLocation,
MediaLocator destinationLocation, Format[] outputFormats,
ContentDescriptor outputContainer, double rate) {
state = TRANSLATING;
sinkLocation = destinationLocation;
try {
if (sourceLocation==null)
model = new ProcessorModel(outputFormats,outputContainer);
else
model = new ProcessorModel(sourceLocation,
outputFormats,outputContainer);
processor = Manager.createRealizedProcessor(model);
}
catch (Exception e) {
state = FAILED;
return;
}
translationRate = processor.setRate((float)Math.abs(rate));
processor.addControllerListener(this);
source = processor.getDataOutput();
try {
sink = Manager.createDataSink(source,sinkLocation);
}
catch (Exception sinkException) {
state = FAILED;
processor.removeControllerListener(this);
processor.close();
processor = null;
return;
}
sink.addDataSinkListener(new DataSinkListener() {
public void dataSinkUpdate(DataSinkEvent e) {
if (e instanceof EndOfStreamEvent) {
sink.close();
source.disconnect();
if (state!=FAILED)
state = FINISHED;
}
else if (e instanceof DataSinkErrorEvent) {
if (sink!=null)
sink.close();
if (source!=null)
source.disconnect();
state = FAILED;
}
}
});
processor.start();
}
Location2Location(String sourceName, String destinationName,
Format[] outputFormats, ContentDescriptor outputContainer) {
this(new MediaLocator(sourceName), new MediaLocator(destinationName),
outputFormats, outputContainer);
}
Location2Location(MediaLocator sourceLocation,
MediaLocator destinationLocation, Format[] outputFormats,
ContentDescriptor outputContainer) {
this(sourceLocation,destinationLocation,outputFormats,outputContainer,1.0f);
}
Location2Location(String sourceName, String destinationName,
Format[] outputFormats, ContentDescriptor outputContainer,
double rate) {
this(new MediaLocator(sourceName), new MediaLocator(destinationName),
outputFormats, outputContainer, rate);
}
public synchronized void controllerUpdate(ControllerEvent e) {
if (state==FAILED)
return;
if (e instanceof StopEvent) {
processor.removeControllerListener(this);
processor.close();
if (state==TRANSLATING)
state = TRANSFERRING;
}
else if (e instanceof ControllerErrorEvent) {
processor.removeControllerListener(this);
processor.close();
state = FAILED;
}
}
public int transfer(int timeOut) {
if (state==FAILED)
return -1;
try {
sink.open();
sink.start();
}
catch (Exception e) {
state = FAILED;
return -1;
}
if (state==TRANSLATING)
state = TRANSFERRING;
if (timeOut<=0)
return timeOut;
int waited = 0;
while (state!=FAILED && state!=FINISHED && waited<timeOut) {
try { Thread.sleep(WAIT_PERIOD); }
catch (InterruptedException ie) { }
waited += WAIT_PERIOD;
}
return waited;
}
|
|
|
|
|
Hi, i am asking how could i record a video from my webcam using java,i have tried lots of codes but nothing works I have installed the JMF and included the jmf.jar and sound.jar in my classpath but the jmfStudio and jmfRegistry don`t run(i dunno why?but when i compile the java files including javax.media they run with no errors but they don`t record).Can anyone help me about that? i am using windows vista.thnx in advance
|
|
|
|
|
I am not sure why you need this but I think I can still help you....
I have a peace of code, hope you understand that code and apply it appropriately
============CODE===============
CaptureDeviceInfo di = null;
try{
MediaLocator loc= new MediaLocator("vfw://0");
p=Manager.createRealizedPlayer(loc);
p.start();
f = new JFrame();
t.setTitle("StuMgtSystem Java:Lecture");
t.setLayout(new BorderLayout());
t.add("South", p.getControlPanelComponent());
// Adding the Visual Component to display Video captured by Player
// from URL provided by MediaLocator
t.add(p.getVisualComponent(), BorderLayout.CENTER);
t.pack();
t.setSize(200, 100);
t.setVisible(true);
t.setTitle("Capturing ON");
}catch(Exception e){
e.printStackTrace();
}
=========== END of CODE==========
I am not sure if I can help you further but hope this works for you as it does work for others
|
|
|
|
|
I have tried one time OpenCV with Java and work for me, maybe can be this last thing you want do
|
|
|
|
|