Hello all!
If someone have some time please check my java error. I really want to play the game with my friends.
-
itomi
- Posts: 5
- Joined: Sat Apr 17, 2021 11:59 am
Game wont launch
The game wont launch.
We tried reinstalling java and using other clients as well. It just dont work on 2 computers at home.
Any ideas what to do?
We tried reinstalling java and using other clients as well. It just dont work on 2 computers at home.
Any ideas what to do?
Code: Select all
java.lang.Error: java.lang.reflect.InvocationTargetException
at haven.MainFrame.javabughack(MainFrame.java:424)
at haven.MainFrame.main2(MainFrame.java:437)
at haven.MainFrame.lambda$main$0(MainFrame.java:484)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
at java.awt.EventQueue.invokeAndWait(Unknown Source)
at java.awt.EventQueue.invokeAndWait(Unknown Source)
at javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
at haven.MainFrame.javabughack(MainFrame.java:415)
... 3 more
Caused by: java.lang.ExceptionInInitializerError
at haven.MainFrame$5.run(MainFrame.java:418)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.RuntimeException: Delayed error in resource gfx/loginscr (v-1), from local res source (res)
at haven.Resource$Pool$Queued.get(Resource.java:445)
at haven.Resource$Pool$Queued.get(Resource.java:413)
at haven.Loading.waitforint(Loading.java:119)
at haven.Loading.waitfor(Loading.java:131)
at haven.Resource$Pool.loadwait(Resource.java:720)
at haven.Resource$Pool.loadwait(Resource.java:724)
at haven.Resource.loadrimg(Resource.java:1652)
at haven.Resource.loadtex(Resource.java:1664)
at haven.LoginScreen.<clinit>(LoginScreen.java:38)
... 15 more
Caused by: haven.Resource$LoadException: Load error in resource gfx/loginscr(v2), from local res source (res)
at haven.Resource$Image.<init>(Resource.java:980)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at haven.Resource$LayerConstructor.cons(Resource.java:856)
at haven.Resource.load(Resource.java:1623)
at haven.Resource.access$700(Resource.java:42)
at haven.Resource$Pool.handle(Resource.java:494)
at haven.Resource$Pool.access$1200(Resource.java:390)
at haven.Resource$Pool$Loader.run(Resource.java:642)
at java.lang.Thread.run(Unknown Source)
Suppressed: haven.Resource$LoadException: Load error in resource gfx/loginscr(v-1), from filesystem res source (C:\Program Files\Java\jre1.8.0_281\res)
at haven.Resource$Pool.handle(Resource.java:506)
... 3 more
Caused by: java.io.FileNotFoundException: C:\Program Files\Java\jre1.8.0_281\res\gfx\loginscr.res
at haven.Resource$FileSource.get(Resource.java:257)
at haven.Resource$Pool.handle(Resource.java:490)
... 3 more
Caused by: javax.imageio.IIOException: Can't create cache file!
at javax.imageio.ImageIO.createImageInputStream(Unknown Source)
at javax.imageio.ImageIO.read(Unknown Source)
at haven.Resource$1.run(Resource.java:920)
at haven.Resource$1.run(Resource.java:917)
at java.security.AccessController.doPrivileged(Native Method)
at haven.Resource.readimage(Resource.java:917)
at haven.Resource$Image.<init>(Resource.java:978)
... 11 more
Caused by: java.nio.file.AccessDeniedException: C:\PROGRA~1\Java\imageio8511700684249139011.tmp
at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(Unknown Source)
at java.nio.file.Files.newByteChannel(Unknown Source)
at java.nio.file.Files.createFile(Unknown Source)
at java.nio.file.TempFileHelper.create(Unknown Source)
at java.nio.file.TempFileHelper.createTempFile(Unknown Source)
at java.nio.file.Files.createTempFile(Unknown Source)
at javax.imageio.stream.FileCacheImageInputStream.<init>(Unknown Source)
at com.sun.imageio.spi.InputStreamImageInputStreamSpi.createInputStreamInstance(Unknown Source)
... 18 more-
MagicManICT
- Posts: 18435
- Joined: Tue Aug 17, 2010 1:47 am
Re: Game wont launch
I'm not sure I can mention any direct fixes for this at this time. After digging through the forums a bit, the only thing I can recommend at this time is to verify what version of Java you are running (example: Java 8 x32, Java 11 x64, etc); and that graphics drivers are updated, possibly which GPU (GPUs if on a notebook with integrated graphics) are installed.
I messaged loftar for advice. If anyone else has any recommendations, it'd be good to know.
I messaged loftar for advice. If anyone else has any recommendations, it'd be good to know.
Opinions expressed in this statement are the authors alone and in no way reflect on the game development values of the actual developers.
-
loftar
- Posts: 9096
- Joined: Fri Apr 03, 2009 7:05 am
- Location: Your character database
Re: Game wont launch
Sorry for being late to this, but something is definitely wrong with your Java installation. Your temporary directory is supposed to be in your home directory, not in Java's installation directory, and it is no wonder that you're getting access-denied problems when trying to create files in there. Why it would be detected in that way, however, I really can't tell. If reinstalling Java didn't work, it seems (from looking at the Java source code) that the only obvious reason why it would have this effect would be if Windows doesn't provide a useful response to the GetTempPath API call, which, as far as I can tell, would only happen on a system that has had its configuration broken in some way. You may want to check if you have some weird environment variables set, or if the TMP or TEMP variables have been removed for some reason, or something like that. It appears to be a local problem on your system, and I'm not sure how much I can deduce about it.itomi wrote:Caused by: java.nio.file.AccessDeniedException: C:\PROGRA~1\Java\imageio8511700684249139011.tmp
"Object-oriented design is the roman numerals of computing." -- Rob Pike