How to deploy a java application -- might be silly but just help me out

Hi I�ve developed a java application in eclipse. How do I deploy it so that it can be used by others without the help of eclipse? I can run it in eclipse but how do I deliver it to my customers and how can they use it without the help of eclipse or using java runtime commands. Please give me some pointers on this.

Eclipse can help you to build a jar file for you.
See: File>Export ...>Java>Jar File
Don't forget to stick a Manifest file in that jar which points the JVM to
the class that contains the static main() method.
kind regards,
Jos

Similar Messages

  • How to deploy my Java application?

    Have a proxy server running as a plain vanilla Java application from the DOS command line in Windows. Would like to run it 'properly' on a (web) server. Have got Apache and Tomcat installed but I don't know how to adapt my application to run in that environment. The proxy server maintains a socket connection from another backend machine and pushes information from there to a client that connects to the proxy server.

    Well what's confusing is your use of "maintains", in "maintains a socket channel". That's largely counter to the design of the HTTP protocol. So I can't tell if you're using HTTP incorrectly or just describing it counter-intuitively.
    If you're opening a socket from the client and keeping it open indefinitely to maintain a kind of session, then you're not really using HTTP right and you can just drop that.
    If you really are using a series of HTTP connections, then Apache/Tomcat would be a fine thing.
    If all you're doing is an ordinary proxy server, then actually Apache can handle that all by itself with no java code at all.
    If your code is acting as a real HTTP server, then removing the web server parts, letting Apache handle that, and using Tomcat as a servlet environment would be very good. You'd be implementing only the business logic, not the standard plumbing stuff.
    Have you ever written any servlets or other J2EE stuff?

  • Help on how to deploy a java application

    i have written my first application in java and have now to deploy it.
    i have used the servlet.jar, and javamail apis along with other regular ones.
    i wanna know whether my clients needs to have all these jar files with him or will having just the class files do as the jre is there.

    i have written my first application in java and have
    now to deploy it.
    i have used the servlet.jar, and javamail apis along
    with other regular ones.
    i wanna know whether my clients needs to have all
    these jar files with him or will having just the
    class files do as the jre is there.The clients don't need to have all those class files. A servlet is run on the server and the only thing that comes back from a servlet is HTML.

  • How to deploy the Java Application?

    I just completed a small application using JDeveloper323,
    can i to deploy it into to Oracle Database(8.1.6)?
    I want to use B/S application architecture,from Browes to run the application.
    how?
    appreciate you help.
    null

    Hi Amarys,
    If you have developed the PAR file in NWDS then you can deploy the PAR in the server with NWDS ( [Check Required Settings |NWDS 7.0 does not deploy PAR;) or in server directly (system administrator > support >> portal runtime >> administration console)
    Best Regards
    Arun Jaiswal

  • How to deploy a Flex application (Server Type ColdFusion) to production

    I have built a flex application using Flash Builder 4.6.  It utilizes ColdFusion Flash Remoting for its data services.  When first setting up the data services I had to set a bunch of properties in the flex server section.  Which I am not sure are all correct but the app does run and connect to the data services.  They were:
    Application Server type: ColdFusion
    Use remote object access service
         ColdFusion flash remoting
    Server Location:
         Deployed to Java application server
         Web Root: v:\inetpub\testFlex
         Root URL: http://myDevServerIP/
         ColdFusion Was folder: v:\CF9\JRun4\servers\testFlex\cfusion.ear\cfusion.war
    My question is now when I'm ready to deploy to my production machine and load the app onto a tablet or other computer, obviously the Root URL will be different something like http://myLiveURL.com.  Is this the only thing I change?  Do I even change it here or is there some other location?  Any other things I need to change?
    Thanks!
    Your help is much appreciated!

    All the paths to CFCs are the same in my live production site.  Can you be more specific as to what you mean by "RemoteClass aliases in your AS Classes and CFCs (if any) are correct."?  How will the app know that the CFC is on http://myLiveSite.com instead of http://myDevSite.com?  The only line of code that I have noticed that points to a URL is the endpoint in a file called _Super_XXX.as.  And at the top of that file it says that the file is not meant for editting.
    To clarify...I see your app/code all exists on a server access via a web browser so I can understand that everything still works when deployed.  Mine is a mobile app so when I am developing and testing on my local computer the URL points to my local development machine.  However when I deploy it to a mobile device like a tablet and run the app, it needs to be able to access a cfc on a remote server via a different URL ie. my http://myLiveSite.com/myCFC.cfc instead of http://localhost/myCFC.cfc
    Thanks for your help!  I will now take a look at your thread.
    Message was edited by: ace0215

  • What is the best way to deploy a java application ??

    Hi,
    I have a question about "deploying" a java application on to a weblogic server.
    Please advise me how to automate in a best way to Deploy 10 different applications(.ear/.war) to 10 different Clusters(containing 40 Managed servers) in wls6.1......and that too in a Production environment.
    I know of using Weblogic Console OR the "deploy" utility to do so ......BUT if i have like 100 clusters .....then i would have to "deploy" 100 times ......
    is there any way that we can BEST AUTOMATE this process.
    Thanks a lot.
    -sangita

    HELLO!!! WELCOME BACK!! I THINK YOU SHOULD USE
    deploy....Hey Thanks.
    is there any network congestion OR any other problem that i can anticipate before i use "deploy" utility. I have heared of some problems(i couldn't remember them now ....because honestly, i couldn't understand them atall when a BEA consultant told me those...).
    so, any problem that may arise ....that i need to think about before deploying ~10 applications to like ~70-80 clusters ....all at a time.
    thanks again for your advise. iam learning to see the big picture of application deployment.
    -sangita

  • How to deploy my web application .war file into SAP netweaver Engine

    Hi All,
    I want to deploy web application which is developped using JAVA web technology into SAP netweaver Engine.
    I tried to deploy .war file through SDM but it complained the following error
    "Error loading archive
    C;\Document and Settings\cr1adm\Desktop\MyProject.war
      (server side name is: F:\usr\sap\JR1\JC01\SDM\program\temp\MyProject.war)
    com.sap.sdm.util.sduread.IIIFormattedSduFileException: The information about development component found in the manifest is either missing or incomplete!
    Manifest attributes are missing or have badly formatted value:
    attribute keylocation missing
    attribute keyname is missing
    attribute keyvendor is missing
    attribute keycounter is missing
    (F:\usr\sap\JR1\JC01\SDM\program\temp\MyProject.war)"
    Can any one please suggest how to deploy external web application into SAP netweaver engine.
    Is there any procedure to follow to do this.
    your inputs will be highly appreciated...
    Thanks in advance
    JM

    You may need to convert the .war archive to SDA/SCA file  format before deploying it to SAP Netweaver Engine.
    Check out the below SAP NOTE if it is usefull.
    Note 1223957 - Usage of NetWeaver Packaging Tool.
    Apart from SDM you can also deploy the files through telnet...
    Note 859444 - How to deploy libraries on J2EE Engine 6.40
    1)Connect to telnet as below
    Start --> Run
    telnet hostname/ip address portno
    Ex: telnet xxx.xx.xx.x 5<Instance no>08
    2)Login with administrator id:
    Use the below command to deploy the files.
    deploy <directory path to the SDAs location> version_rule=all on_prerequisite_error=stop on_deploy_error=stop
    Example: deploy E:\usr\sap\trans\EPS\in\VCBASE03_0-10006939.SCA version_rule=all on_prerequisite_error=stop on_deploy_error=stop.
    Also have a look at this note which talks about the error you are getting.
    Note 1171457 - IllFormattedSduManifest/SduFileException during deployment
    Hope it helps.
    Edited by: Khaiser Khan Mohammed on Nov 7, 2010 12:17 PM

  • How to make a Java application that will change the client box's IP address

    HI how to make a Java application( that application would be run on the client ) that will change the client box's IP address ( IP address of itself )

    If you can do that through the command line, then use Runtime.getRuntime().exec(...) to execute your command.

  • How to deploy DAC enterprise application on WebLogic Server

    hi,
    i have installed DAC server on Linux machine and DAC client on windows machine. I can able to log in to DAC by stand alone mode and
    Currently we are unable to login to the DAC 11g client by FMW(Web mode)
    To login into DAC client by FMW mode we need to deploy DAC enterprise application on WebLogic Server, could anybody help how to deploy DAC enterprise application on weblogic server ?
    Thanks in advance..
    Vinoth

    follow this doc http://docs.oracle.com/cd/E35287_01/fusionapps.7964/e14849.pdf
    mark if it helps

  • How to schedule a java application via Windows Scheduler

    I can't figure out how to schedule a java application using the Windows Scheduler. Do I schedule the java application with the .class file as a parameter? How do I pass arguments to it?
    To execute FileCopy.class, my best guess was:
    Start | Control Panel | Performance and Maintenance | Scheduled
    Tasks | Add Scheduled Task | Browse | Program Files | Java |
    jre1.5.0_06 | ... Advanced Properties
    Under the Task tab:
    Run: "C:\Program Files\Java\jre1.5.0_06\bin\java.exe"
    Start In: "MyDocuments\Eclipse_Workspace\Java_File_Copy
    FileCopy"
    This does not work. How do I schedule the FileCopy.class java application, and how can I pass arguments to it? Can this be done without specifying a password?
    TIA,
    John

    Suppose that your class is FileCopy (has no package name) and is located under MyDocuments\Eclipse_Workspace\Java_File_Copy folder, then you should have:
    Run: "C:\Program Files\Java\jre1.5.0_06\bin\java.exe" FileCopy
    Start In: "MyDocuments\Eclipse_Workspace\Java_File_Copy"
    And yes you must provide a user password to execute the task.
    Best way to do this is to create a special user (with password) for executing this task.
    Regards

  • Deployment of Java application: prepared state

    Hello,
    Weblogic n00b here, so I apologise if this is a seemingly silly question.
    I am deploying a Java application onto Weblogic 11g (server version: 10.3.6.0) via the console, which works perfectly well with no problems.
    However, I now have a requirement to deploy the application onto the server but want to start it (i.e make it active) at a later date... possibly several days in the future.
    Deployment through the console means that the application is made active as soon as I click "Activate changes". Is there any way of completing a deployment so that the application is only "prepared", rather than "active"?
    Thanks for any assistance.

    Hi,
    One thing I would say that when you try to deploy the app and it directly moving into the Active state means that targeted server is already in running mode.
    Make sure that you try to stop the deployment archive when you dont required and it will move to Prepared mode when server is up and running and new state in server shutdown mode.
    Hope this will help you.
    **Note there is so such option for non-active mode deployment.
    Regards,
    Kal

  • How can i run java application at system startup just liks as services

    How we can run java application at the time of system
    starts up just like as services.

    Hi,
    At first you have to create an exe of the class file.
    for that go to the site www.duckware.com/java2exe.html
    Click on the j2exe23c.exe(75k) download it and install in ur system. convert the class file to windows exe.
    The put the exe in the startup folder in windows.
    If ur not able to find that folder search for it and put that exe in that folder.

  • How to start Managed server in weblogic10gr3....please help me out...

    hi...
    How to start Managed server in weblogic10gr3....please help me out...

    Hi
    You can start Managed server in admin console ->servers
    or you can start the managed servers in Independent mode(without admin server)
    by using the startManagedWebLogic.cmd/>startManagedWebLogic.sh (this requires weblogic authentication).
    Hope this helps
    thanks

  • How should I deploy my java application

    Let's say I have a package with a main class, and the main class uses some class in the package
    I export it all in the package in a jar file using Eclipse
    Then, I put the jar file in the lib
    and run using
    java -cp "A1.jar";"lib/*" package/Mainclass
    Is this the correct way of running java application?

    Well that's one way of running it yes, but certainly not the easiest; this way I'd create a shell script for it.
    But you should look into making it an executable jar. Then you can just run it with 'java -jar A1.jar', or if the app does something with a user interface you can probably just double click it in your OS's graphical shell.

  • How to execute a java application once the server starts

    I have created a java application which executes correctly. I want this application to execute everytime I start my server. I have modified my web.xml as shown below
    <servlet>
    <servlet-name>SendEmail</servlet-name>
    <servlet-class>
    com.allcorp.alliance.tdocs.servlets.SendEmail</servlet-class>
    <init-param>
    <param-name>config</param-name>
    <param-value>/WEB-INF/struts-config.xml</param-value>
    <load-on-startup>1</load-on-startup>
    </init-param>
    </servlet>
    I have extended the class with HttpServlet. When I start the server, I get the message saying the class is being initializing but it does not execute. I want the application to execute. Any idea what I need to do.

    BalusC wrote:
    Implement ServletContextListener and run the appplication on creation of the ServletContext.Well i understand implementation of ServletContextListener and by overiding contextInitialized(ServletContextEvent se) accordingly can solve the problem.
    but you need to consider two cases here first
    1).ServletContextListener is not supported by all container especially the minor onces which does not support Servlet 2.3 specification.
    2).OP does not have any idea of how to use a Servlet first if you can see he had written his intialization code in the main method.Now how can you expect him to create a listener..... :)
    I hope there are no hard issues on what i said this time.
    *@OP*
    My friend the bad news is that you need to spend bit of time learning about servlets.U'd not be writing intialization code inside a main rather you'd be doing it inside public void init(ServletConfig config) method.
    by making <load-on-startup><!--value</load-on-startup> in web.xml enables Servlet container to call init method at the time of deployment of the web application else where it'd call the init method whenever servlet encounters first request from a client.
    package com.allcorp.alliance.tdocs.servlets;
    import java.util.*;
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.servlet.http.*;
    import javax.servlet.*;
    import javax.activation.*;
    * @author ssa3z
    * TODO To change the template for this generated type comment go to
    * Window - Preferences - Java - Code Style - Code Templates
    public class SendEmail extends HttpServlet{
    public void init(ServletConfig config) {
        // SUBSTITUTE YOUR EMAIL ADDRESSES HERE!!!
        String to = "[email protected]";
        String from = "[email protected]";
        // SUBSTITUTE YOUR ISP'S MAIL SERVER HERE!!!
        String host = "smtp.allstate.com";
        // Create properties, get Session
        Properties props = new Properties();
       // If using static Transport.send(),
      // need to specify which host to send it to
      props.put("mail.smtp.host", host);
      // To see what is going on behind the scene
      props.put("mail.debug", "true");
      Session session = Session.getInstance(props);
      try {
         // Instantiatee a message
         Message msg = new MimeMessage(session);
         //Set message attributes
         msg.setFrom(new InternetAddress(from));
         InternetAddress[] address = {new InternetAddress(to)};
         msg.setRecipients(Message.RecipientType.TO, address);
         msg.setSubject("Test E-Mail through Java");
         msg.setSentDate(new Date());
         // Set message content
         msg.setText("This is a test of sending a " +"plain text e-mail through Java.\n" +"Here is line 2.");
         //Send the message
         Transport.send(msg);
      }catch (MessagingException mex) {
        mex.printStackTrace();
    } Hope this might help :)
    REGARDS,
    RaHuL

Maybe you are looking for

  • Deletion is taking long time using forall

    Hi,        i am  inserting and deleting the rows using forall. insert taking less time to inset the rows but while coming to deletion it is taking more than 5 days long time to delete 18.5 million rows in a table using forall. the main table having 7

  • How to use the windows API GetCaretPos with FireFox? It works with IE

    I want to get caret position from a windows desktop application using the Windows API GetCaretPos. It works in any windows Application and in IE. It worked also in FireFox for some minutes in version 3.6.8 but than it stopped working. Can anyone tell

  • How to make a Jtable's row selected thru program

    Hi , in my application few of the rows (not continous) need to get selected automatically when the jTable is intially shown. I did this using table.setRowSelectionInterval(0,2) This method works fine selecting all the rows from 0 th to 2 th row, but

  • IPhoto '08. Does TM treat the whole lib as one file?

    I just upgraded to iLife 08 and noticed that iPhoto stores the whole photo lib in one package. Next TM backup copied 7 Gb to the backup drive. That's about the size of my photo lib. I'm wondering if Time Machine treats iPhoto lib package as one file

  • Quicktime won´t open .mov files from raid array

    Hi, my Apple Raid died on me.    I managed to recover the files of each disk and moved into external USB drives. The files are there, but Quicktime won´t open them.      Is there a way to repair these these files ?. Thanks Mac Pro Early 2009 Processo