Two Laptop Bag
The moose likes Beginning Java and the fly likes Run a project at client place Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Run a project at client place" Watch "Run a project at client place" New topic

Run a project at client place

vaka suresh

Joined: Sep 23, 2002
Posts: 9
hi all,
i have done a project , i have folder called "dna" which contains all the .class files to run the project .
in dos i will be typing "java dna" to run my project .for this i need to set the path , but a cliet dosent know all these , how do i make my class to run just by cliking on as a setup file.
Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
You could just make a .bat file to do it, or search the forums here for 'java exe' and you'll get a lot of hits.

Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Are you sure you need to adjust the PATH environment variable? With Java, normally it's the CLASSPATH setting that needs to specify the location of any necessary classes for the application to run.
You may want to consider creating an executable JAR file. If created correctly, the user could simply double click on the file and it would execute the application.

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
subject: Run a project at client place
It's not a secret anymore!