How to import java files from folders in linux? -
in linux, have java files coped windows eclipse project, , want compile in linux.
the folder structure is
plutomake.java java-json.jar filter\colorfilter.java filter\darken.java filter\nofilter.java filter\vividlight.java the plutomake file has these imports , others json
import filter.colorfilter; import filter.darken; import filter.nofilter; import filter.vividlight; but when try compile plutomake, says
plutomake.java:12: package filter not exist import filter.colorfilter; i use compile it:
javac -cp "java-json.jar" plutomake.java and other ones too.
does know how import it?
thanks
you getting package filter not exist error because filter.* classes not present in class path.
first compile java files in side folder filter compile plutomake.java using javac -cp "java-json.jar;." plutomake.java
Comments
Post a Comment