Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi,
I want to schedule a java file to run every wednesday and saturday,
I know how to do this, but what extension do I give the java file? I've compiled it using javac filename.java and have got a .class file from this. do I just schedule
'filename' with no extension or what??thanks,
Kelly.

Kelly,
I am pretty sure windows uses Internet Explorer to run Java programs (you will need the Java Run-time Environment plugin, or JRE, installed into IE). So use AT to schedule Internet Explorer to run and then provide it with the full pathname... something like....
iexplore c:\java_programs\program.class
This is all theory for me but it might work. The other thing you might be able to use to run the java program is windows scripting host. Do a search on the internet and you should be able to find some info about it (I know for a fact windows scripting host supports JavaScript, not sure about pure Java). Also note that if windows has a program properly associated with the .class extension it should be able to run it with at without providing it an application like Internet Explorer (which may automatically be configured if you install the Java Run-time Environment).Hope that helps,
-Michael

Kelly,
First you have to tell if you are trying to run a java Applet or a Java Application. if you want to run a java application, you need to have the Java Runtime Environment (JRE) installed. You can download it from www.javasoft.com, or if you have the Java development kit (JDK), you can install the JRE from within it, it comes as a part of it.You can use the following statement:
c:\>java MyClassName
to execute a java application from the command prompt.If you want to run a Java Applet, you can use the jview tool which comes with the internet explorer OR you can use the appletviewer tool which comes with the JRE and the JDK.
I would recommend you use appletviewer instead of jview.
Wish you the best of luck.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |