-
Notifications
You must be signed in to change notification settings - Fork 82
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
This only can complete or import class from JDK?how can i add my classes; #40
Comments
how can i add /home/wsdjeg/wsdjeg.gitgub.com/code/bin into the classpath |
Can you say, what is your working directory. What you get if you run :!pwd from vim? |
cd ~/wsdjeg.github.io/code |
all my code is in my github/wsdjeg.github.io |
the same issus |
the :!pwd show the path to my java fies |
Looks like this link refer to old version of javacomplete. In your example you have commented JavaComplete_SourcesPath, does it commented in your vimrc? If you want have completion of your code, you need to specify this parameter. Or run vim from your |
i have run vim from wsdjeg.github.io |
can the process java close auto,when i close the vim .the java process need 600~900M cpu .and many time not only one java |
Strange, for me vim doesn't change directory.
What about g:JavaComplete_SourcesPath? Have you set it?
Java should be shut down on exit, it is also strange if it doesn't on
your system.
|
i have not set g:JavaComplete_SourcesPath and g:JavaComplete_lib .but i have set the~/.bashrc:CLASSPTH=.:${Javahome}/lib:${jrehome}/lib:home/wsdjeg/wsdjeg.github.io/lib |
Please, try to use g:JavaComplete_SourcesPath or g:JavaComplete_LibsPath, and you should be able to complete your classes. |
i will try tonight ,thank you ! |
here is my .vimrc.
Plugin 'artur-shaik/vim-javacomplete2'
autocmd FileType java set omnifunc=javacomplete#Complete
nmap :call javacomplete#AddImport()
imap :call javacomplete#AddImport()
""let g:JavaComplete_SourcesPath='/home/wsdjeg/wsdjeg.github.io/code'
""let g:JavaComplete_LibsPath='/home/wsdjeg/wsdjeg.github.io/code'
here is my file:
/home/wsdjeg/wsdjeg.github.io/code/src/com/wsdjeg/day01/Person.java(package com.wsdjeg.day01;)
/home/wsdjeg/wsdjeg.github.io/code/bin/com/wsdjeg/day01/Person.class
if i writer a new file named Man.java(home/wsdjeg/wsdjeg.github.io/code/bin/com/wsdjeg/day01/Man.java)
in the new file how can complete the Person's method
The text was updated successfully, but these errors were encountered: