Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Steps to deployment  RSS feed

 
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
 
(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
Boost this thread!