Sublime Forum

Java compiler can't find linked files

#1

I have two classes in separate files, but in the same package and the same directory. If I try to build the file that has the main method in Sublime, I get this:

F:\cygwin64\home\Patrick\git\algorithms\misc\binarytree\BinaryTreeClient.java:11: error: cannot find symbol public static BinaryTree build123 () { ^ symbol: class BinaryTree location: class BinaryTreeClient

BinaryTreeClient is the file I’m trying to compile and BinaryTree is the other file in the same package/directory.

I have set the CLASSPATH, and I can compile without any problems from the command line, just not within Sublime.

0 Likes

#2

Fixed it… I was using Unix-style pathnames in CLASSPATH, because Cygwin Bash complains if you don’t. I added the same paths as Windows paths and it works.

0 Likes