Win a copy of Hands On Software Engineering with Python this week in the Jython/Python 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

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)
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.
 
They gave me pumpkin ice cream. It was not pumpkin pie ice cream. Wiping my tongue on this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!