Using Java Sound in Eclipse.
Can anyone tell me where to put the java soundbanks that i downloaded in order to use Java sound in Eclipse?
I'm not familiar with this particular issue, but I believe jsresources.org has lots of information on installing soundbanks.
Similar Messages
-
Capturing audio through applet using Java Sound
hi fellows i need ur help.
I am working on a voice project to Capture & Play the sound using java sound API instead of JMF. I can capture , play and transmit the sound through application. It works pretty fine but when i convert it to the applet, it is not working.
I got the full system permissions and also signed the applet for Internet Explorer. Also i packed the
javax.sound.midi.*
javax.sound.sampled.*
classes in the signed cab.
After doing all this i am getting the AudioFormat not supported exception. I changed the format and used all the combinations but still getting this error
No line matching interface TargetDataLine supporting format PCM_SIGNED, 16000.0 Hz, 16 bit, mono, big-endian, audio data is supported.
java.lang.IllegalArgumentException: No line matching interface TargetDataLine supporting format PCM_SIGNED, 16000.0 Hz, 16 bit, mono, big-endian, audio data is supported.
at javax/sound/sampled/AudioSystem.getLine (AudioSystem.java:312)
at com/vsoft/voice/VoiceRecord.run (VoiceApplet.java:93)
at java/lang/Thread.run (Thread.java)plz help me to sort out this problem.plz have a look over this problem
-
Emulating sox trim using java sound APIs
Hi,
I would like to know if there is a way to split large wave files into smaller ones (approx 5 min clips, similar to "sox trim") using java sound APIs? I tried the following, but it doesn't seem to work for me
1. Open a wave file using AudioSystem.getAudioInputStream();
2. Read 300 * sample_rate * bytes_per_sample bytes into a buffer.
3. Read the written bytes back using AudioSystem.getAudioInputStream().
4. Write the stream using AudioSystem.write();
I can't get step 3 to work, possibly because headers are not written into the buffer and AudioSystem complains about unknown audio format. How do I get this working?
TIA.Okay, I figured a way to do this without using the sound APIs. Now, I am reading the header and data separately, splitting the data and copying the header on each segment. Sorry to have bothered everyone.
-
Cannot recognise any sound devices in Linux using Java sound!
Hi there - I'm new to Java sound, and can't even get my foot in the door on my Linux system. Even thought my speakers and microphone are fully functional on my system (I can record, playback, etc. using other programs) I cannot get Java to find the microphone, speaker, anything. I've tried calling "AudioSystem.isLineSupported(Port.Info.MICROPHONE)", which returns false, as with all the other Port.Info.... objects.
I'm sure there are no programs using my audio devices (used lsof | grep snd and lsof | grep dsp, then killed the only program that had anything open) and I've tried running my Java program as the super-user too, but to no avail.
One thing I CAN do is get sound from /dev/dsp - I can put this into a byte array and play it back later, but I don't know how to find out what sort of codec it uses, how to merge it with Java sound, or anything like that.
Any help would be much appreciated!
If it makes any difference, I'm using Xubuntu 8.10, and I normally don't use a microphone or flashy surround-sound speakers, so I've not touched the sound system since I installed Linux.Ports are tricky...and by tricky, I don't mean complicated so much as a pain.
Try using Line.Info objects instead of Port.Info objects and see if you can get any lines. -
An I18N bug from java sound should be fixed.
When you try to list some audio related names (such as mix name, port name, control name) by using java sound api, and if the names are writtened by non-ascii character such as Chinese, you will get the strange characters, that means java sound api does not support internationalization character. Here is the sample:
* SystemMixerFrame.java
* Copyright (c) 2001 - 2002 by Matthias Pfisterer
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* - Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* - Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.BooleanControl;
import javax.sound.sampled.CompoundControl;
import javax.sound.sampled.Control;
import javax.sound.sampled.EnumControl;
import javax.sound.sampled.FloatControl;
import javax.sound.sampled.Line;
import javax.sound.sampled.LineUnavailableException;
import javax.sound.sampled.Mixer;
import javax.sound.sampled.Port;
IDEAS:
- user setting tab style vs. show complete windows for multiple mixers (horicontal/vertical)
- user setting unix style (L/R volume) vs. windows style (volume/balance)
/** TODO:
public class TestSystemMixer {
/** TODO:
private static final Port.Info[] EMPTY_PORT_INFO_ARRAY = new Port.Info[0];
public static void main(String[] args) {
new TestSystemMixer();
System.exit(0);
/** TODO:
public TestSystemMixer()
List portMixers = getPortMixers();
if (portMixers.size() == 0) {
out("There are no mixers that support Port lines.SystemMixer: Error");
System.exit(1);
Iterator iterator = portMixers.iterator();
while (iterator.hasNext())
Mixer mixer = (Mixer) iterator.next();
String strMixerName = mixer.getMixerInfo().getName();
out("mixername:" + strMixerName);
createMixerPanel(mixer);
/** Returns the Mixers that support Port lines.
private List getPortMixers()
List supportingMixers = new ArrayList();
Mixer.Info[] aMixerInfos = AudioSystem.getMixerInfo();
for (int i = 0; i < aMixerInfos.length; i++)
Mixer mixer = AudioSystem.getMixer(aMixerInfos);
boolean bSupportsPorts = arePortsSupported(mixer);
if (bSupportsPorts)
supportingMixers.add(mixer);
return supportingMixers;
/** TODO:
// should be implemented by:
// Mixer.isLineSupported(new Line.Info(Port.class))
private boolean arePortsSupported(Mixer mixer)
Line.Info[] infos;
infos = mixer.getSourceLineInfo();
for (int i = 0; i < infos.length; i++)
if (infos[i] instanceof Port.Info)
return true;
infos = mixer.getTargetLineInfo();
for (int i = 0; i < infos.length; i++)
if (infos[i] instanceof Port.Info)
return true;
return false;
/** TODO:
private void createMixerPanel(Mixer mixer)
Port.Info[] infosToCheck = getPortInfo(mixer);
for (int i = 0; i < infosToCheck.length; i++)
Port port = null;
try
port = (Port) mixer.getLine(infosToCheck[i]);
port.open();
catch (LineUnavailableException e)
e.printStackTrace();
if (port != null)
createPortPanel(port);
/** TODO:
private Port.Info[] getPortInfo(Mixer mixer)
Line.Info[] infos;
List portInfoList = new ArrayList();
infos = mixer.getSourceLineInfo();
for (int i = 0; i < infos.length; i++)
if (infos[i] instanceof Port.Info)
portInfoList.add((Port.Info) infos[i]);
infos = mixer.getTargetLineInfo();
for (int i = 0; i < infos.length; i++)
if (infos[i] instanceof Port.Info)
portInfoList.add((Port.Info) infos[i]);
Port.Info[] portInfos = (Port.Info[]) portInfoList.toArray(EMPTY_PORT_INFO_ARRAY);
return portInfos;
/** TODO:
private void createPortPanel(Port port)
String strPortName = ((Port.Info) port.getLineInfo()).getName();
out("Portname:" + strPortName);
Control[] aControls = port.getControls();
// for (int i = 0; i < aControls.length; i++)
if (aControls.length > 1) {
// In fact in the windows system, it named SPEAKER port, and it contains play controls.
out("ignore the port " + strPortName + " that contains more than one control.");
} else {
// this is record control.
out("control:" + aControls[0].toString());
createControlComponent(aControls[0]);
if (aControls[0] instanceof FloatControl)
else
/** TODO:
private void createControlComponent(Control control)
if (control instanceof BooleanControl)
String strControlName = control.getType().toString();
out("sub control type BooleanControl:" + strControlName);
else if (control instanceof EnumControl)
String strControlName = control.getType().toString();
out("sub control type EnumControl:" + strControlName);
System.out.println("WARNING: EnumControl is not yet supported");
else if (control instanceof FloatControl)
String strControlName = control.getType().toString();
out("sub control type FloatControl:" + strControlName);
else if (control instanceof CompoundControl)
String strControlName = control.getType().toString();
out("sub control type CompoundControl:" + strControlName);
Control[] aControls = ((CompoundControl)control).getMemberControls();
for (int i = 0; i < aControls.length; i++)
Control con = aControls[i];
if (con instanceof BooleanControl) {
out("sub sub control type BooleanControl:" + con.getType().toString());
if (strControlName.equalsIgnoreCase("Stereo Mix")) {
((BooleanControl) con).setValue(true);
else if (con instanceof EnumControl) {
out("sub sub control type EnumControl:" + con.getType().toString());
else if (con instanceof FloatControl)
if (isBalanceOrPan((FloatControl) con))
out("sub sub control type FloatControl balance:" + con.getType().toString());
else
out("sub sub control type FloatControl pan:" + con.getType().toString());
else
/** Returns whether the type of a FloatControl is BALANCE or PAN.
private static boolean isBalanceOrPan(FloatControl control)
Control.Type type = control.getType();
return type.equals(FloatControl.Type.PAN) || type.equals(FloatControl.Type.BALANCE);
private static void out(String message)
System.out.println(message);
/*** SystemMixerFrame.java ***/
Compile and run the code below on non-ascii Windows OS, you will catch the problem.
The solution I provide:
Download the jdk 1.4.2 source, search the files named PortMixer.c && PortMixerProvider.c and replace the method "NewStringUTF" with the method below:
jstring WindowsTojstring2( JNIEnv* env, char* str )
jstring rtn = 0;
int slen = strlen(str);
unsigned short* buffer = 0;
if( slen == 0 )
rtn = (*env)->NewStringUTF(env,str );
else
int length = MultiByteToWideChar( CP_ACP, 0, (LPCSTR)str, slen, NULL, 0 );
buffer = malloc( length*2 + 1 );
if( MultiByteToWideChar( CP_ACP, 0, (LPCSTR)str, slen, (LPWSTR)buffer, length ) >0 )
rtn = (*env)->NewString( env, (jchar*)buffer, length );
if( buffer )
free( buffer );
return rtn;
Rebuild jdk source code as per sun build document. Got the result files and pick up jsound.dll, replace the original jsound.dll in your JRE with the fixed file.
Then the problem solved. I also hope sun will fix the problem in the future version of JDK.
Or any one can help me to submit this article to the sun JDK team.
Jiawei Zhang
From Chinese, The city of Shanghai.
MSN: [email protected]If you only wanted to get a beep you could have used Toolkit.beep
Very simple and fast.
Rommie. -
Using the 'java.sound.*' libraries and classes
Hello,
I am a complete noob to Java. So please forgive me if I seem a little stupid in the things I ask.
I would like to know which development kit I should download to be able to gain access to the 'java.sound.*' and midi libraries and classes.
I downloaded the Java SE 6 SDK but I could get access to these classes.
I use JCreator as my compiler and I kept getting an error along the lines of 'java.sound.* package does not exist'. I have tried compiling the code with NetBeans and also wiuth Eclipse and I still have no luck and I get the same message. I am guessing the compiler is not the problem and it is the SDK as I can access other classes such as javax.swing and java.awt etc.
If you could give me a link to the relevant SDK and maybe a good compiler, it would be greatly appreciated.
Also I am using Windows XP and Windows Vista so if you could provide me with support for either of these operating systems then that would be great.
Thank You
LeeHere's the code for an SSCCE (Small Self Contained Compilable Example) of a working java sound application. If you don't provide a file name, It does expect you to have a wave file of Ballroom Blitz in your javatest directory, but doesn't everybody?
To build and run it do:
javac -cp . SoundPlayer.java
java -cp . SoundPlayer yourWaveFile.wav
import java.io.*;
import javax.sound.sampled.*;
import javax.sound.sampled.DataLine.*;
public class SoundPlayer implements LineListener
private float bufTime;
private File soundFile;
private SourceDataLine line;
private AudioInputStream stream;
private AudioFormat format;
private Info info;
private boolean opened;
private int frameSize;
private long frames;
private int bufFrames;
private int bufsize;
private boolean running;
private boolean shutdown;
private long firstFrame, lastFrame;
private float frameRate;
private long currentFrame;
private float currentTime;
private Thread playThread;
// constructor, take a path to an audio file
public SoundPlayer(String path)
this(path, 2); // use 2 second buffer
// or a path and a buffer size
public SoundPlayer(String path, float bt)
this(new File(path),bt);
public SoundPlayer(File sf)
this(sf, 2); // use 2 second buffer
public SoundPlayer(File sf, float bt)
bufTime = bt; // seconds per buffer
soundFile = sf;
openSound();
private void openSound()
System.out.println("Opening file"+soundFile.getName());
try
firstFrame = 0;
currentFrame = 0;
shutdown = false;
running = false;
stream=AudioSystem.getAudioInputStream(soundFile);
format=stream.getFormat();
if(format.getEncoding() != AudioFormat.Encoding.PCM_SIGNED)
System.out.println("Converting Audio stream format");
stream = AudioSystem.getAudioInputStream(AudioFormat.Encoding.PCM_SIGNED,stream);
format = stream.getFormat();
frameSize = format.getFrameSize();
frames = stream.getFrameLength();
lastFrame = frames;
frameRate = format.getFrameRate();
bufFrames = (int)(frameRate*bufTime);
bufsize = frameSize * bufFrames;
System.out.println("frameRate="+frameRate);
System.out.println("frames="+frames+" frameSize="+frameSize+" bufFrames="+bufFrames+" bufsize="+bufsize);
info=new Info(SourceDataLine.class,format,bufsize);
line = (SourceDataLine)AudioSystem.getLine(info);
line.addLineListener(this);
line.open(format,bufsize);
opened = true;
catch(Exception e)
e.printStackTrace();
public void stop()
System.out.println ("Stopping");
if(running)
running = false;
shutdown = true;
if(playThread != null)
playThread.interrupt();
try{playThread.join();}
catch(Exception e){e.printStackTrace();}
if (opened) close();
private void close()
System.out.println("close line");
line.close();
try{stream.close();}catch(Exception e){}
line.removeLineListener(this);
opened = false;
// set the start and stop time
public void setTimes(float t0, float tz)
currentTime = t0;
firstFrame = (long)(frameRate*t0);
if(tz > 0)
lastFrame = (long)(frameRate*tz);
else lastFrame = frames;
if(lastFrame > frames)lastFrame = frames;
if(firstFrame > lastFrame)firstFrame = lastFrame;
public void playAsync(float start, float end)
setTimes(start,end);
playAsync();
// play the sound asynchronously */
public void playAsync()
System.out.println("Play async");
if(!opened)openSound();
if(opened && !running)
playThread = new Thread(new Runnable(){public void run(){play();}});
playThread.start();
public void play(float start, float end)
setTimes(start,end);
play();
// play the sound in the calling thread
public void play()
if(!opened)openSound();
if(opened && !running)
running = true;
int writeSize = frameSize*bufFrames/2; // amount we write at a time
byte buf[] = new byte[writeSize]; // our io buffer
int len;
long framesRemaining = lastFrame-firstFrame;
int framesRead;
currentFrame=firstFrame;
System.out.println("playing file, firstFrame="+firstFrame+" lastFrame="+lastFrame);
try
line.start();
if(firstFrame > 0)
long sa = firstFrame * frameSize;
System.out.println("Skipping "+firstFrame+" frames="+sa+" bytes");
while(sa > 0)sa -= stream.skip(sa);
while (running && framesRemaining > 0)
len = stream.read(buf,0,writeSize); // read our block
if(len > 0)
framesRead = len/frameSize;
framesRemaining -= framesRead;
currentTime = currentFrame/frameRate;
if(currentTime < 0)throw(new Exception("time too low"));
System.out.println("time="+currentTime+" writing "+len+" bytes");
line.write(buf,0,len);
currentFrame+=framesRead;
else framesRemaining = 0;
if(running)
line.drain(); // let it play out
while(line.isActive() && running)
System.out.println("line active");
Thread.sleep(100);
shutdown = true;
running = false;
catch(Exception e)
e.printStackTrace();
shutdown = true;
running = false;
if(shutdown)
close();
// return current time relative to start of sound
public float getTime()
return ((float)line.getMicrosecondPosition())/1000000;
// return total time
public float getLength()
return (float)frames / frameRate;
// stop the sound playback, return time in seconds
public float pause()
running = false;
line.stop();
return getTime();
public void update(LineEvent le)
System.out.println("Line event"+le.toString());
// play a short simple PCM encoded clip
public static void playShortClip(String fnm)
java.applet.AudioClip clip=null;
try
java.io.File file = new java.io.File(fnm); // get a file for the name provided
if(file.exists()) // only try to use a real file
clip = java.applet.Applet.newAudioClip(file.toURL()); // get the audio clip
else
System.out.println("file="+fnm+" not found");
catch(Exception e)
System.out.println("Error building audio clip from file="+fnm);
e.printStackTrace();
if(clip != null) // we may not actually have a clip
final java.applet.AudioClip rclip = clip;
new Thread
(new Runnable()
public void run()
rclip.play();
).start();
public boolean isOpened()
return opened;
public boolean isRunning()
return running;
public void showControls() {
Control [] controls = line.getControls();
for (Control c :controls) {
System.out.println(c.toString());
public void setGain(float gain) {
FloatControl g = (FloatControl) line.getControl(FloatControl.Type.MASTER_GAIN);
g.setValue(gain);
public static void main(String [] args) {
float gain = 0;
String file = "c:\\javatest\\BallroomBlitz.wav";
for(String arg : args) {
for(int i = 0; i < arg.length(); i++) {
char c = arg.charAt(i);
if (c == '-') {
gain -= 1;
} else if (c == '+') {
gain += 1;
} else {
file = arg;
SoundPlayer sp = new SoundPlayer(file);
sp.showControls();
System.out.println("setting gain to " + gain);
sp.setGain(gain);
sp.play();
} -
How to Debug a Java Project in Eclipse using Tomcat6.0
Hi
Can anybody help me with the following questions.
1.How to create a java project in eclipse(I am using jsp,servlets,jsf,spring,jasper,struts).
2.How to debug my application in Eclipse Europa by putting break points.
3.how should i add Tomcat6.0 to my project in order to debug my application so that i can put break points while running the applications and observe the values.
Thanks
BalaYou may find this tutorial useful regarding to JSF, Eclipse and Tomcat: http://balusc.blogspot.com/2008/01/jsf-tutorial-with-eclipse-and-tomcat.html
To put breakpoints, just doubleclick on the left gray rule of the code, you'll get blue bullets at the left rule, indicating a break point. Run Tomcat in debug modus (rightclick Tomcat � debug). Use the Eclipse debug perspective to step in the code (window � open perspective � debug). -
How to Play a sample sound using Java
Hi,
I have an mp3 music files in database. When a user chooses a particular button, all the songs are fetched from the database.
I have two buttons namely, 'Buy' and 'Play Sample'. If I click the 'Play Sample' button, a sample of the song has to be played (not the full song). If the user likes the sample, he can buy the full song.
My question is how to achieve the 'Play Sample' using Java Swings and Sound. I have googled, but not find any solutions. Please provide me an example or link.
Thanks in advance.HI
Actually i am trying to create a JFrame which plays an mp3 music file
with the help of play and stop buttons in it ...
i splitted the frame into two
i want a music file list in the first frame (JComboBox)
and want to have play and stop button in the second frame .
i had tried out some code in which the frame part is fine ,,,
but i am not knowing how to play the file with those buttons ...
here is the code and plz help me to move further ...
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JSplitPane;
public class AudioFile extends JFrame {
public AudioFile() {
setTitle("Music File");
setSize(300, 400);
JPanel jp1 = new JPanel();
JPanel jp2 = new JPanel();
JButton s= new JButton("STOP");
JButton p= new JButton("PLAY");
JLabel j1 = new JLabel("MusicFile");
String[] musicfiles={"file:///home/swathi/Desktop/spot3.mp3","anitha.mp3"};
JComboBox musiclist=new JComboBox(musicfiles);
musiclist.setSelectedIndex(1);
jp1.add(j1);
jp1.add(musiclist);
jp2.add(s);
jp2.add(p);
JSplitPane splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT,
true, jp1, jp2);
splitPane.setOneTouchExpandable(true);
getContentPane().add(splitPane);
public static void main(String[] args) {
AudioFile sp = new AudioFile();
sp.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
sp.setVisible(true);
} -
Fragmented sound when using Java Synthetizator
Hi,
What is the reason for sound fragmentation when using
Java synthetizator in playing midi files:
ByteArrayInputStream mididata = new ByteArrayInputStream(data);
AudioStream as = new AudioStream(mididata); //pre fragment? Priority problem?
mididata.close();
p.start(as);
as.close();}
catch (IOException f){System.out.println("error - " + f.toString());}
And why there is a "blob" in loadspeakers a few seconds before
the music starts?
See the whole source:
http://users.skynet.be/belgia/musitives/Synestesia.html
Regards,
LG
Metacomposer GR�HN http://users.skynet.be/belgia/midi/gallery.html
SYNESTESIA Open Source Java code generates music from any picturesNot sure about the fragmentation, but I guess the Blob is because you have crap in your buffer before you start to play. I don't remember what the fix is for it, but I think there is some way of clearing out the buffer.
-
I want to get system beep sound using java
System.out.println("\007");using I can play it. but I 'm using Eclipse IDE. There that is not work. I think i want to write shell java programm and there I want to run some C code. But I don't knoww it properly.
if aany one can do that . help me.
thank you....Problem is I can't play system beep in any IDE. that mean java.awt.Toolkit.getDefaultToolkit().beep(); is not work in Eclipse IDE.
may i can do it like this?
Runtime r = Runtime.getRuntime(); //get runtime information
try
Process Child = r.exec("cmd.exe") ; //execute command
BufferedWriter outCommand = new BufferedWriter(new OutputStreamWriter(Child.getOutputStream()));
outCommand.write("cmd.exe");
outCommand.flush();
catch(IOException eds)
{ //handle exec failure
System.out.println("ERROR: exec failure"+eds);
//System.exit(11); //exit application with exit code 11
} -
How to get / view Java Sound source code
Hi All,
I'm curious to view the Java Sound source code, is that possible? Let me know what I have done so far,
1. In eclipse I have mapped the src.zip from the JDK directory, now I am able to view most of the source code.
2. When I try to view AudioSystem.getProviders method it returns value from JDK13Services.getProviders
But I dont have source code for JDK13Services class, indeed i don't have com.sun.media package source code, in the src.zip
Do anyone know how to get com.sun.media package source code?
Thanks in advance,
Karthikeyan RIt appears that the 3rd entry of this search
[http://www.google.com/search?q=JDK13Services]
give both the javadoc and source for JDK13Services, as follows:
[http://www.docjar.org/docs/api/com/sun/media/sound/JDK13Services.html]
The other search listings appear to contain useful information, also. -
JVM crash when using debug mode in eclipse
Hi,
I get a SIGSEGV every time I use debug mode in Eclipse. Sometimes after a few breakpoints, sometimes when I start the debug view.
Have Eclipse helios and JRE 6.0_21-b06 but have also tried 1.6.0_03-b05 with same result.
The log file (hs_error_pidxxx.log) gives the following:
# A fatal error has been detected by the Java Runtime Environment:
# SIGSEGV (0xb) at pc=0xff23259c, pid=2917, tid=2
# JRE version: 6.0_21-b06
# Java VM: Java HotSpot(TM) Server VM (17.0-b16 mixed mode solaris-sparc )
# Problematic frame:
# C [libc.so.1+0x3259c] strncmp+0x348
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
--------------- T H R E A D ---------------
Current thread (0x0003d800): JavaThread "main" [_thread_in_native, id=2, stack(0xfe300000,0xfe380000)]
siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x00000000
Registers:
O0=0x00000001 O1=0x00000000 O2=0x00000001 O3=0x00000000
O4=0x00000102 O5=0x0125d898 O6=0xfe37d3b8 O7=0xe1dd104c
G1=0x00105000 G2=0x00007b00 G3=0x00000000 G4=0xe2947b08
G5=0xfee6e2e8 G6=0x00000000 G7=0xfe3e0200 Y=0x00000000
PC=0xff23259c nPC=0xff2325a0
Top of Stack: (sp=0xfe37d3b8)
0xfe37d3b8: 00000000 e1ebec00 ff2c1bd0 e1ebec00
0xfe37d3c8: 011966e8 00000001 fee2e000 00001cc4
0xfe37d3d8: 1d69c014 e2963fec 00000001 00000108
0xfe37d3e8: 0000006e 0000006e fe37d3f8 e2947bd4
0xfe37d3f8: e2963ff4 014e2b38 e2963ffc 00000000
0xfe37d408: fee2e000 011afd80 01da6f38 e2963fec
0xfe37d418: fe37d484 0125da90 0125dab8 00000002
0xfe37d428: 00000000 e2974f88 fe37d488 e2350fd4
Instructions: (pc=0xff23259c)
0xff23258c: 91 ee 00 00 b4 a6 a0 01 0a bf ff e1 01 00 00 00
0xff23259c: f8 0e 40 18 fa 0e 40 00 b2 06 60 01 80 a7 00 1d
Stack: [0xfe300000,0xfe380000], sp=0xfe37d3b8, free space=1f4ff23259ck
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libc.so.1+0x3259c] strncmp+0x348
C [libpangoft2-1.0.so.0.501.1+0x7bdc]
C [libswt-pi-gtk-3650.so+0x50fdc] Java_org_eclipse_swt_internal_gtk_OS__1pango_1context_1list_1families+0x74
j org.eclipse.swt.internal.gtk.OS._pango_context_list_families(I[I[I)V+472954808
j org.eclipse.swt.internal.gtk.OS._pango_context_list_families(I[I[I)V+0
j org.eclipse.swt.internal.gtk.OS.pango_context_list_families(I[I[I)V+10
j org.eclipse.swt.graphics.Device.getFontList(Ljava/lang/String;Z)[Lorg/eclipse/swt/graphics/FontData;+53
j org.eclipse.jface.resource.FontRegistry.filterData([Lorg/eclipse/swt/graphics/FontData;Lorg/eclipse/swt/widgets/Display;)[Lorg/eclipse/swt/graphics/FontData;+67
j org.eclipse.jface.resource.FontRegistry.createFont(Ljava/lang/String;[Lorg/eclipse/swt/graphics/FontData;)Lorg/eclipse/jface/resource/FontRegistry$FontRecord;+32
j org.eclipse.jface.resource.FontRegistry.getFontRecord(Ljava/lang/String;)Lorg/eclipse/jface/resource/FontRegistry$FontRecord;+53
j org.eclipse.jface.resource.FontRegistry.get(Ljava/lang/String;)Lorg/eclipse/swt/graphics/Font;+2
j org.eclipse.jface.resource.JFaceResources.getHeaderFont()Lorg/eclipse/swt/graphics/Font;+5
j org.eclipse.jdt.internal.ui.javaeditor.ClassFileEditor$SourceAttachmentForm.createTitleLabel(Lorg/eclipse/swt/widgets/Composite;Ljava/lang/String;)Lorg/eclipse/swt/widgets/Label;+36
j org.eclipse.jdt.internal.ui.javaeditor.ClassFileEditor$SourceAttachmentForm.createControl(Lorg/eclipse/swt/widgets/Composite;)Lorg/eclipse/swt/widgets/Control;+99
j org.eclipse.jdt.internal.ui.javaeditor.ClassFileEditor.verifyInput(Lorg/eclipse/ui/IEditorInput;)V+95
j org.eclipse.jdt.internal.ui.javaeditor.ClassFileEditor.createPartControl(Lorg/eclipse/swt/widgets/Composite;)V+96
j org.eclipse.ui.internal.EditorReference.createPartHelper()Lorg/eclipse/ui/IEditorPart;+361
j org.eclipse.ui.internal.EditorReference.createPart()Lorg/eclipse/ui/IWorkbenchPart;+27
j org.eclipse.ui.internal.WorkbenchPartReference.getPart(Z)Lorg/eclipse/ui/IWorkbenchPart;+65
j org.eclipse.ui.internal.EditorReference.getEditor(Z)Lorg/eclipse/ui/IEditorPart;+2
j org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(Lorg/eclipse/ui/IEditorInput;Ljava/lang/String;ZILorg/eclipse/ui/IMemento;)Lorg/eclipse/ui/IEditorPart;+233
j org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Lorg/eclipse/ui/IEditorInput;Ljava/lang/String;ZILorg/eclipse/ui/IMemento;)Lorg/eclipse/ui/IEditorPart;+27
j org.eclipse.ui.internal.WorkbenchPage.access$11(Lorg/eclipse/ui/internal/WorkbenchPage;Lorg/eclipse/ui/IEditorInput;Ljava/lang/String;ZILorg/eclipse/ui/IMemento;)Lorg/eclipse/ui/IEditorPart;+8
j org.eclipse.ui.internal.WorkbenchPage$10.run()V+29
j org.eclipse.swt.custom.BusyIndicator.showWhile(Lorg/eclipse/swt/widgets/Display;Ljava/lang/Runnable;)V+116
j org.eclipse.ui.internal.WorkbenchPage.openEditor(Lorg/eclipse/ui/IEditorInput;Ljava/lang/String;ZILorg/eclipse/ui/IMemento;)Lorg/eclipse/ui/IEditorPart;+59
j org.eclipse.ui.internal.WorkbenchPage.openEditor(Lorg/eclipse/ui/IEditorInput;Ljava/lang/String;ZI)Lorg/eclipse/ui/IEditorPart;+7
j org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$1.run()V+41
j org.eclipse.swt.custom.BusyIndicator.showWhile(Lorg/eclipse/swt/widgets/Display;Ljava/lang/Runnable;)V+116
j org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.openEditor(Lorg/eclipse/ui/IWorkbenchPage;Lorg/eclipse/ui/IEditorInput;Ljava/lang/String;)Lorg/eclipse/ui/IEditorPart;+26
j org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.openEditor(Lorg/eclipse/debug/ui/sourcelookup/ISourceLookupResult;Lorg/eclipse/ui/IWorkbenchPage;)Lorg/eclipse/ui/IEditorPart;+201
j org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.display(Lorg/eclipse/debug/ui/sourcelookup/ISourceLookupResult;Lorg/eclipse/ui/IWorkbenchPage;)V+3
j org.eclipse.debug.ui.DebugUITools.displaySource(Lorg/eclipse/debug/ui/sourcelookup/ISourceLookupResult;Lorg/eclipse/ui/IWorkbenchPage;)V+5
j org.eclipse.debug.internal.ui.elements.adapters.StackFrameSourceDisplayAdapter$SourceDisplayJob.runInUIThread(Lorg/eclipse/core/runtime/IProgressMonitor;)Lorg/eclipse/core/runtime/IStatus;+24
j org.eclipse.ui.progress.UIJob$1.run()V+53
J org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Z)Z
J org.eclipse.swt.widgets.Display.runAsyncMessages(Z)Z
J org.eclipse.ui.internal.Workbench.runEventLoop(Lorg/eclipse/jface/window/Window$IExceptionHandler;Lorg/eclipse/swt/widgets/Display;)V
j org.eclipse.ui.internal.Workbench.runUI()I+555
j org.eclipse.ui.internal.Workbench.access$4(Lorg/eclipse/ui/internal/Workbench;)I+1
j org.eclipse.ui.internal.Workbench$7.run()V+55
j org.eclipse.core.databinding.observable.Realm.runWithDefault(Lorg/eclipse/core/databinding/observable/Realm;Ljava/lang/Runnable;)V+12
j org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+18
j org.eclipse.ui.PlatformUI.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+2
j org.eclipse.ui.internal.ide.application.IDEApplication.start(Lorg/eclipse/equinox/app/IApplicationContext;)Ljava/lang/Object;+99
j org.eclipse.equinox.internal.app.EclipseAppHandle.run(Ljava/lang/Object;)Ljava/lang/Object;+135
j org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Ljava/lang/Object;)Ljava/lang/Object;+103
j org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ljava/lang/Object;)Ljava/lang/Object;+29
j org.eclipse.core.runtime.adaptor.EclipseStarter.run(Ljava/lang/Object;)Ljava/lang/Object;+149
j org.eclipse.core.runtime.adaptor.EclipseStarter.run([Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object;+183
v ~StubRoutines::call_stub
V [libjvm.so+0x15e33c]
V [libjvm.so+0x797afc]
V [libjvm.so+0x217704]
V [libjvm.so+0x215d8c]
C [libjava.so+0x10bfc] Java_sun_reflect_NativeMethodAccessorImpl_invoke0+0x18
j sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+746878888
j sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0
j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87
j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+161
j org.eclipse.equinox.launcher.Main.invokeFramework([Ljava/lang/String;[Ljava/net/URL;)V+211
j org.eclipse.equinox.launcher.Main.basicRun([Ljava/lang/String;)V+126
j org.eclipse.equinox.launcher.Main.run([Ljava/lang/String;)I+4
j org.eclipse.equinox.launcher.Main.main([Ljava/lang/String;)V+10
v ~StubRoutines::call_stub
V [libjvm.so+0x15e33c]
V [libjvm.so+0x2012dc]
C [java+0x3ab8]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j org.eclipse.swt.internal.gtk.OS._pango_context_list_families(I[I[I)V+0
j org.eclipse.swt.internal.gtk.OS.pango_context_list_families(I[I[I)V+10
j org.eclipse.swt.graphics.Device.getFontList(Ljava/lang/String;Z)[Lorg/eclipse/swt/graphics/FontData;+53
j org.eclipse.jface.resource.FontRegistry.filterData([Lorg/eclipse/swt/graphics/FontData;Lorg/eclipse/swt/widgets/Display;)[Lorg/eclipse/swt/graphics/FontData;+67
j org.eclipse.jface.resource.FontRegistry.createFont(Ljava/lang/String;[Lorg/eclipse/swt/graphics/FontData;)Lorg/eclipse/jface/resource/FontRegistry$FontRecord;+32
j org.eclipse.jface.resource.FontRegistry.getFontRecord(Ljava/lang/String;)Lorg/eclipse/jface/resource/FontRegistry$FontRecord;+53
j org.eclipse.jface.resource.FontRegistry.get(Ljava/lang/String;)Lorg/eclipse/swt/graphics/Font;+2
j org.eclipse.jface.resource.JFaceResources.getHeaderFont()Lorg/eclipse/swt/graphics/Font;+5
j org.eclipse.jdt.internal.ui.javaeditor.ClassFileEditor$SourceAttachmentForm.createTitleLabel(Lorg/eclipse/swt/widgets/Composite;Ljava/lang/String;)Lorg/eclipse/swt/widgets/Label;+36
j org.eclipse.jdt.internal.ui.javaeditor.ClassFileEditor$SourceAttachmentForm.createControl(Lorg/eclipse/swt/widgets/Composite;)Lorg/eclipse/swt/widgets/Control;+99
j org.eclipse.jdt.internal.ui.javaeditor.ClassFileEditor.verifyInput(Lorg/eclipse/ui/IEditorInput;)V+95
j org.eclipse.jdt.internal.ui.javaeditor.ClassFileEditor.createPartControl(Lorg/eclipse/swt/widgets/Composite;)V+96
j org.eclipse.ui.internal.EditorReference.createPartHelper()Lorg/eclipse/ui/IEditorPart;+361
j org.eclipse.ui.internal.EditorReference.createPart()Lorg/eclipse/ui/IWorkbenchPart;+27
j org.eclipse.ui.internal.WorkbenchPartReference.getPart(Z)Lorg/eclipse/ui/IWorkbenchPart;+65
j org.eclipse.ui.internal.EditorReference.getEditor(Z)Lorg/eclipse/ui/IEditorPart;+2
j org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(Lorg/eclipse/ui/IEditorInput;Ljava/lang/String;ZILorg/eclipse/ui/IMemento;)Lorg/eclipse/ui/IEditorPart;+233
j org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Lorg/eclipse/ui/IEditorInput;Ljava/lang/String;ZILorg/eclipse/ui/IMemento;)Lorg/eclipse/ui/IEditorPart;+27
j org.eclipse.ui.internal.WorkbenchPage.access$11(Lorg/eclipse/ui/internal/WorkbenchPage;Lorg/eclipse/ui/IEditorInput;Ljava/lang/String;ZILorg/eclipse/ui/IMemento;)Lorg/eclipse/ui/IEditorPart;+8
j org.eclipse.ui.internal.WorkbenchPage$10.run()V+29
j org.eclipse.swt.custom.BusyIndicator.showWhile(Lorg/eclipse/swt/widgets/Display;Ljava/lang/Runnable;)V+116
j org.eclipse.ui.internal.WorkbenchPage.openEditor(Lorg/eclipse/ui/IEditorInput;Ljava/lang/String;ZILorg/eclipse/ui/IMemento;)Lorg/eclipse/ui/IEditorPart;+59
j org.eclipse.ui.internal.WorkbenchPage.openEditor(Lorg/eclipse/ui/IEditorInput;Ljava/lang/String;ZI)Lorg/eclipse/ui/IEditorPart;+7
j org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$1.run()V+41
j org.eclipse.swt.custom.BusyIndicator.showWhile(Lorg/eclipse/swt/widgets/Display;Ljava/lang/Runnable;)V+116
j org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.openEditor(Lorg/eclipse/ui/IWorkbenchPage;Lorg/eclipse/ui/IEditorInput;Ljava/lang/String;)Lorg/eclipse/ui/IEditorPart;+26
j org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.openEditor(Lorg/eclipse/debug/ui/sourcelookup/ISourceLookupResult;Lorg/eclipse/ui/IWorkbenchPage;)Lorg/eclipse/ui/IEditorPart;+201
j org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.display(Lorg/eclipse/debug/ui/sourcelookup/ISourceLookupResult;Lorg/eclipse/ui/IWorkbenchPage;)V+3
j org.eclipse.debug.ui.DebugUITools.displaySource(Lorg/eclipse/debug/ui/sourcelookup/ISourceLookupResult;Lorg/eclipse/ui/IWorkbenchPage;)V+5
j org.eclipse.debug.internal.ui.elements.adapters.StackFrameSourceDisplayAdapter$SourceDisplayJob.runInUIThread(Lorg/eclipse/core/runtime/IProgressMonitor;)Lorg/eclipse/core/runtime/IStatus;+24
j org.eclipse.ui.progress.UIJob$1.run()V+53
J org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Z)Z
J org.eclipse.swt.widgets.Display.runAsyncMessages(Z)Z
J org.eclipse.ui.internal.Workbench.runEventLoop(Lorg/eclipse/jface/window/Window$IExceptionHandler;Lorg/eclipse/swt/widgets/Display;)V
j org.eclipse.ui.internal.Workbench.runUI()I+555
j org.eclipse.ui.internal.Workbench.access$4(Lorg/eclipse/ui/internal/Workbench;)I+1
j org.eclipse.ui.internal.Workbench$7.run()V+55
j org.eclipse.core.databinding.observable.Realm.runWithDefault(Lorg/eclipse/core/databinding/observable/Realm;Ljava/lang/Runnable;)V+12
j org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+18
j org.eclipse.ui.PlatformUI.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+2
j org.eclipse.ui.internal.ide.application.IDEApplication.start(Lorg/eclipse/equinox/app/IApplicationContext;)Ljava/lang/Object;+99
j org.eclipse.equinox.internal.app.EclipseAppHandle.run(Ljava/lang/Object;)Ljava/lang/Object;+135
j org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Ljava/lang/Object;)Ljava/lang/Object;+103
j org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ljava/lang/Object;)Ljava/lang/Object;+29
j org.eclipse.core.runtime.adaptor.EclipseStarter.run(Ljava/lang/Object;)Ljava/lang/Object;+149
j org.eclipse.core.runtime.adaptor.EclipseStarter.run([Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object;+183
v ~StubRoutines::call_stub
j sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0
j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87
j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+161
j org.eclipse.equinox.launcher.Main.invokeFramework([Ljava/lang/String;[Ljava/net/URL;)V+211
j org.eclipse.equinox.launcher.Main.basicRun([Ljava/lang/String;)V+126
j org.eclipse.equinox.launcher.Main.run([Ljava/lang/String;)I+4
j org.eclipse.equinox.launcher.Main.main([Ljava/lang/String;)V+10
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x016fec00 JavaThread "org.eclipse.jdt.internal.ui.text.JavaReconciler" daemon [_thread_blocked, id=300, stack(0xd8f00000,0xd8f80000)]
0x01a5dc00 JavaThread "org.eclipse.jdt.debug: JDI Event Dispatcher" daemon [_thread_blocked, id=292, stack(0xd9000000,0xd9080000)]
0x00a3bc00 JavaThread "Timer-2" daemon [_thread_blocked, id=291, stack(0xd9700000,0xd9780000)]
0x00a41000 JavaThread "Packet Send Manager" daemon [_thread_blocked, id=290, stack(0xd9100000,0xd9180000)]
0x01f73c00 JavaThread "Packet Receive Manager" daemon [_thread_in_native, id=289, stack(0xd9200000,0xd9280000)]
0x00e2a400 JavaThread "Timer-1" daemon [_thread_blocked, id=287, stack(0xd9a00000,0xd9a80000)]
0x0094c000 JavaThread "ServerConnection" [_thread_in_native, id=285, stack(0xd9800000,0xd9880000)]
0x0094bc00 JavaThread "Process monitor" daemon [_thread_blocked, id=284, stack(0xd9300000,0xd9380000)]
0x00895c00 JavaThread "Input Stream Monitor" daemon [_thread_blocked, id=283, stack(0xd9400000,0xd9480000)]
0x01fef800 JavaThread "Output Stream Monitor" daemon [_thread_in_native, id=282, stack(0xd9600000,0xd9680000)]
0x00a8b000 JavaThread "Output Stream Monitor" daemon [_thread_in_native, id=281, stack(0xd9900000,0xd9980000)]
0x011dbc00 JavaThread "process reaper" daemon [_thread_in_native, id=280, stack(0xd9500000,0xd9580000)]
0x01059800 JavaThread "Worker-24" [_thread_blocked, id=261, stack(0xd9c80000,0xd9d00000)]
0x01059000 JavaThread "Worker-23" [_thread_blocked, id=260, stack(0xde580000,0xde600000)]
0x02176000 JavaThread "Worker-22" [_thread_blocked, id=248, stack(0xddd00000,0xddd80000)]
0x01ff0800 JavaThread "Worker-21" [_thread_blocked, id=247, stack(0xda280000,0xda300000)]
0x00c41c00 JavaThread "Worker-20" [_thread_blocked, id=245, stack(0xdd700000,0xdd780000)]
0x0268bc00 JavaThread "Worker-19" [_thread_blocked, id=243, stack(0xde000000,0xde080000)]
0x0141e800 JavaThread "Worker-18" [_thread_blocked, id=242, stack(0xdda00000,0xdda80000)]
0x019aec00 JavaThread "Worker-16" [_thread_blocked, id=227, stack(0xddf00000,0xddf80000)]
0x0143b800 JavaThread "org.eclipse.jdt.internal.ui.text.JavaReconciler" daemon [_thread_blocked, id=223, stack(0xddb00000,0xddb80000)]
0x01022800 JavaThread "org.eclipse.jdt.internal.ui.text.JavaReconciler" daemon [_thread_blocked, id=219, stack(0xdde00000,0xdde80000)]
0x00a58800 JavaThread "Worker-12" [_thread_blocked, id=211, stack(0xde680000,0xde700000)]
0x018c5400 JavaThread "pool-1-thread-5" [_thread_blocked, id=187, stack(0xd9d80000,0xd9e00000)]
0x013cdc00 JavaThread "pool-1-thread-4" [_thread_blocked, id=186, stack(0xda380000,0xda400000)]
0x002a4c00 JavaThread "pool-1-thread-3" [_thread_blocked, id=185, stack(0xddc00000,0xddc80000)]
0x0282b400 JavaThread "pool-1-thread-2" [_thread_blocked, id=184, stack(0xd9e80000,0xd9f00000)]
0x018c6400 JavaThread "pool-1-thread-1" [_thread_blocked, id=183, stack(0xd9f80000,0xda000000)]
0x00973000 JavaThread "Timer-0" daemon [_thread_blocked, id=75, stack(0xdd800000,0xdd880000)]
0x00ab8000 JavaThread "Thread-39" daemon [_thread_blocked, id=74, stack(0xdd500000,0xdd580000)]
0x00dc1400 JavaThread "Worker-6" [_thread_blocked, id=73, stack(0xdd900000,0xdd980000)]
0x004db000 JavaThread "Thread-32" daemon [_thread_in_native, id=66, stack(0xda4d0000,0xda4e0000)]
0x011eb000 JavaThread "[ThreadPool Manager] - Idle Thread" daemon [_thread_blocked, id=43, stack(0xdd400000,0xdd480000)]
0x003e6400 JavaThread "Bundle File Closer" daemon [_thread_blocked, id=27, stack(0xde100000,0xde180000)]
0x007c6c00 JavaThread "org.eclipse.jdt.internal.ui.text.JavaReconciler" daemon [_thread_blocked, id=26, stack(0xde200000,0xde280000)]
0x001ce800 JavaThread "Java indexing" daemon [_thread_blocked, id=24, stack(0xde380000,0xde400000)]
0x00191400 JavaThread "Worker-0" [_thread_blocked, id=21, stack(0xe2580000,0xe2600000)]
0x01235400 JavaThread "Worker-JM" [_thread_blocked, id=20, stack(0xe2380000,0xe2400000)]
0x007ff400 JavaThread "[Timer] - Main Queue Handler" daemon [_thread_blocked, id=19, stack(0xe2480000,0xe2500000)]
0x0074e000 JavaThread "Framework Event Dispatcher" daemon [_thread_blocked, id=17, stack(0xe2680000,0xe2700000)]
0x00390000 JavaThread "Start Level Event Dispatcher" daemon [_thread_blocked, id=16, stack(0xe2780000,0xe2800000)]
0x005c9800 JavaThread "State Data Manager" daemon [_thread_blocked, id=15, stack(0xe2880000,0xe2900000)]
0x00124800 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=13, stack(0xe2a80000,0xe2b00000)]
0x00122400 JavaThread "CompilerThread1" daemon [_thread_blocked, id=12, stack(0xe2b80000,0xe2c00000)]
0x00110c00 JavaThread "CompilerThread0" daemon [_thread_blocked, id=11, stack(0xe2c80000,0xe2d00000)]
0x00118000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=10, stack(0xe2d80000,0xe2e00000)]
0x00107c00 JavaThread "Finalizer" daemon [_thread_blocked, id=9, stack(0xe2e80000,0xe2f00000)]
0x00106400 JavaThread "Reference Handler" daemon [_thread_blocked, id=8, stack(0xe2f80000,0xe3000000)]
=>0x0003d800 JavaThread "main" [_thread_in_native, id=2, stack(0xfe300000,0xfe380000)]
Other Threads:
0x00103c00 VMThread [stack: 0xe3080000,0xe3100000] [id=7]
0x0012ec00 WatcherThread [stack: 0xe2980000,0xe2a00000] [id=14]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
PSYoungGen total 40704K, used 18973K [0xf6000000, 0xf9400000, 0xfb800000)
eden space 29568K, 59% used [0xf6000000,0xf714b120,0xf7ce0000)
from space 11136K, 11% used [0xf7e40000,0xf7f7c5c8,0xf8920000)
to space 10432K, 0% used [0xf89d0000,0xf89d0000,0xf9400000)
PSOldGen total 90112K, used 71968K [0xeb400000, 0xf0c00000, 0xf6000000)
object space 90112K, 79% used [0xeb400000,0xefa48298,0xf0c00000)
PSPermGen total 73728K, used 71408K [0xe3400000, 0xe7c00000, 0xeb400000)
object space 73728K, 96% used [0xe3400000,0xe79bc298,0xe7c00000)
Dynamic libraries:
0x00010000 /proj/atelteadm/tools/jdk1.6.0_21/bin/java
0xff3a0000 /lib/libthread.so.1
0xff370000 /proj/atelteadm/tools/jdk1.6.0_21/bin/../jre/lib/sparc/jli/libjli.so
0xff350000 /lib/libdl.so.1
0xff200000 /lib/libc.so.1
0xff390000 /platform/SUNW,Sun-Fire-V445/lib/libc_psr.so.1
0xfe400000 /proj/atelteadm/tools/jdk1.6.0_21/jre/lib/sparc/server/libjvm.so
0xff1d0000 /lib/libsocket.so.1
0xff1f0000 /usr/lib/libsched.so.1
0xff1b0000 /lib/libm.so.1
0xff180000 /usr/lib/libCrun.so.1
0xff160000 /lib/libdoor.so.1
0xff080000 /lib/libnsl.so.1
0xfef80000 /lib/libm.so.2
0xff050000 /lib/libscf.so.1
0xff140000 /lib/libuutil.so.1
VM Arguments:
jvm_args: -Xms128m -Xmx256m -XX:MaxPermSize=128m
java_command: /proj/atelteadm/tools/eclipse_dist_jcat/e4e_fix//plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar -os solaris -ws gtk -arch sparc -showsplash -launcher /proj/atelteadm/tools/eclipse_dist_jcat/e4e_fix/eclipse -name Eclipse --launcher.library /proj/atelteadm/tools/eclipse_dist_jcat/e4e_fix//plugins/org.eclipse.equinox.launcher.gtk.solaris.sparc_1.1.0.v20100503/eclipse_1307.so -startup /proj/atelteadm/tools/eclipse_dist_jcat/e4e_fix//plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar -exitdata 74000027 -install /proj/atelteadm/tools/eclipse_dist_jcat/e4e_fix -nl en_US -showlocation -vm /proj/atelteadm/tools/jdk1.6.0_21//bin/java -vmargs -Xms128m -Xmx256m -XX:MaxPermSize=128m -jar /proj/atelteadm/tools/eclipse_dist_jcat/e4e_fix//plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
Launcher Type: SUN_STANDARD
Environment Variables:
PATH=/usr/local/opt/apssystem/aps_9.1/bin:/proj/aps/bin:/home/ehollis/.afs/0/rbin:/home/ehollis/.afs/0/pbin:/env/seli/bin:/home/ehollis/.afs/0/ibin:/usr/atria/bin:/usr/afsws/bin:/usr/bin:/usr/X/bin:/usr/dt/bin:/usr/openwin/demo:/usr/openwin/bin:/usr/dt/bin:/usr/ccs/bin:/usr/sbin:/sbin:/usr/ucb:/opt/seli/bin:/opt/sge/seli/etegrid/bin:/opt/sge/seli/bctgrid/bin:/usr/ucb:.
LD_LIBRARY_PATH=/proj/atelteadm/tools/jdk1.6.0_21/jre/lib/sparc/server:/proj/atelteadm/tools/jdk1.6.0_21/jre/lib/sparc:/proj/atelteadm/tools/jdk1.6.0_21/jre/../lib/sparc:/app/gtk+/2.2.2/lib:/usr/sfw/lib/mozilla/
SHELL=/bin/tcsh
DISPLAY=:16.0
HOSTTYPE=sun4
OSTYPE=solaris
MACHTYPE=sparc
Signal Handlers:
SIGSEGV: [libjvm.so+0x87b320], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGBUS: [libjvm.so+0x87b320], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGFPE: [libjvm.so+0x1c4174], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGPIPE: SIG_IGN, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGXFSZ: [libjvm.so+0x1c4174], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGILL: [libjvm.so+0x1c4174], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGUSR2: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGQUIT: [libjvm.so+0x7560bc], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
SIGHUP: [libjvm.so+0x7560bc], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
SIGINT: [libjvm.so+0x7560bc], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
SIGTERM: [libjvm.so+0x7560bc], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
SIG39: [libjvm.so+0x759ae8], sa_mask[0]=0x00000000, sa_flags=0x00000008
SIG40: [libjvm.so+0x1c4174], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
--------------- S Y S T E M ---------------
OS: Solaris 10 10/08 s10s_u6wos_07b SPARC
uname:SunOS 5.10 Generic_142900-13 sun4u (T2 libthread)
vm_info: Java HotSpot(TM) Server VM (17.0-b16) for solaris-sparc JRE (1.6.0_21-b06), built on Jun 22 2010 01:34:33 by "" with Workshop 5.8
Any clues anyone?get a SIGSEGV every time I use debug mode in EclipseSo if you create a hello world program and then debug it, it crashes?
If yes then the causes would be
1. The VM(s) binaries are corrupted. Plural as it depends on how you run Eclipse.
2. Something else installed on your system at the OS level (or at least always running) is corrupt or is corrupting the OS.
3. A hardware failure. -
Simple Java Sound Question...
Can I draw waveforms while capturing data? If yes, how. If no, why.
Thanks. I need the answer ASAP, please help.Hi nfactorial,
Can I draw waveforms while capturing data?If you would like to do that in Java you would need to know about how to use the Java language in general and especially about the Java Sound and Java2D APIs.
If yes, how.It would be too much to explain to answer such a general question. A general answer is, you need to use the Java Sound API to capture the data for which a waveform should be drawn. The Sound API delivers data as a stream of bytes typically encoded in pulse coded modulation (PCM) format. The data stream has digital samples each representing a level of sound pressure for a certain point in time. The stream of samples in the amplitude/time domain need to be transformed to a spectrum of samples in the amplitude/frequency domain, i.e. a number of PCM samples need to be mapped to the frequencies that should be displayed. This is done with the fast fourier transformation algorithm. Each set of amplitude/frequency values can then be displayed as a waveform by using some line drawing logic. The entire process would need to run constantly, i.e. as bytes are received from the sound data stream transformation and drawing is triggered.
Related readings:
Java Tutorial
http://java.sun.com/docs/books/tutorial/
Java Sound Documentation
http://java.sun.com/j2se/1.5.0/docs/guide/sound/index.html
Java Sound API Programmer's Guide
http://java.sun.com/j2se/1.5.0/docs/guide/sound/programmer_guide/contents.html
Java Sound Resources
http.//www.jsresources.org
Java 2D Graphics Tutorial
http://java.sun.com/docs/books/tutorial/2d/index.html
Wikipedia on fast fourier transformation
http://en.wikipedia.org/wiki/Fast_fourier_transform
HTH
Ulrich -
How to extract the number from image using java
Hello every one
i want to develope a project which can extract the number from image
that i can use as inter or String or char.
Is there any API in java which provide this type of facility.
right now i m using java 5
thanks in Advance
JigneshIn my project i have a image in that i have a
co-ordinate (x,y) I am still puzzled as to what you seek. It sounds to me like you have a point (x, y) represented by p. in java it's just p.getX() p.getY()
i want to convert that cordinate to numeric form,
i mena i want to use that cordinate in somewhere else
in project.point.getX() point.getY()
So need to convert it into numeric form u can called
it OCR also.OCR is optical character recognition. If I want out and took a picture of the US Declaration of Independence and then wanted the words on the parchement in the picture in text form, then I would run the picture through a software program and it would try to optically recognise what lettering and number were present in the picture. In the end, I would have a text of what is written on the US Declaration of Independence.
Is that what you want? -
How to use shift_jis encoding in eclipse 3.2???
i can't use shift_jis encoding in eclipse 3.2
how to add this encoding to eclipse????
please help meI just tested it at my Eclipse environment. It was set to UTF-8 and the following line was not allowed:
String 試験 = "試験";When I set the encoding to UTF-16, it was accepted. If you still fails in this somehow, consult the eclipse boys, as said before.
However. In name of reusability I don't recommend to use other languages than English thoroughout the whole Java code. Maybe only in javadocs. But still, English is preferred over all other languages. The core Java API itself is also all in English.
Maybe you are looking for
-
Help me,JSP is not recognizing the class which in in jar under root of ear
<%@ page import="com.sample.components.HttpUtil"%> I am not able to get the HttpUtil class in my JSP.Above is my declaration .I am getting compilation error. The HttpUtil class is under components package,which was in components.jar. And it is kept u
-
Good morning. A colleague of mine runs iPhoto 6 on his iMac. Doesn't this version allow for a preview of the photos that he will import? When he plugs in his Canon Powershot all he sees in the import window is an icon of the camera but no photos. Che
-
Problem to specify database access acount in sharepoint configuration wizard
I installed sharepoint 2013 and run configuration wizard. In the page "Specify Confguration Database Settings" and in the section "specify database access acount" I enter my domain admin account user (in DOMAIN\user_name format) and pass and I'm sur
-
.dmg file crashes Finder
I have a .dmg file that crashes Finder after mounting. The mounted image icon appears on the desktop, but not in the Finder window sidebar. When I try and open Finder crashes and starts up again. I have tried verifying and repairing the file in Disk
-
Oracle Customer Hub - where do I find the product to download?
I know this sounds dumb.... but I've searched the OTN Downloads, and Edelivery but where can I go to download a trial version of Oracle Customer Hub (OCH) and Oracle Product Hub (OPH)?