Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Steps to deployment

 
Sean Riley
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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
Sean
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Sean Riley
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic