Create .class from .java - maintain references

I know, I'm a fool, but I can not get this to work..

I have JDK on my machine, and wanted to turn a .java file into a .class file.

When I compile the code;

javac -implicit:class C:\Excel_To_XML\src\test\generator\ExcelToTestCases.java

It gives me 36 errors. They all basically "cant find package" and point to different classes or packages that I have imported in the source.

How do I make these classes available to the file so it will compile.

a few of the error lines;

C:\Excel_To_XML\src\test\generator\ExcelToTestCases.java:18:package org.apache.poi.hssf.usermodel does not exist

import org.apache.poi.hssf.usermodel.*;

^

C:\Excel_To_XML\src\test\generator\ExcelToTestCases.java:23:package test.models does not exist

import test.models.*;

^

C:\Excel_To_XML\src\test\generator\ExcelToTestCases.java:66: cannot find symbol

symbol : variable AddressCleanse

location:class test.generator.ExcelToTestCases

FIELD_COUNT = AddressCleanse.FIELD_COUNT;// number of fields that contain data

These packages DO exist, and the code runs fine in eclipse, so I knwo they can be read. I guess it would be an issue of location or referencing,, please help me..

[1490 byte] By [Masterkeedua] at [2007-11-27 9:32:35]
# 1
ever heard of a thing called the CLASSPATH?And ever heard of that search thingy on the left?
jwentinga at 2007-7-12 22:51:05 > top of Java-index,Java Essentials,New To Java...
# 2
These jar libs may be in your classpath.The "import" does not mean that javac will found your libs anywhere they are.Try this test: copy all your jar libs to the same path that you are executing javac and compile.
pbulgarellia at 2007-7-12 22:51:05 > top of Java-index,Java Essentials,New To Java...
# 3
You need to set the CLASSPATH so the compiler can found the auxiliar classes you are using on your code. Check how to set CLASSPATH here: https://www.cs.utk.edu/help/doku.php?id=compile:java
Xtremebcna at 2007-7-12 22:51:05 > top of Java-index,Java Essentials,New To Java...
# 4
use the -classpath option of java to specify the jar/classes for poi that you are using.I suppose you are trying to work on excels using apache POI.Rgds,Ayusman
ayusman_dikshita at 2007-7-12 22:51:05 > top of Java-index,Java Essentials,New To Java...
# 5
well thanks for a legitimate answer Ayusman, i know it must have been real hard to bear with my incompetence.for the snappy young gent who answered first, ever hear of a little thing called consideration, or manners?no? so sorry.
Masterkeedua at 2007-7-12 22:51:05 > top of Java-index,Java Essentials,New To Java...