Solved

how to prepare a deployable jar from eclipse

Posted on 2003-11-06
5
366 Views
Last Modified: 2008-03-04
Hi,
 
    I am using eclipse on windows 2000, had created java clases and using some property files, folders to read and write files, log4.jar for maintaining log.

   Now i want to deploy on a solaris system as a single jar (or couple of jar's and property files for editing) and would like to run some of the main programs like java <program> <arguments> on a solaris system. What are the steps i need to fallow to achive this. Using export in Eclipse to a jar file will do this. How to run the programs. I have more than one main program.

  I am basically looking at deploying the things and my application is developed using core java. Pls provide some detail information on how to do this.

thanks,
H
0
Comment
Question by:hyder
  • 2
5 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 125 total points
ID: 9697402
Ant will give you a way of doing this sort of thing:

http://ant.apache.org/manual/CoreTasks/jar.html
0
 
LVL 92

Assisted Solution

by:objects
objects earned 125 total points
ID: 9697495
Assuming you already have Java installed on the Solaris system you just need to copy the jars generated by Eclipse to the 'ext' directory of the JRE installation on the solaris system.

You will then be able to run the apps from the command line as you do on W2K.
Or you can create shell scripts to run the required command.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 11490866
:-)
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Weekend adv creator 3 38
eclipse argument 14 60
sql import cannot be resolved jsp 3 23
Java Restore security prompts not working 10 12
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question