Regarding jar file creation

hi friends
i created jar file using export in eclipse...Successfully created the jar file..but i want to include libarary files also with that jar..for example jdbc connector jar file with that jar..please help

[Creating JAR file|]

Similar Messages

  • Regarding Jar file

    i need to download a jar file which would help me in accessing the methods present in IWD Bussiness Graphics Interface.
    Can you please let me help in these.

    I can suggest a workaround that,  Use different ViewContainer UI elements for each Graph Type and Hide all the ViewContainers by setting the Visible Property to a node of type IWDVISIBLE. And in doinit method just set that node to VISIBLE_NONE.  So on seleting the graph type, capture the value and write if conditions and set the VISIBLE_TRUE for the View Container as required.  Like
    if(attr == bar)
    the above code is an example. (just make changes to syntax)
    Revert me if you have any queries.

  • Regarding jar file checkin in CRM ISA 6.0

    I want to checkin some java files in CRM ISA using NWDI but these java classes have dependency on some third party jars which i need to checkin as well.
    I am unable to find the location where i can checkin the jar files so that these files can be compiled and build without any error.
    Please reply ASAP.

    1) create an Extneral library DC
    2) import the JARs to the libraries folder of the External Library DC project
    3) Right-click on each of the JARs imported to the project and add them to the public part.
    This DC is now ready to be used as a build-time reference that will allow CBS to build the DC that will use the external libraries. Next, we have to create a new DC to hold the class files here are the steps:
    1) Create a new DC
    2) Create a new public part, selecting the "Can be packaged into other build results" option
    3) Rename the JARs as Zip files and extrct the full content (folders and class files) to your root folder
    4) Import the folders and files to the src/packages folder
    5) Expand the public part node that was created and select the "Entities" node, right-click it and choose Edit
    6) In the Entity Type list select the "Folder" option then in the selected entities tree pick each of the folders that you imported in step 5 (above)
    7) Now do a DC build and a DC deploy of the project
    Then check-in, activate, and release any activities you have associated with creating these two projects. In the DC perspective, refresh the Active DCs and Inactive DCs to ensure that both new DCs appear in the Active list. Now we have to setup the references to these DCs in our main Web Dynpro application. To do this, follow these steps:
    1) Open the respective perspective and right click the Used DCs node then choose "Add Used DC.."
    2) Pick the public part of the External Library DC that we created (first) and set it to have a Build Time dependency
    3) Again, right click the Used DCs node and choose "Add Used DC.." then choose the public part of the DC that we created to hold the classes  and give it a Run Time dependecy (weak) and click finish.
    4) Now, due to what I think is a bug. You must right click on the Web Dynpro "used DC" that you just added in the previous step, and set the run time dependency again (it seems to revert to the default values for some reason)
    5) Now do a DC build and a DC deploy on the "main" DC application.
    6) Check-in, activate, and release any activities associated with adding these references and then others on your team may use the classes in the external libraries within the Web Dynpro project.
    I think this will work this is working perfectly for webdynpr DC's
    Thanks and Regards
    shanto aloor

  • Problem  in jar file creation

    I have create the jar file, but it show the following error mesage since i start to run it.
    Java Virtual Machine Laugcher
    Failed to load the main class manifest attribute from
    What the problem for this?
    my file contain the information
    Manifest-Version: 1.0
    Main-Class: mysystem.MainFrame
    note, my directory is javac mysystem/ to run

    What's the name of the manifest file in the jar file?
    What do you get when you do
    jar tvf test.jar

  • applet tag regarding JAR file

    Is there something wrong with the following applet declaration?
    <applet code = "Sheep2.class" archive="Sheep2.jar" width = 500 height = 300
    ALT="If you could run this applet, you'd see a sky, a field, and a moon.">
    Your browser is completely ignoring the <APPLET> tag!
    Works fine (it seems) on my Windows 98 computer with IE 6.0280, but does not work on the same computer when I access the page calling the applet using AOL's v.9 browser.
    I used HtmlConverter to convert the above to Extended version (covering all platforms), and still does not work with AOL's browser. HtmlConverter reported no errors, but now IE shows an error icon in its status bar when I access the page even offline.
    Other html files I converted using HtmlConverter work fine with AOL's browser. They don't have "archive" attribute.
    What could be going wrong? My guess is JAR file reference is causing problems.

    I did more Html Conversion today. I ran one file which didn't show any error mark in the status bar of IE through HtmlConverter. I ran the new file generated by HtmlConverter and an error icon appeared in the status bar of IE. My Java Console didn't show any message. So, it must be an error in the applet related info HtmlConverter generated was not 100% html compliant..
    BTW, I started speculating the cause of my applets not working on the computer of oen of my friends is simply that her Java Plug-in cannot handle Swing components' J classes.

  • Help regarding jar file

    hi all,
    i have jar file called com and i placed jar file in lib/ext
    in that i have two class say for ex. class a and class b.
    And class b extends class a.
    i am importing class b in some other class( in diffrent project)
    when i going to use the methods of class b it giving
    an error .......The type SQLPropertiesFN cannot be resolved. It is indirectly referenced from
    required .class files
    i don't no what the error is
    please help to solve this problem
    thanks in advance

    i have jar file called com and i placed jar file in lib/ext
    The type SQLPropertiesFN cannot be resolved. It is indirectly referenced from required .class files
    i don't no what the error is please help to solve this problem
    ...Where did you get that com.jar? Maybe there were also other jars or README file bundled with it?
    The error means that some class in "com.jar" needs another class that's not available, so probably you should add some other jar too...

  • Jar file creation problem

    I have create the jar file, but it show the following error mesage since i start to run it.
    Java Virtual Machine Laugcher
    Failed to load the main class manifest attribute from
    What the problem for this?
    my file contain the information
    Manifest-Version: 1.0
    Main-Class: mysystem.MainFrame
    note, my directory is javac mysystem/ to run

    Open the jar in WinZip (or any other).
    the mysystem directory should be in the root..

  • Regarding Excel file creation.

    Hi experts,
    I retrieved the ALV output into an internal Table which is containing Text(1024) as member.
    After getting Data I need to pass this data to Excel file.
    Excel file should contain exact format of ALV.
    Please suggest me..............

    after getting data into EXCEL File and i need to pass this one as attachment to mail. If i use  GUI_DOWNLOAD is saved into presentation server and i need to pick that file from presentation server  and i will send. But this one won't work in BACK Ground. That is the reason after getting data from ALV report into Text Variable and i need to pass this data to excel file, and that excel file as to go an attachemnt to mail,.Everything in Background only.

  • Regarding JAR files.

    Dear sir,
    I have given the following coding as an assignment from my college.Please help me to solve it.I have to submit in few days. please reply me as soon as possible.
    And assignment is:
    h3. Problem Statement
    You are trapped in a room full of zombies. Luckily the room is pitch black and, while the zombies can't see, you have night vision goggles. To get out though you will have to be careful, since bumping into a zombie is hazardous to your health.
    More specifically, each zombie will have x and y coordinates between 0 and 99 inclusive. You start at (0,0). If you can get to (99,99), you can take an elevator to safety. You may not leave the room any other way. Get there as fast as you can!
    You must implement a method move. This method takes two int[]s, zx and zy, giving the locations of all the zombies, along with ints x and y giving your location. Your method should return "S" to stand still, or "R", "L", "U", or "D" for the four cardinal directions, and "RU", "RD", "LU", or "LD" for the four diagonal directions: {noformat} LU U RU
    L S R
    LD D RD
    {noformat}Moving right increases your x coordinate, while moving down increases your y coordinate.
    After each of your moves, the zombies will all move randomly. Each zombie will chose a random direction (from the 9 including no move) and attempt to move in that direction. If a zombie wants to move outside of the box defined by (0,0)-(99,99) it will stay where it is instead. Note that while the initial locations of all the zombies are distinct, they will not stay that way -- multiple zombies may occupy the same location.
    Each test case will be generated by first choosing a zombie density in [0.05,0.15]. All locations with x or y at least 5 will then contain one initial zombie with probability equal to the density.
    The simulation will be run for a maximum of 10,000 time steps. You may run into zombies at most 10 times -- the 11th one will kill you. If you fail to reach the exit but you manage to stay alive for T time steps, your score will be T. If you make it to the exit at time T, your score will be 30000 - 2 * T plus 1000 per unused life. In other words, you have 10,000 steps to escape, and you get a bonus of 2 points for each time step you don't need to use. Your final score will simply be the average of your individual scores.
    A simple is provided . To use it you need to write a program which communicates via standard IO. Your main method should first read in N, the number of zombies. For each call to move, you should read in N integers for zx, then N integers for zy, and finally two integers for x and y. You should simply output the move you would return. You can run it with something like: {noformat}java -jar Zombie.jar "java Zombie" -delay 1 -seed 1
    {noformat}"java Zombie" is the executable, and should be replaced with whatever command will run your program. The -delay parameter sets the delay in milliseconds between moves. The -seed parameter specifies the random number generator seed (the examples are 1-10). There is also a -novis parameter which causes the simulation to be run with the visualization. Be careful not to output anything other than your moves to standard out. Standard error may be used for debugging purposes"
    import java.util.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class BrownianZombies extends JFrame{
    int[] zx, zy;
    int x, y;
    int[] idx;
    boolean[][] visited;
    double p;
    Random r;
    int delay = 100;
    boolean novis, history;
    void generate(String seed){
    r = SecureRandom.getInstance("SHA1PRNG");
    } catch (Exception e) {
    int[] tx = new int[10000];
    int[] ty = new int[10000];
    idx = new int[10000];
    visited = new boolean[100][100];
    int ptr = 0;
    p = r.nextDouble()*0.1+0.05;
    for(int i = 0; i<idx.length; i++)idx[i] = i;
    for(int i = 0; i<100; i++)for(int j = 0; j<100; j++){
    if(i >= 5 || j >= 5)if(r.nextDouble() < p){
    tx[ptr] = i;
    ty[ptr] = j;
    zx = new int[ptr];
    zy = new int[ptr];
    for(int i = 0 ;i<ptr; i++){
    zx[i] = tx;
    zy[i] = ty[i];
    public void move(){
    for(int i = 0; i<zx.length; i++){
    int s = r.nextInt(i+1);
    int t = idx[i];idx[i] = idx[s];idx[s] = t;
    for(int i = 0; i<zx.length; i++){
    int xx = zx[idx[i]] + r.nextInt(3) - 1;
    int yy = zy[idx[i]] + r.nextInt(3) - 1;
    if(xx < 100 && yy < 100 && xx >= 0 && yy >= 0){
    zx[idx[i]] = xx;
    zy[idx[i]] = yy;
    int lives = 10;
    int T;
    public boolean ok(){
    for(int i = 0; i<zx.length; i++)if(x == zx[i] && y == zy[i])lives--;
    return lives >= 0;
    public String checkData(String s){return "";}
    public double runTest(String lt){
    int time = 10000;
    StringBuffer sb = new StringBuffer();
    int score = 30000; T = 0;
    if(history)visited[0][0] = true;
    while((x != 99 || y != 99) && T < 10000){
    for(int i = 1; i<zx.length; i++)
    sb.append(' ').append(zx[i]);
    for(int i = 1; i<zy.length; i++)
    sb.append(' ').append(zy[i]);
    sb.append('\n').append(x).append(' ').append(y).append('\n');
    String dir =;
    }else if(dir.equals("R")){
    }else if(dir.equals("L")){
    }else if(dir.equals("U")){
    }else if(dir.equals("D")){
    }else if(dir.equals("RU")){
    }else if(dir.equals("LU")){
    }else if(dir.equals("RD")){
    }else if(dir.equals("LD")){
    System.out.println("Invalid Direction: "+dir);
    return 0;
    if(x < 0)x = 0;
    if(y < 0)y = 0;
    if(x == 100)x = 99;
    if(y == 100)y = 99;
    System.out.println("Brains... Score = "+T);
    return T;
    System.out.println("Brains... Score = "+T);
    return T;
    score -= 2;
    if(history)visited[x][y] = true;
    System.out.println("Score: "+(score + lives * 1000));
    return score + (x != 99 || y != 99 ? 0 : lives * 1000);
    }catch(Exception e){
    return 0;
    class Vis extends JPanel{
    public void paint(Graphics g){
    if(zx == null)return;
    Graphics2D g2 = (Graphics2D)g;
    g2.setColor(new Color(200,200,200));
    Font f = new Font(g2.getFont().getName(),Font.PLAIN,20);
    FontMetrics fm = g2.getFontMetrics();
    int th = fm.getAscent();
    int mul = Math.max(1,Math.min((getWidth()-1)/100,(getHeight()-1-2*th)/100));
    int[][] cnt = new int[100][100];
    for(int i = 0; i<zx.length; i++){
    for(int i = 0; i<100; i++){
    for(int j = 0; j<100; j++){
    if(cnt[i][j] == 1)g.setColor(;
    else if(cnt[i][j] > 1)g.setColor(Color.magenta);
    else if(visited[i][j])g.setColor(Color.cyan);
    else g.setColor(Color.white);
    if(i == x && j == y)g.setColor(;
    String txt = "Moves Made: "+T;
    txt = "Lives left : "+lives;
    static Process pr;
    static Scanner input;
    static InputStream error;
    static DataOutputStream os;
    public static void main(String[] args) throws IOException{
    BrownianZombies b = new BrownianZombies();
    String exec = null;
    String seed = "1";
    for(int i = 0; i<args.length; i++){
    b.delay = Integer.parseInt(args[++i]);
    }else if(args[i].equals("-seed")){
    seed = args[++i];
    }else if(args[i].equals("-novis")){
    b.novis = true;
    }else if(args[i].equals("-history")){
    b.history = true;
    exec = args[i];
    if(exec == null){
    System.out.println("Please enter an executable");
    //for(int i = 0; i<b.zx.length; i++){
    //System.out.println(i+" "+b.zx[i]+" "+b.zy[i]);
    b.add( Vis());
    b.addWindowListener(new Closer());
    pr = Runtime.getRuntime().exec(args[0]);
    input = new Scanner(pr.getInputStream());
    error = pr.getErrorStream();
    os = new DataOutputStream(pr.getOutputStream());
    new ErrorReader().start();
    public String displayTestCase(String s){
    return "p = "+p;
    public double[] score(double[][] d){
    double[] ret = new double[d.length];
    for(int i = 0; i<ret.length; i++)
    for(int j = 0; j<d[0].length; j++)
    ret[i] += d[i][j];
    return ret;
    static class ErrorReader extends Thread{
    public void run(){
    byte[] ch = new byte[50000];
    int read;
    while((read = > 0){
    String s = new String(ch,0,read);
    //System.out.println("err: "+s+" "+s.endsWith("\n"));
    }catch(Exception e){
    //System.err.println("Failed to read from stderr");
    static class Closer implements WindowListener{
    public void windowActivated(WindowEvent e){}
    public void windowDeactivated(WindowEvent e){}
    public void windowOpened(WindowEvent e){}
    public void windowClosing(WindowEvent e){
    public void windowClosed(WindowEvent e){}
    public void windowIconified(WindowEvent e) {}
    public void windowDeiconified(WindowEvent e) {}

    haytony, let me give you a word of advice. The more work you show, the more work the volunteers are often willing to give. For instance, if you've done a ton of research, wrote most of your own code but were stuck on specific points and posted this, the folks here will bend over backwards to lend you a strong hand to help you as much as possible.
    If on the other hand, you simply post your entire assignment and don't show that you've done one speck of work, often we ignore you at best or ridicule you at worst.
    C'mon, it's up to you. Step up to the plate and show us your work, and your worthiness for help. If you can prove yourself to be a hard-working studious type, then I personally will do all in my upmost to help you. If on the other hand you repeatedly spam these forums with pathetic attempts at getting others to do homework where there is absolutely no evidence that you have done a lick of work yourself, then I will ridicule, flame, and bother you to know end.
    So which is it to be? Again, it's all up to you. Time to go to bat.

  • Regarding the creation of common jar file ......!

    Hi All ,
    I need to create a new Jar file which consists of the generic code which we can use for connecting to the database. The class in the jar file should have methods like u201CExecuteSelectu201D. u201CExecuteInsertu201D, u201CExecuteDeleteu201D and u201CExecuteUpdateu201D.  which  should pass the required parameters to these methods so that they can execute the corresponding query. My  UDF should use this class file and call the methods above to run any SQL statements.
    any one having any idea about how to create the above requirements .....?
    Thanks in advance

    >> class in the jar file should have methods like u201CExecuteSelectu201D. u201CExecuteInsertu201D, u201CExecuteDeleteu201D and u201CExecuteUpdate
    For developing your requirement, you can use Eclipse or any other IDE which is supported for writing Java codes. Write the codes of your requirement in IDE and compile it. Make a .jar file of classes. and then create a new Imported archive and upload your .jar file. Then relevent  class has to be declared in the import statement. This way you can use your all classes in UDF.
    Aashish Sinha

  • From Where can i download  Jar Files for creation of adapter Module.

    From Where can i download these Jar Files.
    aii_af_mp.jar à the interface Module
    aii_af_ms_api.jar  à Dealing with payload and attachment
    aii_af_trace.jar à Writing Trace
    aii_af_svc.jar à Adapter Services
    aii_af_cpa.jar à Reading Channel Entries
    for creation of adapter Module.

    As k you basisn team,they will provided it.
    usually these jars files available in server, in usr.repositoy folder,if you have server level access then you can copy it else contact your basis team.
    or you can download it from service market place.

  • Help required regarding sending jar files using bluetooth

    I want to send jar file from Nokia 7610 (S60), or any other phone for that matter, to any other phone using bluetooth. The problem is that, when I look at the options available for the jar file (which is saved in the Inbox), the send option is not visible.
    I looked at the previous postings on this topic. Is it due to "Closed Content List" (CCL)??? What are the possible workarounds, other than using getResourceAsStream or some software like FExplorer???
    Also, this problem is not encountered in Sony Ericsson phones. Plz help regarding the same...

    You might wanna look take a look in the JSR 82 Specifications. There is a method like agent.startInquiry(); that starts a search for nearby BT devices. All you have to do is place each found device in an array of type Vector.
    It would have been easier if your code or a snippet of it was available to see what the problem was.
    PS: A client application application starts a connection on a server application. Where you put them is up to you.

  • OSGI bundle creation using third party jar files

    I have a requirement to integrate our CQ5.5 based application with a third party. As part of this, I have to use some jar files. After lot of digging, I realised that the way to use external jar files is to create an OSGI bundle wrapping these jar files.
    So, I tried to do the same, but when I see the service details in system/console, I see errors. Can someone please suggest what could have gone wrong?
    I have to use 3 jar files. So, I placed them in lib folder as shown in the screenshot below.
    Ibuilt the bundle using .bnd file. It generated a jar file in install folder and I am able to to see its details in system/console/bundles. When I try to view details of the OSGI bundle that is installed, I see errors as follows:

    Here is my bnd file with all directives:
    Export-Package: *
    Import-Package: *
    Private-Package: *
    # Include-Resource:
    Bundle-Name: External Jar OSGI
    Bundle-Description: This OSGI bundle contains external jar file
    Bundle-SymbolicName: com.self.learning.externaljarosgi
    Bundle-Version: 1.0.0-SNAPSHOT
    Bundle-Activator: com.self.learning.osgi.oauth.Activator
    And here is what is shown in systems/console/bundle:
    Imported Packagesjavax.crypto from org.apache.felix.framework (0)
    javax.crypto.spec from org.apache.felix.framework (0)
    javax.servlet from cqse-httpservice (21)
    javax.servlet.http from cqse-httpservice (21)
    net.oauth -- Cannot be resolved
    net.oauth.client -- Cannot be resolved
    net.oauth.client.httpclient3 -- Cannot be resolved
    net.oauth.client.httpclient4 -- Cannot be resolved
    net.oauth.server -- Cannot be resolved
    net.oauth.signature -- Cannot be resolved
    org.apache.commons.codec.binary from org.apache.commons.codec (46)
    org.apache.commons.httpclient from (77)
    org.apache.commons.httpclient.methods from (77)
    org.apache.http -- Cannot be resolved
    org.apache.http.client -- Cannot be resolved
    org.apache.http.client.methods -- Cannot be resolved
    org.apache.http.entity -- Cannot be resolved
    org.apache.http.impl.client -- Cannot be resolved
    org.apache.http.params -- Cannot be resolved
    org.apache.http.util -- Cannot be resolved
    org.osgi.framework from org.apache.felix.framework (0)
    org.slf4j from slf4j.api (11)
    Regarding Export-Package, I know the function, class and its package I need to use. Would it be fine if I just export that package instead of using '*'? In such case, if this has dependency on some function in one of the 4 jar files I need to use, how does it get resolved? Do I need to Export those packages as well?

  • Problem with creation of a jar file from inside a java program

    I am trying to create a jar file at runtime from within a java program.
    I am able to create a jar file just fine using:
    String[] jarArgs = new String[3];
    jarArgs[0] = "cvf";
    jarArgs[1] = "C:\temp\myjar.jar";
    jarArgs[2] = "C:\temp\this"; main1 = new, System.err, "jar");;However, when I look at the jar it puts the absolute path to the files inside such as:
    instead of only this\is\my\package\Class.class
    When running the jar command from the command line it works just fine and I have the relative paths in my jar file.
    Does anyone have any experience with this and could help me out?
    Thanks in advance
    Edited by: mruf on Apr 11, 2008 1:51 AM

    Shouldn't jarArgs[2] = "-C C:\temp\this"

  • Help---- creation of jar file

    i have developed a application with swing concept and mysql as my database... now i am trying to create jar file for my application... in the manifest file i have given like this:
    class-path: C:\Program Files\MySQL\mysql-connector-java-5.0.4-bin.jar;C:\Program Files\Java\jdk1.5.0\bin;
    Main-Class: Login
    but still it throws an exception that main class: could not be found:
    can any one help me...
    Thank u in advance..

    For a classpath it is easy to forget to add code]//.;[ to the classpath and you also want to add %CLASSPATH%; as well
    example classpath=.;%CLASSPATH%; of libs/jars the dot tells jvm to search current directory just like in DOS

Maybe you are looking for

  • Imminent hard drive failure 2010 iMac 27, 2.93GHz

    Hi I have a 2010 2.93GHz 27in iMac that is my main machine. It has both a 256GB Apple SSD and a 2TB Hitachi HDS722020ALA330 installed with the SSD running Apps and the system and the Hitachi used for my Home folder. I use both iStat and SMART Utility

  • Post Moved Unable to download email attachments

    Post moved to Other BB Queries​-to-download-email-attachments/td-p/573621 If you want to say thanks for a helpful answer,please click on the Ratings star on the left-hand side If the reply answers y

  • Need to download Adobe Acrobat 7.0 Standard

    I'm the netadmin at my place of employment and have recently formatted one of my user's PCs. Unfortunately the Adobe 7.0 std. CD I have doesn't work anymore so I need to download an .iso or something of it so that I can install it back on his PC. He

  • Jdeveloper Testing setting warring Issue

    Hey Guys, After installing and configuring Jdeveloper i have to test my setting, but for that when i click Rebuild on Tutorial i get the following warring, Can anyone guide me how can i resolve the issue ??? __Project: D:\oracle\JDeveloper\jdevhome\j

  • SAP UI5 theme editor

    Hello all, I have few doubts regarding UI5 theme editor tool. Theme editor tool is used to create custom themes. we copy an existing theme and make changes in that. After that that theme is published and used. 1. Where can we see the library.css file