Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~15.3K People Reached
Favorite Forums
Favorite Tags
java x 189
Member Avatar for George2

Hello everyone, When using the following source codes to play a local .wav file, I always find .wav files can not played. Does anyone know what is the trouble? [Code] import java.io.File; import java.io.IOException; import javax.sound.sampled.AudioFormat; import javax.sound.sampled.AudioInputStream; import javax.sound.sampled.AudioSystem; import javax.sound.sampled.DataLine; import javax.sound.sampled.FloatControl; import javax.sound.sampled.LineUnavailableException; import javax.sound.sampled.SourceDataLine; public class …

Member Avatar for stultuske
0
967
Member Avatar for George2

Hello everyone, Please look at the following code block, [code] public void Foo() { synchronized (lock) { //do task 1 try { lock.wait(); } catch (InterruptedException e) { // TODO Auto-generated catch lock e.printStackTrace(); } //do task 2 } } [/code] Suppose multiple threads have entered the synchronized block one …

Member Avatar for anand.g
0
179
Member Avatar for George2

Hello everyone, My application needs a feature to detect whether a directed graph contains circle. Does anyone know any efficient implementation? Which implementation is the best (most efficient)? thanks in advance & happy new year, George

Member Avatar for mayne
0
541
Member Avatar for George2

Hello everyone, Are there any approaches to invoke Java libraries from C/C++? Thanks in advance, George

Member Avatar for hasrule
0
529
Member Avatar for George2

Hello everyone, I am looking for some approaches which can prevent my .class file being decompiled. My questions are, - I have heard that there is an approach called "obfuscated", I am wondering whether it is the best approach which meets my goal. If it is, where is the best …

Member Avatar for masijade
0
140
Member Avatar for George2

Hello everyone, I am working on a dictionary application implementation. I have question about a string pattern matching algorithm implementation. In this algorithm, * can be used to match any sequence of characters. The input is string s1 and string s2, the algorithm using s2 to match s1, and the …

Member Avatar for javaAddict
0
441
Member Avatar for George2

Hello everyone, I am looking for open source message queue implementation in Java. Does anyone know where can I find a 100% pure Java implementation of message queue with basic features? It is better an implementation which does not rely on other components and can be used as a utility …

Member Avatar for BestJewSinceJC
0
427
Member Avatar for George2

Hello everyone, I have written the folllowing scripts, just want to output "Foo is true." when the property foo is set to true. But when using Eclipse to run the simple script, there are something wrong. Could anyone help to check what is the wrong with my shell scripts? Source …

Member Avatar for vinu09
0
203
Member Avatar for George2

Hello everyone, I want to use javax.comm to do serial cable communication on Linux platform. Currently, I can not find enough learning materials (tutorials and samples) from searching the net. Could anyone help to recommend some good ones? thanks in advance, George

Member Avatar for jwenting
0
224
Member Avatar for George2

Hello everyone, I am wondering if I want to debug JNI application (upper layer Java and lower layer C), are there any tools to debug through Java code to C code and return back from C code to Java code. I am using Eclipse. But I do not find such …

Member Avatar for vvl
0
141
Member Avatar for George2

Hello everyone, I am using JDBC to compare the content of two database tables -- writing a general function and two tables are input. The two tables have various types of columns, like VARCHAR, BLOB, INT, FLOAT, etc. I want to save my time to write various statements to get …

Member Avatar for George2
0
2K
Member Avatar for George2

Hello everyone, I am using JDK 1.4 and there is a compiling a 3rd party program error because of un-recognized word @override. Could anyone let me know what is the function of @override and in order to use it, which version of JDK is required? thanks in advance, George

Member Avatar for TheGathering
0
99
Member Avatar for George2

Hello everyone, When running my program on Java JVM 5.0, there are strange stack errors. What may be the root cause? (foo.dll is my JNI invoked native library.) -------------------- Registers: EAX=0x0c213e40, EBX=0x00000000, ECX=0x00000000, EDX=0x00000000 ESP=0x0c213e0c, EBP=0x0c213e44, ESI=0x00000000, EDI=0x00000000 EIP=0x0c4e8070, EFLAGS=0x0001024f Top of Stack: (sp=0x0c213e0c) 0x0c213e0c: 00000000 00000000 00000000 0b97aeb0 0x0c213e1c: …

Member Avatar for jwenting
0
125
Member Avatar for George2

Hello everyone, I am wondering what is the differences between Java HotSpot(TM) Client VM and the J2SE VM I downloaded from java.sun.com? Are they the same thing? Why Hotspot VM has client and server version? thanks in advance, George

Member Avatar for jwenting
0
59
Member Avatar for George2

Hello everyone, From the available documents from java.sun.com, I can not find rich information about this option, which is used to tune memory of JVM. Are there any samples/documents of this option, like the meaning/function/best practices of this option. Thanks. regards, George

Member Avatar for jwenting
0
96
Member Avatar for George2

Hello everyone, I am wondeirng how to convert an ObjectInputStream to a byte array, then convert the array back to ObjectInputStream -- should I convert the array back to ObjectOutputStream other than ObjectInputStream? Any sample codes? thanks in advance, George

0
63
Member Avatar for George2

Hello everyone, When reading from a socket, I got error, java.io.StreamCorruptedException unexpected end of block data I only get it very randomly and very hard to reproduce. Does anyone encounter this before, any ideas? Should it be caused by server side (output stream is not flushed)? BTW: I program both …

0
74
Member Avatar for George2

Hello everyone, I want to use JDBC to access DB2 database. I also want to display the content of a specific table (table name is configurable) into web page (just like what is displayed when we use command line "select * from <table name>" on the console). I am wondering …

0
58
Member Avatar for George2

Hello everyone, I am wondering how to transpose a matrix (m * n) with only constant space complexity O (1). (The transpose algorithm should execute/operate on the original matrix.) thanks in advance, George

Member Avatar for jwenting
1
147
Member Avatar for George2

Hello everyone, I have heard that static variable will make the program consume very much memory. It is because garbage collector (GC) will not work on static variable. Is that correct? I am also wondering when does the memory space of a static variable is allocated, during compile or during …

Member Avatar for George2
0
2K
Member Avatar for George2

Hello everyone, I have always seen some methods are described as "best practice". I am wondering what means "best practice", an algorithm? Thanks in advance, George

Member Avatar for Gargol
0
408
Member Avatar for George2

Hello everyone, I have heard that the search engine of Yahoo is based on open source search technology, is that true? If it is true, what open source search technology is it using? Is Yahoo search engine itself open source? thanks in advance, George

Member Avatar for George2
0
280
Member Avatar for George2

Hello everyone, When debugging a C or C++ binary file, the file is different from the release version of binary file (debug version binary file is larger). My question is, if we want to debug a Java binary file (.class file), is the version of file (which we use to …

Member Avatar for George2
0
210
Member Avatar for George2

Hello everyone, I want to write an own CVS client in Java. And I am looking for the following materials, - CVS protocol specification - Education materials about CVS protocol - A simple open source CVS client in Java Could anyone help? thanks in advance, George

Member Avatar for George2
0
359
Member Avatar for George2

Hello everyone, I am looking for education materials of developing C++ application with Eclipse. Could anyone recommend some good education materials? Thanks in advance, George

Member Avatar for George2
0
126
Member Avatar for George2

Hello everyone, When running the following block of source codes (the MMAPI library I am using is downloaded from [url]http://www.sun.com/software/communitysource/j2me/mmapi/[/url]) [Code] public static void main(String[] args) { try { Player player = Manager.createPlayer"http://localhost/sample.wav"); player.start(); } catch (MediaException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } } [/Code] java.lang.UnsatisfiedLinkError …

Member Avatar for George2
1
303
Member Avatar for George2

Hello everyone, Does anyone know where could I find open source OMA Device Management client? thanks in advance, George

0
60
Member Avatar for George2

Hello everyone, When exceptions occur in constructor so that the instance of the object can not be created, should we throw the exception to the invoker of the constructor or simply catch the exception (and not throw it again)? I think we should not catch the exception (and not throw …

Member Avatar for George2
0
177
Member Avatar for George2

Hello everyone, I want to run tasks with priority, i.e. among several simultaneous running tasks, the task with the higher priority will have more chances to occupy CPU time. I have the following 2 issues dealing with the implementation of such feature. - To define each task as a thread …

Member Avatar for George2
0
191
Member Avatar for George2

Hello everyone, I want to clone the content of a Hashtable (its keys, its values and its key-value relationship). But I have found that the clone method can not completely clone a Hashtable, as is mentioned in the description of clone method of Java API Specification, Creates a shallow copy …

0
81