Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMD Black box appears, then disappears and Server does not start #203

Closed
Donovan-Smith opened this issue May 17, 2019 · 5 comments
Closed
Assignees

Comments

@Donovan-Smith
Copy link

First time downloading SRA, tried both signed and unsigned versions, got the CMD box poped up and disappeared. Used the command prompt to try to open it and this is the message I got: Desktop>SIMRacingAppsServer_1.9_Build_2019.04.12-signed.exe
Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't obtain InputStream for com/sun/jna/win32-x86-64/jnidispatch.dll
at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:962)
at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:922)
at com.sun.jna.Native.(Native.java:190)
at com.sun.jna.Pointer.(Pointer.java:54)
at com.sun.jna.platform.win32.WinReg$HKEY.(WinReg.java:42)
at com.sun.jna.platform.win32.WinReg.(WinReg.java:71)
at com.SIMRacingApps.Util.FindFile.getUserDocumentsPath(FindFile.java:177)
at com.SIMRacingApps.Util.FindFile.getUserPath(FindFile.java:193)
at com.SIMRacingApps.Server.main(Server.java:644)

I cheked my java version and this is the result:

java -version
java version "1.8.0_211"
Java(TM) SE Runtime Environment (build 1.8.0_211-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.211-b12, mixed mode)

Any help would be appreciated, thanks

@jfgilliam
Copy link
Contributor

jfgilliam commented May 17, 2019 via email

@Donovan-Smith
Copy link
Author

deleted downloaded application, emptied recycle bin, redownloaded and left destination folder as default (downloads folder) and same results:

Downloads>SIMRacingAppsServer_1.9_Build_2019.04.12-signed.exe
Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't obtain InputStream for com/sun/jna/win32-x86-64/jnidispatch.dll
at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:962)
at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:922)
at com.sun.jna.Native.(Native.java:190)
at com.sun.jna.Pointer.(Pointer.java:54)
at com.sun.jna.platform.win32.WinReg$HKEY.(WinReg.java:42)
at com.sun.jna.platform.win32.WinReg.(WinReg.java:71)
at com.SIMRacingApps.Util.FindFile.getUserDocumentsPath(FindFile.java:177)
at com.SIMRacingApps.Util.FindFile.getUserPath(FindFile.java:193)
at com.SIMRacingApps.Server.main(Server.java:644)

current windows version is Microsoft Windows [Version 10.0.17134.765]
and current java: java version "1.8.0_211"
Java(TM) SE Runtime Environment (build 1.8.0_211-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.211-b12, mixed mode)

Not sure what other information i need to provide but will be happy to assist

@jfgilliam jfgilliam self-assigned this May 18, 2019
jfgilliam added a commit to SIMRacingApps/SIMRacingAppsServer that referenced this issue May 18, 2019
(SIMRacingApps/SIMRacingApps#203)
        CMD Black box appears, then disappears and Server does not
start.
        Exception in thread "main" java.lang.UnsatisfiedLinkError:
        Can't obtain InputStream for
com/sun/jna/win32-x86-64/jnidispatch.dll
        Updated JNA library from 4.5 to 5.3.
@jfgilliam
Copy link
Contributor

I think I ran into this before a long time ago where a user had a local version of the jna library on their machine. It was put there by some other application. I have uploaded the 1.10 BETA version of SRA. Please download it from https://github.com/SIMRacingApps/SIMRacingApps/releases/tag/Version_1.10_Build_BETA-2019.05.18 and see if it works. I updated the jna library from 4.5 to 5.3. That's a big jump. If it doesn't work, look for that local copy. I also updated my Java to 1.8.0_212 for testing it.

@Donovan-Smith
Copy link
Author

I had the same results with this version as well. I have no clue how to find the 'local copy'. I can follow directions well, but i don't have a strong technical knowledge of this side of PCs. If you will guide me, I will follow! Thanks for all the support so far.

@jfgilliam jfgilliam reopened this May 20, 2019
@jfgilliam
Copy link
Contributor

So, I took a look in the .exe and the dll is there. I'm not really sure what the problem is.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants