Steps to deploy


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Steps to deploy

  1. #1
    Join Date
    May 2004
    Posts
    7

    Unhappy Steps to deploy

    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
    Of all the things I've lost in my life, its my mind I miss the most.

  2. #2
    Join Date
    Feb 2004
    Posts
    808
    you may either (choose one):

    extract the xerces jar and place the folder within into your main folder app, then jar your app up (this method is discouraged)

    supply the user with both jars, plus information on how to add the xerces jar to the classpath so that the user may just run your program by doubleclicking the jar

    add the line
    Class_Path: xerces.jar
    into your jar file manifest, and then build an installer (winrar self extracter will be fine) that puts both jars in the same directory. your jar is doubleclicked to run


    -

    you cannot put xerces.jar inside your jar

    for a full discussion read entire thread of JAR Tutorial, found in my signature
    The 6th edict:
    "A thing of reference thing can hold either a null thing or a thing to any thing whose thing is assignment compatible with the thing of the thing" - ArchAngel, www.dictionary.com et al.
    JAR tutorial GridBag tutorial Inherited Shapes Inheritance? String.split(); FTP?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center