This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes My application won't run on another machine Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "My application won Watch "My application won New topic
Author

My application won't run on another machine

Giles Humphreys
Greenhorn

Joined: Jul 16, 2004
Posts: 4
I have written a small application to help a friend who had all his word files renamed by a virus. This is my first application! It works fine on my home machine. When I tried to run it on his.. double clicking the icon, I got the standard windows message saying that it didn't know what program to run the app.

On my machine it uses JAVAW, but this doesn't seem to be on his machine even though it is a brand new machine running XP Home.
Has anyone any ideas what I have done wrong please?
Barry Andrews
Ranch Hand

Joined: Sep 05, 2000
Posts: 523

java.exe or javaw.exe must be in the PATH. An easy way to find out is go to the command prompt and type java or javaw. If it says "... is not recognized as an internal or external command...", then you either need to install Java or if it is installed, make sure it's in the PATH.

If it says what I mentioned above, there is a good chance that Java is not even installed on the XP machine.
Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
If it needs installation:

http://java.sun.com/j2se/1.4.2/download.html

Choose the link titled "Download J2SE JRE". that's the JVM only (no Software Development Kit).


Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: My application won't run on another machine
 
Similar Threads
Running an application
Socket Client returning Connection refused
Printing issue
running dos applications through orion
Executing an application