-
Notifications
You must be signed in to change notification settings - Fork 3
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
Can't find .dll #4
Comments
Try opening ClangLibrary.java and modify JNA_LIBRARY_NAME from "Clang" to "clang"; does that help? |
No: java.lang.UnsatisfiedLinkError: Unable to load library 'clang' |
You can try setting jna.library.path instead of java.library.path; though the latter should also work as far as I know. Another option (what I do) is to set the path from within the code: move the initialization from the static fields of ClangLibrary to your own code, and make sure to call |
Test source /**
} C:\dev\jdk-6u32\bin\java -ea -Djna.library.path=C:\dev\clang3.3_march2013\clang3.3_march2013\ -Didea.launcher.port=7532 -Didea.launcher.bin.path=C:\dev\idea_11_community\bin -Dfile.encoding=UTF-8 -classpath C:\dev\idea_11_community\lib\idea_rt.jar;C:\dev\idea_11_community\plugins\junit\lib\junit-rt.jar;C:\dev\jdk-6u32\jre\lib\alt-rt.jar;C:\dev\jdk-6u32\jre\lib\alt-string.jar;C:\dev\jdk-6u32\jre\lib\charsets.jar;C:\dev\jdk-6u32\jre\lib\deploy.jar;C:\dev\jdk-6u32\jre\lib\javaws.jar;C:\dev\jdk-6u32\jre\lib\jce.jar;C:\dev\jdk-6u32\jre\lib\jsse.jar;C:\dev\jdk-6u32\jre\lib\management-agent.jar;C:\dev\jdk-6u32\jre\lib\plugin.jar;C:\dev\jdk-6u32\jre\lib\resources.jar;C:\dev\jdk-6u32\jre\lib\rt.jar;C:\dev\jdk-6u32\jre\lib\ext\dnsns.jar;C:\dev\jdk-6u32\jre\lib\ext\localedata.jar;C:\dev\jdk-6u32\jre\lib\ext\sunjce_provider.jar;D:\dev\src\jclang\target\test-classes;D:\dev\src\jclang\target\classes;C:\Users\sas.m2\repository\com\nativelibs4java\bridj\0.6.2\bridj-0.6.2.jar;C:\Users\sas.m2\repository\com\google\android\tools\dx\1.7\dx-1.7.jar;C:\Users\sas.m2\repository\junit\junit\4.10\junit-4.10.jar;C:\Users\sas.m2\repository\org\hamcrest\hamcrest-core\1.1\hamcrest-core-1.1.jar;C:\Users\sas.m2\repository\net\java\dev\jna\jna\3.3.0\jna-3.3.0.jar com.intellij.rt.execution.application.AppMain com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 -junit4 clang.ExtractClassnamesTest java.lang.UnsatisfiedLinkError: Unable to load library 'clang': È�õ� Process finished with exit code -1 |
I'll try later on mac |
config.jnaerator file contains absolute paths: Should they be changed? "mvn clean install" finished without any errors |
for mac i have to add
|
i was able to compile test, but it returns unit = null.
|
Probably i was trying to use wrong function just to parse the file.
|
extracted libclang.dll is located in C:\dev\clang3.3_march2013\clang3.3_march2013, but can't be found. Test file ExtractClassnamesTest.java is created.
C:\dev\jdk-6u32\bin\java -ea -Djava.library.path=C:\dev\clang3.3_march2013\clang3.3_march2013\ -Didea.launcher.port=7534 -Didea.launcher.bin.path=C:\dev\idea_11_community\bin -Dfile.encoding=UTF-8 -classpath C:\dev\idea_11_community\lib\idea_rt.jar;C:\dev\idea_11_community\plugins\junit\lib\junit-rt.jar;C:\dev\jdk-6u32\jre\lib\alt-rt.jar;C:\dev\jdk-6u32\jre\lib\alt-string.jar;C:\dev\jdk-6u32\jre\lib\charsets.jar;C:\dev\jdk-6u32\jre\lib\deploy.jar;C:\dev\jdk-6u32\jre\lib\javaws.jar;C:\dev\jdk-6u32\jre\lib\jce.jar;C:\dev\jdk-6u32\jre\lib\jsse.jar;C:\dev\jdk-6u32\jre\lib\management-agent.jar;C:\dev\jdk-6u32\jre\lib\plugin.jar;C:\dev\jdk-6u32\jre\lib\resources.jar;C:\dev\jdk-6u32\jre\lib\rt.jar;C:\dev\jdk-6u32\jre\lib\ext\dnsns.jar;C:\dev\jdk-6u32\jre\lib\ext\localedata.jar;C:\dev\jdk-6u32\jre\lib\ext\sunjce_provider.jar;D:\dev\src\jclang\target\test-classes;D:\dev\src\jclang\target\classes;C:\Users\sas.m2\repository\com\nativelibs4java\bridj\0.6.2\bridj-0.6.2.jar;C:\Users\sas.m2\repository\com\google\android\tools\dx\1.7\dx-1.7.jar;C:\Users\sas.m2\repository\junit\junit\4.10\junit-4.10.jar;C:\Users\sas.m2\repository\org\hamcrest\hamcrest-core\1.1\hamcrest-core-1.1.jar;C:\Users\sas.m2\repository\net\java\dev\jna\jna\3.3.0\jna-3.3.0.jar com.intellij.rt.execution.application.AppMain com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 -junit4 clang.ExtractClassnamesTest
java.lang.UnsatisfiedLinkError: Unable to load library 'Clang': Íå íàéäåí óêàçàííûé ìîäóëü.
Process finished with exit code -1
The text was updated successfully, but these errors were encountered: