here is the class which looks into directory C://MyJava/ and lists all files, subdirect. in that directory. it is also writes to the console one of the files
import java.io.*;
import java.util.*;
public class TestFile
{
public static void main (String [] args) throws Exception
{
File listFiles ...
Search found 3 matches
- Sun Jan 25, 2004 2:39 am
- Forum: Java
- Topic: Some help with some code??
- Replies: 3
- Views: 648
- Sun Jan 25, 2004 2:23 am
- Forum: Java
- Topic: Run Java Application
- Replies: 2
- Views: 1009
run java application
you may try to run your java application from the command promt.
Open command promt
change directory to the directory where you saved and compiled your class, and issue the comand
java -classpath . XXX
where XXX is name of you class
or from the TextPad you can use Tools -> Run...
than you need to ...
Open command promt
change directory to the directory where you saved and compiled your class, and issue the comand
java -classpath . XXX
where XXX is name of you class
or from the TextPad you can use Tools -> Run...
than you need to ...
- Sun Jan 25, 2004 1:33 am
- Forum: Java
- Topic: Having a problem calling a method from another class
- Replies: 5
- Views: 954