i have some java files included in package com.das.dbmodule. when i run these java files using netbeans or eclipse they works well. But i get some errors when i try to run them using command prompt. i tried it using default package but same problem. i have put all java files in jdk bin folder. i am using mysql data base and mysql connector jar file. i get errors like
C:\Program Files\Java\jdk1.6.0\bin>cd..
C:\Program Files\Java\jdk1.6.0>cd..
C:\Program Files\Java>cd program files
The system cannot find the path specified.
C:\Program Files\Java>cd java
The system cannot find the path specified.
C:\Program Files\Java>cd jdk1.6.0
C:\Program Files\Java\jdk1.6.0>cd bin
C:\Program Files\Java\jdk1.6.0\bin>javac fileoperation.java
fileoperation.java:47: cannot find symbol
symbol : class Dbconnection
location: class fileoperation
Dbconnection dbconnection = new Dbconnection();
^
fileoperation.java:47: cannot find symbol
symbol : class Dbconnection
location: class fileoperation
Dbconnection dbconnection = new Dbconnection();
^
fileoperation.java:48: cannot find symbol
symbol : class Filefinder1
location: class fileoperation
Filefinder1 f = new Filefinder1(); // call constructor
^
fileoperation.java:48: cannot find symbol
symbol : class Filefinder1
location: class fileoperation
Filefinder1 f = new Filefinder1(); // call constructor
^
4 errors
C:\Program Files\Java\jdk1.6.0\bin>java fileoperation
Exception in thread "main" java.lang.NoClassDefFoundError: fileoperation
C:\Program Files\Java\jdk1.6.0\bin>Pause
Press any key to continue . . .
basically i am trying to create a batch file that will update my server after every 5 min. i am a student developing an web app. please guide me. i have my project demo day after tomorrow.