The moose likes Beginning Java and the fly likes Steps to deployment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Steps to deployment" Watch "Steps to deployment" New topic

Steps to deployment

Sean Riley

Joined: Jun 08, 2004
Posts: 11

Pardon if this seems silly but I don't have the big picture.

I have a project I created using Eclipse. In my java file I import the Xerces parser to do some xml work...

when I save the file it is compiled no problem and when I run this class file from the system that has xerces installed on it it works fine..

The Problem: I want to run this on a different machine. I know for a fact the there is no xerces parser installed.

So my question is what steps do I take to build a java application that I can compile and copy to another machine that only has the JRE and still have it running successfully...

Is there a way of putting the xerces jar file with my class file..? must I import from a different place then..?

Many thanks

Of all the things I've lost in my life it's my mind I miss the most.
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Sun has Java Web Start and there are plenty of installers out there, even some good free ones. Google for "java installer". ZeroG is one I remember hearing good things about.

To install manually, just make sure that your path points to a JRE and your classpath points to the jars you will need. Frinstance, here's how I start my Wiki from a bat file:

I have sent people a zip of my Wiki directory (including a whole JRE and the lib directory) and they can unzip it, adjust the drive & directory in this bat file and run it.

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Sean Riley

Joined: Jun 08, 2004
Posts: 11
Many thanks Stan.

Can you believe I never considered searching for installers.. I searched for everything relating to build and deploy...

Thanks for the heads up.
I agree. Here's the link:
subject: Steps to deployment
It's not a secret anymore!