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

Problems in Windows 10 #52

Closed
jacuesta opened this issue Jun 23, 2016 · 6 comments
Closed

Problems in Windows 10 #52

jacuesta opened this issue Jun 23, 2016 · 6 comments

Comments

@jacuesta
Copy link

Hi, i would like to see the possible use of this library in our programs.
I've got a problem as I run the examples provided.

Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Users\Usuario\AppData\Local\Temp\libquestdb3846739714947417735.dll: %1 no es una aplicación Win32 válida

Both the Os and the JDK are 64bits. I reckon the origin of the error is that. Could you provide us a 64 bit version of the dll.

Thanks in advance
Juan

@bluestreak01
Copy link
Member

Hi Juan,

the DDL is 64bit bit already. It is compiled on Windows XP though, i'll have to check on windows 10 and get back to you.

Regards,
Vlad

@bluestreak01
Copy link
Member

the error reads a bit suspicious though, DLL is indeed not a win32 application.

@bluestreak01
Copy link
Member

Another idea: do you have anti-virus running and could be preventing java from accessing DLL?

@jacuesta
Copy link
Author

Yes, i've got mcaffy running. I will try stopping it and let you know.
Thanks.
El 23/06/2016 17:38, "Vlad Ilyushchenko" notifications@github.com
escribió:

Another idea: do you have anti-virus running and could be preventing java
from accessing DLL?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/bluestreak01/questdb/issues/52#issuecomment-228091040,
or mute the thread
https://github.com/notifications/unsubscribe/AGSBeVQQuNbDNpMo9hRbZq9FkdgpflXaks5qOqiNgaJpZM4I8dyd
.

@jacuesta
Copy link
Author

Hi Vlad,
It was my mystake. I did a save as with the right mouse button on the link and I didn't realize the file was not a dll one.

In order to be able to run the examples in a Windows platform I had to modify the Os.java

            if (type == LINUX){
                tempLib = File.createTempFile(lib, ".so");
            }else if (type == OSX){
                tempLib = File.createTempFile(lib, ".dylib");
            }else if (type == WINDOWS){
                tempLib = File.createTempFile(lib, ".dll");
            }

I'll carry on testing the library.

Regards,
Juan

@bluestreak01
Copy link
Member

great, thanks Juan

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

No branches or pull requests

2 participants