Background: I’ve had a stressfull 24 hours. PC get shutting down which turned out to be thermal paste causing CPU to overheat. Decided to treat myself to closed loop water cooler and had the devil’s job installing it. I’ve seen watches with fewer parts than what came with the cooler, the instructions are tiny and written in umpteen languages, diagrams refer to part numbers which are actually letters on the parts, all writing on the parts is tiny black writing on a black background - I nearly lost the will to live. Finally got it installed and the damn PC wouldn’t start at all. Eventually took the whole PC apart and rebuilt it piece by piece, testing as I went. Finally it works again…
Problem : Sadly when I came to compile my projects I ended up with the same bizarre error occurring each time. The code was running fine. The various projects compile fine but just stop immediately on running. Oddly, I have one project without sound and that runs fine. I use the tinysound jar and have a separate copy of the jar in each of my different game directories. This is the error I’m shown:
E:\Dropbox\Projects\CloudMiner>javac -cp ".;tinysound-1.1.1.jar" CloudMiner.java
E:\Dropbox\Projects\CloudMiner>jar -cfm CloudMiner.jar Manifest.txt *.class *.png *.wav
E:\Dropbox\Projects\CloudMiner>java -cp ".;CloudMiner.jar;tinysound-1.1.1.jar" -Dsun.java2d.noddraw=true CloudMiner
Exception in thread "main" java.lang.InternalError: java.util.zip.ZipException: error in opening zip file
at sun.misc.URLClassPath$JarLoader.getResource(Unknown Source)
at sun.misc.URLClassPath$2.next(Unknown Source)
at sun.misc.URLClassPath$2.hasMoreElements(Unknown Source)
at java.lang.ClassLoader$2.hasMoreElements(Unknown Source)
at sun.misc.CompoundEnumeration.next(Unknown Source)
at sun.misc.CompoundEnumeration.hasMoreElements(Unknown Source)
at sun.misc.CompoundEnumeration.next(Unknown Source)
at sun.misc.CompoundEnumeration.hasMoreElements(Unknown Source)
at java.util.ServiceLoader$LazyIterator.hasNextService(Unknown Source)
at java.util.ServiceLoader$LazyIterator.hasNext(Unknown Source)
at java.util.ServiceLoader$1.hasNext(Unknown Source)
at com.sun.media.sound.JSSecurityManager$4.run(Unknown Source)
at com.sun.media.sound.JSSecurityManager$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.media.sound.JSSecurityManager.getProviders(Unknown Source)
at com.sun.media.sound.JDK13Services.getProviders(Unknown Source)
at javax.sound.sampled.AudioSystem.getProviders(Unknown Source)
at javax.sound.sampled.AudioSystem.getMixerProviders(Unknown Source)
at javax.sound.sampled.AudioSystem.getMixerInfoList(Unknown Source)
at javax.sound.sampled.AudioSystem.getMixerInfo(Unknown Source)
at javax.sound.sampled.AudioSystem.isLineSupported(Unknown Source)
at kuusisto.tinysound.TinySound.init(TinySound.java:102)
at CloudMiner.init(CloudMiner.java:1129)
at CloudMiner.main(CloudMiner.java:1015)
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)
at sun.misc.URLClassPath$JarLoader.access$600(Unknown Source)
at sun.misc.URLClassPath$JarLoader$1.run(Unknown Source)
at sun.misc.URLClassPath$JarLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.URLClassPath$JarLoader.ensureOpen(Unknown Source)
... 24 more
Any thoughts would be welcome
It’s probably something stupid as I’m feeling just a little burnt out at the moment.
???