Create jar and deploy to server

Hi ,
could some one clear my doubts..
Core java:
1. created a simple java project , now how do i jar them and deploy them into a server .. how do i run my project from the server.
Please explain the steps..
J2EE:
Above steps if it is on j2ee environment.
Thanks

If the jar that you have created is going to be used in J2EE application there are few options available:
1. Add this to WEB-INF/lib folder so that it becomes part of your application
2. If you are using Apache Tomcat and you want your jar file to be accessed by all applications that you run on same server add that jar file to:
<Drive>apache-tomcat-5.5.27\shared\lib
3. If you are using any IDE and you need this for testing purpose only add this to your classpath

Similar Messages

  • How to create Websevice and deploy on Server using Oracle SOA 10g ?

    Is that possible to create WSDL without BPEL process ? How to do this ?? And how to deploy it ??
    Edited by: user11180835 on Aug 21, 2011 8:18 AM

    Create a java Class with your code and expose it as a web service in JDeveloper it self.
    Go to Resources folder-you will find webservices.deploy-right click on it deploy to your application server.
    Use the url provided at the end of the WSDL file to access this Webservice.
    Incase of deploying this webservice on some other environment-take the .ear file and upload in the application tab and then do deployment.
    Thanks,
    Chandra_

  • Problem in Creating a jar file using java.util.jar and deploying in jboss 4

    Dear Techies,
    I am facing this peculiar problem. I am creating a jar file programmatically using java.util.jar api. The jar file is created but Jboss AS is unable to deploy this jar file. I have also tested that my created jar file contains the same files. When I create a jar file from the command using jar -cvf command, Jboss is able to deploy. I am sending the code , please review it and let me know the problem. I badly require your help. I am unable to proceeed in this regard. Please help me.
    package com.rrs.corona.solutionsacceleratorstudio.solutionadapter;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.util.jar.JarEntry;
    import java.util.jar.JarOutputStream;
    import java.util.jar.Manifest;
    import com.rrs.corona.solutionsacceleratorstudio.SASConstants;
    * @author Piku Mishra
    public class JarCreation
         * File object
         File file;
         * JarOutputStream object to create a jar file
         JarOutputStream jarOutput ;
         * File of the generated jar file
         String jarFileName = "rrs.jar";
         *To create a Manifest.mf file
         Manifest manifest = null;
         //Attributes atr = null;
         * Default Constructor to specify the path and
         * name of the jar file
         * @param destnPath of type String denoting the path of the generated jar file
         public JarCreation(String destnPath)
         {//This constructor initializes the destination path and file name of the jar file
              try
                   manifest = new Manifest();
                   jarOutput = new JarOutputStream(new FileOutputStream(destnPath+"/"+jarFileName),manifest);
              catch(Exception e)
                   e.printStackTrace();
         public JarCreation()
         * This method is used to obtain the list of files present in a
         * directory
         * @param path of type String specifying the path of directory containing the files
         * @return the list of files from a particular directory
         public File[] getFiles(String path)
         {//This method is used to obtain the list of files in a directory
              try
                   file = new File(path);
              catch(Exception e)
                   e.printStackTrace();
              return file.listFiles();
         * This method is used to create a jar file from a directory
         * @param path of type String specifying the directory to make jar
         public void createJar(String path)
         {//This method is used to create a jar file from
              // a directory. If the directory contains several nested directory
              //it will work.
              try
                   byte[] buff = new byte[2048];
                   File[] fileList = getFiles(path);
                   for(int i=0;i<fileList.length;i++)
                        if(fileList.isDirectory())
                             createJar(fileList[i].getAbsolutePath());//Recusive method to get the files
                        else
                             FileInputStream fin = new FileInputStream(fileList[i]);
                             String temp = fileList[i].getAbsolutePath();
                             String subTemp = temp.substring(temp.indexOf("bin")+4,temp.length());
    //                         System.out.println( subTemp+":"+fin.getChannel().size());
                             jarOutput.putNextEntry(new JarEntry(subTemp));
                             int len ;
                             while((len=fin.read(buff))>0)
                                  jarOutput.write(buff,0,len);
                             fin.close();
              catch( Exception e )
                   e.printStackTrace();
         * Method used to close the object for JarOutputStream
         public void close()
         {//This method is used to close the
              //JarOutputStream
              try
                   jarOutput.flush();
                   jarOutput.close();
              catch(Exception e)
                   e.printStackTrace();
         public static void main( String[] args )
              JarCreation jarCreate = new JarCreation("destnation path where jar file will be created /");
              jarCreate.createJar("put your source directory");
              jarCreate.close();

    Hi,
    I have gone through your code and the problem is that when you create jar it takes a complete path address (which is called using getAbsolutePath ) (when you extract you see the path; C:\..\...\..\ )
    You need to truncate this complete path and take only the path address where your files are stored and the problem must be solved.

  • How to create SAR and deploy in OCCAS

    Is there any eclipse plugin for occas server or How occas server can be handled from eclipse?

    To create a EAR file in JDeveloper, select the project node and choose NEW from the context menu.
    In the NEW gallery select "Deployment Profiles" and choose EAR from the list.
    Deployment:
    - Create a connection in Oracle JDeveloper to OC4J and deploy directly
    - Use java -jar admin.jar .... in OC4J 10.1.2
    - Use Oracle Enterprise Manager Console with OC4J 10.1.3
    Please have a look at the OC4J documentation on OTN that is available online and for download as part of the Oracle Application Server documentation
    Frank

  • Create ear and deploy aqualogic process

    Hi all,
    I'm just starting to use Aqualogic BPM. I've installed Weblogic 9.2 too in my computer.
    I've do the helloworld example process, but i don't know how can i create the ear o war file and deploy it in weblogic, and if i have or not to do something inside the process to do this.
    thanks to all.

    To create a EAR file in JDeveloper, select the project node and choose NEW from the context menu.
    In the NEW gallery select "Deployment Profiles" and choose EAR from the list.
    Deployment:
    - Create a connection in Oracle JDeveloper to OC4J and deploy directly
    - Use java -jar admin.jar .... in OC4J 10.1.2
    - Use Oracle Enterprise Manager Console with OC4J 10.1.3
    Please have a look at the OC4J documentation on OTN that is available online and for download as part of the Oracle Application Server documentation
    Frank

  • Create webservices and deploy

    Dear Gurus,
    I had followed the below steps in creating webservices using ABAP.
    1. Create Package
    2. Create Function group
    3. Create RFC function module
    4. Create webservice from the function module
    5. Create service definition, select port profie and deploy service and assign to Package and transport request
    6. Executed SOAMANAGER transaction , it opens  a webpage with internet explorer defaul web page and I dont see any SOA administration related information and I dont have any clue how to proceed further.
    Please let me know if I there is any prerequisities Like SP to be installed, or any configuration / settings needs to be done.
    I am workign in SAP ECC 6.0 (SAP version 700)
    Thanks in advance.
    Thanks
    Shanthi

    Hi,
    The steps are
    1. In start menu --> Run --> type Drivers and press enter
    2. In that select the folder etc
    3. Then open the file hosts in notepad
    4. In the hosts file add your server ip and the domain name and save it.
    5. Then in internet explorer click tools --> internet options --> connections --> lan settings ---> advanced and add the domain there also.
    it will work fine
          For this get the assist from your system Admin.

  • Create Webservice and deploy

    Dear Gurus,
    I had followed the below steps in creating webservices using ABAP.
    1. Create Package
    2. Create Function group
    3. Create RFC function module
    4. Create webservice from the function module
    5. Create service definition, select port profie and deploy service and assign to Package and transport request
    6. Executed SOAMANAGER transaction , it opens a webpage with internet explorer defaul web page and I dont see any SOA administration related information and I dont have any clue how to proceed further.
    Please let me know if I there is any prerequisities Like SP to be installed, or any configuration / settings needs to be done.
    I am workign in SAP ECC 6.0 (SAP version 700)
    Thanks in advance.
    Thanks
    Shanthi

    Hello,
    In Web Service hierarchy transaction SICF, node APPL_SOAP_MANAGEMENT should be active. The complete path is default_host/sap/bc/webdynpro/sap/APPL_SOAP_MANAGEMENT.
    Once you are in the SOA Management screen, select single service adminstration and select your service and create End Point there.
    Thanks,
    Venu

  • J2ME.... Creating Jar and Jad

    Dear All,
    Apologies for my ignorance, but I have no idea when it comes to command prompts. I've created two simple midlets and I'd like to create jad and jar files form them, so I can put them on my phone. However, I've used the wtk and as such have no clue how to compile, preverify, jar etc etc...
    Is there a simple (windows) app that will do this for me...or is there anybody that would be prepared to do this for me if I email the files?
    Many thanks in advance,
    David
    PS Any help will be greatfully appreciated!

    Well david i'm experimentig with the j2me
    and have found a great tool wich is SunOne from Sun
    Try downloading it, it's free, just download de Microedition version

  • Create folders and navigate through server folder structure in Linux

    Hello,
    I want to know if there are any examples on how to reate folders and navigate through server folder structure in Linux OS. I currently can navigate trough Windows, but need to be able to do it in Linux, by using a GUI for it.
    Any suggestions? Thanks
    LabVIEW Intermediate I level!

    Hi Bebeto,
    Would you please clarify your question a bit for us? Are you trying to implement something like Windows Explorer in your application? Also, are you looking for a tree-like display structure, or list of folders that you can drill down into (i.e. double click to enter into that that folder). My understanding from your comments is that you have implemented something like this in Windows, but not Linux. It this correct? Also, are you looking for advice on the GUI creation side of things, or the programmatic access/creation of files and folders? The more you can clarify your question for us, the more the community will be able to provide feedback and suggestions to help you get on track qiuckly.
    Have a great afternoon!
    John M
    National Instruments
    Applications Engineer

  • Create Jars and programs for windows environments

    Now I do not really need to make an exe file if I do not have to, but really I am just trying to be able to get my program to work in windows. I can compile and run the program fine in netbeans 5.5 . However I have been looking through documentation on actually creating a program that people can execute and run within a windows environment.
    I have added some jar (java mail api ) files to my lib directory within my project in case that makes a difference for the following.
    I used the build fnc within netbeans to create the jar file of my program, however double clicking the jar file does nothing and I am not able to load up the jar file in any way. What did I do wrong or how should I be doing this as this program is not meant for people to use in netbeans all day.
    I did create a bin file and used the java -jar Email.jar, however I get the following error:
    C:\Documents and Settings\JJBROW4\Desktop>java -jar Email.jar
    Exception in thread "main" java.lang.UnsupportedClassVersionError: email/Main (U
    nsupported major.minor version 50.0)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    However it compiles fine in netbeans. Is this because of the jar files I added in the lib within netbeans, or is it just not working in general? Any hhelp would be greatly appreciated.

    C:\Documents and Settings\JJBROW4>java -version
    java version "1.3.1_01"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)
    Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)
    So I just need a newer runtime envronment? becuase I checked in the add or remove programs and I have the se Runtime Environment 6 installed as well as the update 1 for it. So I thought that would be ok.

  • How to create and deploy a simple jstl applicaton in weblogic 10.3.3

    How to create and deploy a simple jstl applicaton in weblogic 10.3.3

    1) Since JSTL libraries are provided as Web application libraries, they must be deployed before the Web application that is using JSTL functionality is deployed. The libraries can be deployed using the Administration Console or with the command-line weblogic.Deployer tool.
    Here’s an example of deploying a JSTL 1.2 library using the weblogic.Deployer command-line:
    java weblogic.Deployer -adminurl t3://localhost:7001
    -user weblogic -password weblogic
    -deploy -library
    d:/beahome/wlserver_10.3/common/deployable-libraries/jstl-1.2.war
    This command deploys the JSTL 1.2 library using the default library-name, specification-version and implementation-version defined by the MANIFEST.MF in the library.
    After a library is deployed, the extension-name, specification-version and implementation-version of the library can be found in Administration console. This information can also be found in the MANIFEST.MF file of the library WAR file.
    For more information on deploying a Web module refer below URL
    http://docs.oracle.com/cd/E15051_01/wls/docs103/deployment/deployunits.html
    2) To reference a JSF or JSTL library, a standard web application can define a <library-ref> descriptor in the application’s weblogic.xml file. Here is an example:
    <library-ref>
    <library-name>jsf</library-name>
    <specification-version>1.2</specification-version>
    <implementation-version>1.2.0</implementation-version>
    <exact-match>false</exact-match>
    </library-ref>
    For more information on referencing a Web application library refer below URL
    http://docs.oracle.com/cd/E15051_01/wls/docs103/programming/libraries.html
    3) Create a sample JSP in your application and JSP should look as shown below
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <html>
    <head>
    <title>TestJSTL</title>
    </head>
    <body>
    <c:set var="topic" value="JSTL" />     
    <c:out value="${topic}" />
    </body>
    </html>
    4) Create WAR and deploy and test.
    Edited by: Murali Veligeti on Jul 26, 2012 9:00 AM

  • BAM Data Source and deployment setting in weblogic

    like In db adapter we need to create datasource and deployment plan in weblogic. what I want to know is this same process is valid for BAM adapter also? If yes, what we will specify in baam data source (What configuration i need to give).
    one more thing i noticed that, Outbound connection pool option is also not coming under BAM configuration
    Please help!!
    Thanks,

    hello,
    For BAM related settings are out of the box in web-logic server,here below points are describes steps to setup the Datasource whatever you call;
    1. In the Settings for oracle-bam-adapter page, select the Configuration tab, and then the Outbound Connection Pools tab.
    2. Configure the connection factory interface that you intend to use in Oracle JDeveloper, by expanding the appropriate Group and Instance target and clicking the Java Naming and Directory Interface (JNDI) name.
    3.     To configure the connection factory for RMI-based calls, click to expand the oracle.bam.adapter.adc.RMIConnectionFactory group and select the JNDI name that the user uses in Oracle JDeveloper. The eis/bam/rmi connection factory is provided out of the box.
    4.     To configure the connection factory for SOAP-based calls, click to expand the oracle.bam.adapter.adc.SOAPConnectionFactory group and select the JNDI name that the user uses in Oracle JDeveloper. The eis/bam/soap connection factory is provided out of the box.
    Hostname : local host (host name of BAM server)
    Instance Name: ADCServer1 (default for RMI)
    Password : welcome1 (password of BAM server)
    Port Number : 9001(port number of BAM server)
    Username : weblogic (user name of BAM server)
    5. after saving it need to re-deploy OracleBAMAdaper, In deployments select OracleBAMAdapter click Update button.
    I hope these steps are helpful.
    PS Outbound connection pool option is also not coming under BAM configuration -- for this check BAM server is running or not or any other BAM server installation or ect.
    Thanks
    Siva Sankar
    TechDemocracy

  • How to grant user permission to create "Credential" and "Proxies"

    Hi Team,
    Kindly let me know how to grant permission for user to create "Credential" and "Proxies" on server:
    Thanks in advance
    Santosh

    Can I revoke this permissions once I grant?
    You can use DROP and REVOKE commands to do the opposite.
    USE [msdb]
    GO
    ALTER ROLE [SQLAgentOperatorRole] DROP MEMBER [TestLogin1]
    GO
    USE [msdb]
    GO
    ALTER ROLE [SQLAgentReaderRole] DROP MEMBER [TestLogin1]
    GO
    USE [msdb]
    GO
    ALTER ROLE [SQLAgentUserRole] DROP MEMBER [TestLogin1]
    GO
    use [master]
    GO
    REVOKE ALTER ANY CREDENTIAL TO [TestLogin1] AS [sa]
    GO
    Cheers,
    Vaibhav Chaudhari
    [MCTS],
    [MCP]

  • How to build and deploy EJB3.0 jar on JBoss Server

    Hi:
    I want to create web service using EJB3.0.
    For that first i have created EJB project,in that i add following code:
    package com.ejb;
    import javax.ejb.Stateless;
    import javax.jws.WebService;
    @Stateless
    @WebService
    public class TemperatureConverter {
         public double celsiusToFarenheit(double temp){
              return ((temp*1.8) + 32);
         public double farenheitToCelsius(double temp){
              return ((temp-32)/1.8);
    }Now i want to build and deploy the jar on server.
    How can i do this?
    Thank You.

    Hi AnupDesai,
    I suggest you to have a read of the [*JBoss EJB3 Documentation*|http://www.jboss.org/ejb3/docs].

  • How to Create simple WCF/REST (JOSN,get and post) and deploy to Sharepoint 2013 Server.

    HI All,
       I wan to create a simple WCF/REST service and deployed to SharePoint server , i have created some sample svc file and put in to _vti_bin folder using SharePoint solution using vs 2013 but its not accessible from IIS its always asking the Widows
    Authentcation .
    however my exact requirement is custom service should be accessible without asking the authentication like _vti_bin/Listdata.svc is there any way to do like this ? 
    my reference:
    http://platinumdogs.me/2013/03/14/sharepoint-adventures-with-the-rest-api-part-1/
    http://msdn.microsoft.com/en-us/library/office/jj860569(v=office.15).aspx
    http://dotnetmentors.com/wcf/wcf-rest-service-to-get-or-post-json-data-and-retrieve-json-data-with-datacontract.aspx
    http://stevenhollidge.blogspot.in/2011/09/wcfwebapi-rest-json-services.html
    Thanks
    SujilKumar
    Software developer

    Hi Sujil
    Greetings. pls check this link
    http://social.technet.microsoft.com/wiki/contents/articles/24194.sharepoint-2013-create-a-custom-wcf-rest-service-hosted-in-sharepoint-and-deployed-in-a-wsp.aspx
    Please remember to click 'Mark as Answer' on the answer if it helps you

Maybe you are looking for

  • Workflow 2010 set list item permissions

    I have a sharepoint 2013 list set up with two kinds of users (Approver and Employees) needing access: Approvers - need full control on the list/site Employees - can only have edit/read access to their own list item or entry I'm using SPD 2013 with wo

  • After uploading OSX Mavericks problem

    I've had lots of problems with this new system but this one grates. Before the change I used to put the computer to sleep and wake it when I wanted. No problem, easy and managable. Now I do the same and when  I return often there is no response just

  • SQL help, how to group by column A and then get top frequency of column B?

    Assuming the following table, operation represents each kind of transaction operation table operation employee other column c '<' id1 '<' id1 '<' id2 '*' id3 '/' id1 question, for each operation, which employee do the most? which employee do the 2nd

  • I/O CDP relevant input components in PDS with wrong quantity

    Dear Experts, In my PDS, I  have 2 components which are I/O type CDP relevant input. Problem is that in the PDS, these CDP component quantities are wrong in comparison with quantities maintained in the R/3 BoM Master Recipe. Components are classified

  • RME 4.0.3 (Supported devices)

    Hello! I have installed LMS 3.2 with RME 4.0.3. Apparently from the document http://www.cisco.com/en/US/docs/net_mgmt/ciscoworks_lan_management_solution/3.2/device_support/table/lms32sdt.html#3.2table RME 4.0.3 does not support Cisco Cat6500, Routers