This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
I could not come to a conclusion why the class TestInterfaceMember is not compiling. Please see if you can help.
[aruljose@aruljose javatry]$ javac -classpath ./classes:. TestInterfaceMember.java TestInterfaceMember.java:2: cannot find symbol symbol : class pkg location: class test class TestInterfaceMember implements test.pkg.I ^ TestInterfaceMember.java:2: interface expected here class TestInterfaceMember implements test.pkg.I ^ TestInterfaceMember.java:6: cannot find symbol symbol : variable i location: class TestInterfaceMember System.out.println(i); ^ 3 errors [aruljose@aruljose javatry]$ ls classes test/ [aruljose@aruljose javatry]$ ls classes/test/ pkg/ [aruljose@aruljose javatry]$ ls classes/test/pkg/ I.class
Your "ls" shows only the class file in classes/test/pkg. My guess is that it's an outdated class file that actually represents a class named I. Delete the class file, put the source file in its place, and use the same compile command; things should work just fine.