I am a intermediate programmer. I love to do programming in Java, and also knows other programming language like C sharp, SQL and Visual Basic. Recently i was doing programming in JAVA and came across one conflict i.e I have several Java files in a directory which is has been stored as a package at the start of the files. Package file manager:This program works correctly in an IDE, but problems occurs when compiling in command line. I have also set the classpath as i understand to be right for my computer to:[C:\Program Files\Java\jdk1.6.0_02\bin]. I can compile a class that references no other classes in this package/directory. But,files which reference other classes bring up such errors:
javac AllFiles.java
AllFiles.java:174: cannot find symbol
symbol : variable Adam
location : class filesmanager.AllFiles
Adam.getItem(itemRef);
Please tell me how to overcome this errors.
Bookmarks