Ok will start out with the easy one
When i go to run my project in Jbuilder i get this error how can i fix it????
"Warning #: 908 : check sourcepath; source c:\Documents and Settings\Admin\jbproject\Chap2\chap2\chap2.java cannot be found on sourcepath by appending \chap2.java to each sourcepath entry
"
Ok and then can someone Debug this i get a error saying that "main" is not valid???
Code:import java.awt.*; import java.applet.*; import java.util.*; public class chap2 extends Applet { // Get the current Date and Time ect... Calendar calCurrent = Calendar.getInstance(); TextArea txaDate = new TextArea(5,20); //Declair variables and addign initial value int intDay = calCurrent.get(Calendar.DATE); int intMonth = calCurrent.get(Calendar.MONTH); int intYear = calCurrent.get(Calendar.YEAR); public void init() { //add text area add(txaDate); //Display Dates txaDate.append(" Date: " + intMonth +"/" + intDay + "/" + intYear + "\n"); txaDate.append(" Time: " + calCurrent.get(Calendar.HOUR) + ":" + calCurrent.get(Calendar.MINUTE) + "\n"); } }


Reply With Quote

