Weird Java runtime error -


i keep getting error during runtime , have no idea causing it. believes there file missing?

caused by: java.io.filenotfoundexception: c:\program files\java\jdk1.7.0_07\lib\currency.data

what currency.data , can suggest why happening, jdk isn't old since we're in 7u17 now.

exception in thread "awt-eventqueue-0" java.lang.internalerror     @ java.util.currency$1.run(unknown source)     @ java.security.accesscontroller.doprivileged(native method)     @ java.util.currency.<clinit>(unknown source)     @ java.text.decimalformatsymbols.initialize(unknown source)     @ java.text.decimalformatsymbols.<init>(unknown source)     @ java.text.decimalformatsymbols.getinstance(unknown source)     @ java.text.numberformat.getinstance(unknown source)     @ java.text.numberformat.getnumberinstance(unknown source)     @ java.util.scanner.uselocale(unknown source)     @ java.util.scanner.<init>(unknown source)     @ java.util.scanner.<init>(unknown source)     @ ciphor.cicompile$7.actionperformed(cicompile.java:458)     @ javax.swing.abstractbutton.fireactionperformed(unknown source)     @ javax.swing.abstractbutton$handler.actionperformed(unknown source)     @ javax.swing.defaultbuttonmodel.fireactionperformed(unknown source)     @ javax.swing.defaultbuttonmodel.setpressed(unknown source)     @ javax.swing.plaf.basic.basicbuttonlistener.mousereleased(unknown source)     @ java.awt.component.processmouseevent(unknown source)     @ javax.swing.jcomponent.processmouseevent(unknown source)     @ java.awt.component.processevent(unknown source)     @ java.awt.container.processevent(unknown source)     @ java.awt.component.dispatcheventimpl(unknown source)     @ java.awt.container.dispatcheventimpl(unknown source)     @ java.awt.component.dispatchevent(unknown source)     @ java.awt.lightweightdispatcher.retargetmouseevent(unknown source)     @ java.awt.lightweightdispatcher.processmouseevent(unknown source)     @ java.awt.lightweightdispatcher.dispatchevent(unknown source)     @ java.awt.container.dispatcheventimpl(unknown source)     @ java.awt.window.dispatcheventimpl(unknown source)     @ java.awt.component.dispatchevent(unknown source)     @ java.awt.eventqueue.dispatcheventimpl(unknown source)     @ java.awt.eventqueue.access$200(unknown source)     @ java.awt.eventqueue$3.run(unknown source)     @ java.awt.eventqueue$3.run(unknown source)     @ java.security.accesscontroller.doprivileged(native method)     @ java.security.protectiondomain$1.dointersectionprivilege(unknown source)     @ java.security.protectiondomain$1.dointersectionprivilege(unknown source)     @ java.awt.eventqueue$4.run(unknown source)     @ java.awt.eventqueue$4.run(unknown source)     @ java.security.accesscontroller.doprivileged(native method)     @ java.security.protectiondomain$1.dointersectionprivilege(unknown source)     @ java.awt.eventqueue.dispatchevent(unknown source)     @ java.awt.eventdispatchthread.pumponeeventforfilters(unknown source)     @ java.awt.eventdispatchthread.pumpeventsforfilter(unknown source)     @ java.awt.eventdispatchthread.pumpeventsforhierarchy(unknown source)     @ java.awt.eventdispatchthread.pumpevents(unknown source)     @ java.awt.eventdispatchthread.pumpevents(unknown source)     @ java.awt.eventdispatchthread.run(unknown source) caused by: java.io.filenotfoundexception: c:\program files\java\jdk1.7.0_07\lib\currency.data (the system cannot find file specified)     @ java.io.fileinputstream.open(native method)     @ java.io.fileinputstream.<init>(unknown source)     @ java.io.fileinputstream.<init>(unknown source)     ... 48 more 

i'm running program jdk environment, checked jre7 folder , currency.data present there! why present in jre folder?

i got similar error , other people may fall same trap :)

error :

java.lang.internalerror: java.io.filenotfoundexception: null/lib/currency.data (no such file or directory) 

this because set global properties turns out un-clever thing do.

system.setproperties(new properties()); 

the system properties populated important data including:

  • path.separator
  • user.dir
  • file.encoding
  • file.separator
  • java.io.tmpdir

so don't above unless know doing.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -