Click here to Skip to main content
15,893,668 members
Home / Discussions / Java
   

Java

 
GeneralRe: why validation wont work? Pin
pancakeleh5-Jan-11 14:24
pancakeleh5-Jan-11 14:24 
GeneralRe: why validation wont work? Pin
Khalil Adam19-Jan-11 2:15
Khalil Adam19-Jan-11 2:15 
Questionwhich keyword used for differentiating local and global variable in java. Pin
shiva.kore4-Jan-11 7:37
shiva.kore4-Jan-11 7:37 
AnswerRe: which keyword used for differentiating local and global variable in java. Pin
jschell4-Jan-11 8:11
jschell4-Jan-11 8:11 
AnswerRe: which keyword used for differentiating local and global variable in java. Pin
Richard MacCutchan4-Jan-11 21:31
mveRichard MacCutchan4-Jan-11 21:31 
AnswerRe: which keyword used for differentiating local and global variable in java. Pin
TorstenH.4-Jan-11 22:07
TorstenH.4-Jan-11 22:07 
AnswerRe: which keyword used for differentiating local and global variable in java. Pin
Ramaiah Raj30-Jan-11 20:16
Ramaiah Raj30-Jan-11 20:16 
QuestionLoading a sound file from a jar archive [SOLVED] Pin
Pamodh2-Jan-11 2:59
Pamodh2-Jan-11 2:59 
I'm developing a small game using the Swing Application Framework and I have stored a sound file (to be played when the user clicks something) in the application.resources folder:
resourceMap.getClassLoader().getResource(resourceMap.getResourcesDir()+"Beep.au").getPath();

(Then I use the path text returned to create a new File object which I pass into the AudioInputStream's constructor).
I'm using NetBeans and it works fine when I run it in NetBeans. But when I run it outside NetBeans (by executing the jar file that NetBeans creates) I can't play the sound because a null pointer exception gets generated in the AudioInputStream's constructor.

Can anyone help me out here to figure out what's going wrong?

modified on Monday, January 3, 2011 8:47 AM

AnswerRe: Loading a sound file from a jar archive Pin
jschell2-Jan-11 9:03
jschell2-Jan-11 9:03 
GeneralRe: Loading a sound file from a jar archive Pin
Pamodh3-Jan-11 2:46
Pamodh3-Jan-11 2:46 
GeneralRe: Loading a sound file from a jar archive Pin
jschell3-Jan-11 9:56
jschell3-Jan-11 9:56 
GeneralRe: Loading a sound file from a jar archive Pin
Pamodh4-Jan-11 4:23
Pamodh4-Jan-11 4:23 
Questionvalidation Pin
pancakeleh30-Dec-10 16:46
pancakeleh30-Dec-10 16:46 
AnswerRe: validation Pin
Richard MacCutchan30-Dec-10 23:00
mveRichard MacCutchan30-Dec-10 23:00 
GeneralRe: validation Pin
pancakeleh3-Jan-11 15:56
pancakeleh3-Jan-11 15:56 
GeneralRe: validation Pin
TorstenH.3-Jan-11 21:13
TorstenH.3-Jan-11 21:13 
GeneralRe: validation Pin
Richard MacCutchan4-Jan-11 1:56
mveRichard MacCutchan4-Jan-11 1:56 
QuestionJava MySQL Driver issue Pin
khurram_shahzad29-Dec-10 6:03
khurram_shahzad29-Dec-10 6:03 
AnswerRe: Java MySQL Driver issue Pin
Min.Liao29-Dec-10 14:44
Min.Liao29-Dec-10 14:44 
GeneralRe: Java MySQL Driver issue Pin
khurram_shahzad29-Dec-10 20:30
khurram_shahzad29-Dec-10 20:30 
Questionjava.lang.IllegalArgumentException Pin
pancakeleh28-Dec-10 16:59
pancakeleh28-Dec-10 16:59 
QuestionProblem Pin
pancakeleh27-Dec-10 19:52
pancakeleh27-Dec-10 19:52 
AnswerRe: Problem Pin
Richard MacCutchan27-Dec-10 22:31
mveRichard MacCutchan27-Dec-10 22:31 
AnswerRe: Problem Pin
RaviRanjanKr14-Apr-11 6:00
professionalRaviRanjanKr14-Apr-11 6:00 
Questionconvert to integer? Pin
pancakeleh22-Dec-10 20:44
pancakeleh22-Dec-10 20:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.