JavaImp.vim
JavaImp.vim copied to clipboard
No classes can be imported
Hi, I've been trying to setup JavaImp, but so far I had no luck.
I've set JavaImpPaths to ~/java, which contains both a jdk.jmplst and the rt.jar from my distribution:
let g:JavaImpPaths = $HOME . "/java"
So I execute :JIG, create the paths he asks me to, and then I get this error:
Searching in path (package): /home/tharre/java ()
Sorting the classes
Assuring uniqueness...
Error detected while processing function <SNR>14_JavaImpGenerate:
line 74:
E37: No write since last change (add ! to override)
Done. Found 1 classes (0 unique)
My jdk.jmplst can be found here, I'm not sure if it's correct, at least the sed command doesn't do anything.
Looks like jar and jmplst files are broken. I've been conducting most of my testing with class and java file trees. As a workaround, you can extract your jar into a tree of class files and place them in your ~/java directory. Finally, run :JIG.
I'll investigate the jar and jmplst issue. Thank you for the bug report and let me know if you have any questions.
Extracting the .class files from the jar works perfectly, might have guessed that myself.
Thanks.