File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes win98 v. WinNT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "win98 v. WinNT" Watch "win98 v. WinNT" New topic

win98 v. WinNT

Brian Snyder
Ranch Hand

Joined: Feb 03, 2001
Posts: 142
I have searched this forum and the intermediate for an answer, but to no avail, I am here asking this question for which I have not found an answer.
I have created a software application written completely in java using a Win98 operating system. I have created a batch file to run that looks like this:

All the .class files and images used in the program are found in those folders. Of course, the main .class file is BaseApplet.class which is found in the c:\PhotoMate\prog folder in the package prog.
I've tested this on my machine and emailed it to others(at least 3) and it has worked on all except for one. The DOS window closed automatically after double clicking on the .bat file and nothing happens. I know that this user and the other 3 have installed the Java 1.3.1 JRE (runtime only, not the developer kit as he is only using it). I have included the classpath in the .bat file as well, and he is on WinNT. (Is that the reason?)
So....My question is....why does it close automatically? and why doesn't it run??
Many thanks in advance. A wish of good fortune to those who answer correctly.

[This message has been edited by Brian Snyder (edited October 05, 2001).]
[This message has been edited by Brian Snyder (edited October 05, 2001).]
Tim Blommerde

Joined: Sep 24, 2001
Posts: 21
Though I do not see why the NT machine wouldn't run your batch as the Win9x machines, I might have an idea on getting more information on the problem. Try to use the command prompt to open the batch file instead of double clicking. This will give you probably some more information on why your batch isn't running. Information you won't see when you double click, because then the command prompt is closed immediately.
Good luck,
I agree. Here's the link:
subject: win98 v. WinNT
It's not a secret anymore!