Are you using packages in your java classes? If you're using packages you need to go <your>.<package>.<extension>.<here>.TEditor
Here is an example without packages that works.
I created a java file called Test.java in my C:/java/src/examples/examples directory...
// Notice no package info...
public class Test
{
public static void main(String[] args)
{
System.out.println("test");
}
}
I then opened a command prompt window and navigated to the C:/java/src/examples/examples directory and ran the following command:
javac -verbose -cp . Test.java
I recieved the following output:
[parsing started Test.java]
[parsing completed 31ms]
[search path for source files: [.]]
[search path for class files: [C:\jdk1.5\jre\lib\rt.jar, C:\jdk1.5\jre\lib\jsse.jar, Z:\jdk1.5\jre\lib\jce.jar, C:\jdk1.5\jre\lib\charsets.jar, C:\jdk1.5\jre\lib\ext\dnsns.jar, C:\jdk1.5\jre\lib\ext\localedata.jar, C:\jdk1.5\jre\lib\ext\sunjce_provider.jar, C:\jdk1.5\jre\lib\ext\sunpkcs11.jar, .]]
[loading C:\jdk1.5\jre\lib\rt.jar(java/lang/Object.class)]
[loading C:\jdk1.5\jre\lib\rt.jar(java/lang/String.class)]
[checking Test]
[loading C:\jdk1.5\jre\lib\rt.jar(java/lang/System.class)]
[loading C:\jdk1.5\jre\lib\rt.jar(java/io/PrintStream.class)]
[loading C:\jdk1.5\jre\lib\rt.jar(java/io/FilterOutputStream.class)]
[loading C:\jdk1.5\jre\lib\rt.jar(java/io/OutputStream.class)]
[wrote Test.class]
[total 313ms]
I then created a new .bat file in C:/java/src/examples called test.bat...
set cp=C:\java\src\examples\examples
java -cp %cp% Test
Finally in my command prompt window i navigated to C:/java/src/examples and then ran the following command:
test.bat
I recieved the following output:
test
[edit]
I also just tried this example with creating a jar file... And it still works. (Luckly for me.)
So, to use a jar file...
Create the jar file by being in the C:/java/src/examples/examples directory in a command prompt window and run the following command:
jar -cfv test.jar Test.class
I recieved the following output:
added manifest
adding: Test.class(in = 406) (out= 277)(deflated 31%)
Then i changed the test.bat file to:
set cp=C:\java\src\examples\examples\test.jar
java -cp %cp% Test
I then re-ran the test.bat file and recieved the following output:
test
[/edit]