Adding Class Libraries

hello
right now i wanna use JTAPI (as shiped by java.sun.com) class libraries with JBuilder/JDeveloper how can i add them in IDE, it only accepts .jar files as a class libraries but i got simple class files(as shipped with java.sun.com)
kindly help me in this regard

I would recommend using the jar utility instead of zip. Actually, I would say DO NOT use zip. The jar utility comes with the JDK and the usage is this:
Usage: jar {ctxu}[vfm0M] [jar-file] [manifest-file] [-C dir] files ...
Options:
-c  create new archive
-t  list table of contents for archive
-x  extract named (or all) files from archive
-u  update existing archive
-v  generate verbose output on standard output
-f  specify archive file name
-m  include manifest information from specified manifest file
-0  store only; use no ZIP compression
-M  do not create a manifest file for the entries
-i  generate index information for the specified jar files
-C  change to the specified directory and include the following file
If any file is a directory then it is processed recursively.
The manifest file name and the archive file name needs to be specified
in the same order the 'm' and 'f' flags are specified.
Example 1: to archive two class files into an archive called classes.jar:
jar cvf classes.jar Foo.class Bar.class
Example 2: use an existing manifest file 'mymanifest' and archive all the
files in the foo/ directory into 'classes.jar':
jar cvfm classes.jar mymanifest -C foo/ .I use it like this:
jar -cvf filename.jar folderName
Good luck!

Similar Messages

  • Syntax/error checking breaks in FlexBuilder/Flashbuilder with class libraries over Samba?

    We have our class libraries on a shared server we access via Samba (and ssh for command line). Sadly, several features seem to fail in both Flex Builder and Flash Builder/Gumbo with this setup. For example, we no longer get automatic syntax and error checking. Anyone familiar with this issue and able to suggest a solution? Thanks!

    Be sure you are not mixing -compat=4 and -compat=5 compilations in the same program.
    The -compat=4 mode is for compiling very old source code that was written for C++ 4.2 (1996). It provides almost none of the features of standard C++. Don't use this mode unless there is a specific reason why you must.
    Do not use -I or -L options that point into /usr/include, /usr/lib, or into the compiler installation area. These directories are always searched by default in the correct order. If you specify them explicitly, you force an incorrect search order.
    Be sure you have the minimum patch level of SUNWlibC required by the compiler. The patch includes libCstd, libCrun, libC, libiostream, libdemangle, and some other files. The minimum patch level comes with the compiler, and the Sun Studio installer will install the patch on the system where the compiler is installed.
    You also need the patch on every system that runs the compiler, and every system that runs programs created by the compiler.
    It is always safe to use the latest SUNWlibC patch. You can download the current patch from
    http://developers.sun.com/sunstudio/downloads/patches/index.jsp
    But the link failure in your case is due to a missing function from your own code, since it involves a function parameter of a programmer-defined type. I suspect you have either
    1. failed to define (provide a body for) the function,
    2. declared it inconsistently as inline and not inline,
    3. defined the function in a namespace different from the one where it was declared, or
    4. failed to link the object file where the function is defined.

  • JDBC 2.0 Class libraries

    Does that standard installation of BEA Web logic server version 6.1 contain the JDBC 2.0 classes. If not I assume that I have to download and install the class libraries in addition to the web server installation.

    Stuart Amos wrote:
    Does that standard installation of BEA Web logic server version 6.1 contain the JDBC 2.0 classes. If not I assume that I have to download and install the class libraries in addition to the web server installation.What JDBC 2.0 classes are you refering to? The definition of JDBC 2.0 exists as classes in the java.sql
    package, which is part of any recent JVM. JDBC drivers may or may not implement all the JDBC 2.0
    methods. Our driver for Oracle or for MS SQLServer do not implement many or any of the JDBC 2.0
    methods. The thin Oracle driver we ship does most of them, as does the sybase driver. All our internal
    drivers, used for accessing pool connections, are all JDBC 2.0-capable.
    Joe

  • Forte Class Libraries

    All,
    Has anybody used any Forte Class Libraries. What do they provide and
    how do you rate them.
    We are a Forte greenfield site are looking for some Class Libraries to
    kickstart our development.
    TIA
    Joe
    The views stated are personal and do not necessarily reflect those of
    Saudi International Bank
    Joe Gill Voice: +44 (0) 171 259 3185
    Saudi International Bank Fax: +44 (0) 171 259 6060
    London SW1X 7XS
    Work Email: [email protected]

    From: "Fred Scholldorf +1 (516) 434-6230" <[email protected]>
    No parser/lexer that I know of, but I know what
    you should try to wrapper if you did want a
    great Lexer/Parser package.
    I would go for T. Parr's PCCTS. (www.oncus.com/pccts.html)Good tip, but there is a minor typo in the URL you've provided.
    It should be "www.ocnus.com/pccts.html".
    Michael Brennan
    Programmer/Analyst
    Amgen Inc.

  • Javax class libraries in VJ++ 6.0

    Hello,
    I'm using VJ++ 6.0: it does not recognise the javax class libraries, among others. I've installed version 1.4.2_04 of the SDK, which contains all the new class libraries. There is a directory containing the old class libraries, c:\winnt\java\packages. But each time I open VJ++, it goes to these old class libraries. So a project that uses javax won't compile. However: if I compile from the command prompt, it works fine. I want to use VJ++ though, as it's easier to use for writing code. Is there any way I can update VJ++ to take from the new class libraries? There's an option in Project/prjExample Properties, in the ClassPath tab, which allows me to extend the project ClassPath. This only seems to take zip files though - and all of the 1.4.2 is contained in jar files. Could there be somewhere else where this can be done?
    Please help!

    no, you cant simply combine different classpaths/jvs/compilers.
    J++ uses an Microsoft-Compiler and a Microsoft-JVM so theres no chance at all to get this working. (However there is an external swing-package for 1.1-class jvms but it is outdated and not recommended at all).
    Have you ever tried JBuilderX or other modern IDEs. Most are free for non-commercial use and are much more standard-compliant and comfortable that J++.
    J++ isnt even support by microsoft since a long time, so switch so something new you are sitting on a dead end!
    lg Clemens

  • Java Class Libraries

    Does anyoen know where I can get just the Java Class Libraries in a .zip format but using .java files and not .class files?

    Do you mean the source code for JDK?
    This you can get from
    http://wwws.sun.com/software/java2/download.html

  • Class Libraries and Code used to Access Google Distance Matrix API

    Hey Everyone....! I want to use Google Distance Matrix API with my C# application, which gets two co-ordinates(Latitude/Longitude) and pass them to API. Also to receive the results from API and construct and output class to interpret JSON objects.
    Can anyone please tell me about class libraries and code used for above purpose.
    Longbow

    Hello,
    If you want to use the Google Distance Matrix API, i suggest that you could post code sample demo to this api forum:
    https://developers.google.com/maps/support/
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Adding .class files to your project and making them work.

    Ok, im fairly new to java and having trouble understanding how to make importing of .class files work. Im using eclipse 3.2
    I have the files in a directory and I have gone to project->properties->java build path->libraries->add external class folder and pointed it to the correct place.
    Now, I am trying to use some of the classes it provides. I get no errors when creating the object with this code:
    com.ECS.client.jax.ItemSearchRequest itemRequest = new com.ECS.client.jax.ItemSearchRequest();
    Before I did the add external class folder that code would error cause it didnt know what com.ECS was. Now it works fine. My problem is that when I try to use a class, it does not recognize it as a class. After doing the above code I have:
    itemRequest.setSearchIndex("Books");
    its giving me an error on the period, saying: "Syntax error on token(s), misplaced construct(s)". Its not seeing that it is a class, so I can't use it. But when I am creating the object I get no errors. For reference, here is the chunk of code:
    com.ECS.client.jax.ItemSearchRequest itemRequest = new com.ECS.client.jax.ItemSearchRequest();
    itemRequest.setSearchIndex("Books");
    the second line of which errors. So my question is, how do I get it to recognize that the itemRequest is a class when I have imported the .class files to my project already?

    It's working fine. It's just that you have to put your code in a method.

  • AddChild adding Class but not internal shapes

    Hi Friends
    I am presently developing a site completely class based. N
    I am facing a problem .
    There were so many addchild (to attach them to stage at
    runtime) clips in the library.
    I dont want them to be exported over the first frame so in
    the LINKAGE PROPERTIES i am unchecking the export in the first
    frame option and I am using a base class for them which again
    exteds Display.MovieClip class [it must be].
    Further In the Publish Settings under ACTION SCRIPT 3.0
    settings I have changed the export class in frame to 2 so the Frame
    1 of teh movie will be free from classes and Objects so a simple
    preloader can be put which will display start from the 0 or may
    little bit of 5 percent till 100.
    If if activate The export in the first frame then the Frame 1
    will become 50% of the movie and my preloader will start from 50
    i.e. after completely loading the Frame 1.
    But the problem is I have Unchecked and freed the Frame 1
    size but the MovieClip objects are not getting added at the run
    time. But I am sure that the class Which I have created is
    attaching but not the internal objects.
    For this i cannot put all the coe but i will explaing here.
    I have created a main.fla and in it's library i have a symbol
    which was exported for action script.
    Class name mc
    base class mcClip. // this class will extend the
    Display.movieClip class so no problem at all. [this i have doe
    because the same class can be used for multiple objects in the
    library.]
    Unchecked Export in frist frame
    Please follow the code below and continue from here
    while runnign teh move the class is adding but teh graphic
    shape which i have drawn in the library movielicp is not attaching
    to the stage.
    I am not getting what happening here.
    the library movie clip is not attaching but its base class is
    attaching and it is tracing the class.
    I hope you got the problem what I have.
    Please any body who read it dont ignore it
    Thanks in Advance.
    I will be great full to you
    Download
    the test files i have Created
    ***

    Thanks Raymond - I'm afraid the penny ain't dropping for me,
    so instead of instantiating the 'Test' class from the timeline and
    I do it from the document class (as you should) it works a treat
    with no tweaks. I've done as I think you were suggesting. Created
    new 'Test' from the timeline, put an empty mc ('holder') on the
    stage, passed that as a movieclip variable to the constructor and
    holder.addchild(some graphic) and thats all fine - Still don't
    understand why one method of instantiating the class is fine the
    other causes unpredictable results, at a guess the document class
    route of doing so automatically adds it directly to the display
    list?
    Thanks

  • BC4J class libraries installation problem

    Hi,
    I've created CMD entity bean with JDeveloper 3.2 and want to deploy it to Oracle 8i(8.1.7) server. The problem is it stopp loading classes to server after a while.
    Could the cause of this be the size of java pool size? i've set it to 64 MB and even increase other SGA memory part.
    Thanx in advance.
    /Hoa

    You will need to make sure that all of the following parameters in your init.ora file are pretty large to deploy EJBs and BC4J runtime libraries to 8.1.7:
    java_pool_size
    large_pool_size
    shared_pool_size
    I would make them as large as you possibly can. Here's what I have in my init.ora file:
    shared_pool_size = 72428800
    java_pool_size = 60971520
    large_pool_size = 100000000
    This is an 8.1.7 instance running on a Sun E450 with tons of disk space and memory, so my numbers may not work for your environment. I just took whatever was there by default and bumped it up by a lot.
    But I got errors during deployment which indicated what the problem was. If you are not getting errors, your problem could be something else. But try setting all three of the above and see if this helps.
    You might check the Oracle8i 8.1.7 online docs to see if they have any recommendations in the Enterprise Java Beans Developer's Guide.

  • Adding classes in JBuilder

    Hi,
    I am a beginner in Java and I am using JBuilder.
    How can I adding existing classes in my applet ?
    I got this error for each class I added:
    "MyClass.java": Package D:\applet_testing\jbuilder\browser2\MyApplet\src\MyApplet\MirageBrowser.java stated in source unnamed package does not match directory D:\applet_testing\jbuilder\browser2\MyApplet\src\MyApplet\MyClass.java.
    djb

    add package MyApplet; to the first line of your file (s).

  • Need help with adding classes

    for the moment ihave to create a program that will add accountants to contracts.
    now from within contract i want to be able to be able to create a contract and then have a method to add an accountant to the contract...could u look at my contract class and c what im doing wrong please and also u can only have one accountant on each contract
    im getting error....cannot find symbol Accountant(Accountant)
    public class Contract
        // instance variables - replace the example below with your own
        private Accountant anAccountant;
        //the number of days
        private double duration;
        private double rateOfContract;
        private static final double vat= 0.21;
        private boolean complete;
        private String type;
        private boolean occupied;
         * Constructor for objects of class Contract
        public Contract(double duration, String type )//Accountant anAccountant, double duration)
            //this.anAccountant = anAccountant;
            this.duration = duration;
            rateOfContract = 0 ;
            complete = false;
            this.type = type;
            occupied = false;
         * a method to get the accountant
       public Accountant getAccountant()
            return anAccountant;
         * a method to get the rate of the contract
        public double getRateOfContract()
            return rateOfContract;
         * a method to check if the contract is complete
        public boolean getComplete()
            return complete;
         * a method to set if the contract to complete
        public void isComplete()
            complete = true ;
         * add an accountant to the contract if his expertise matches
         * the type of contract
        public void addAccountant(Accountant anAccountant)
          if(anAccountant.getExpertise().equals(type))
                if(occupied = false)
                    //add the accountant to the contract
                    anAccountant = Accountant(anAccountant);
                    System.out.println("an accountant has been added to the contract");
                    rateOfContract = anAccountant.getDailyRate() * duration;
                    occupied = true;
                }else{
            }else{
         * a method to check accupied
        public boolean getOccupied()
            return occupied;
    }Message was edited by:
    molleman

    yes off course i have `and i also have a controller class called firm...but i just want the accountant to be added to the contract....and i just cant do it
    public class Accountant
        // instance variables
        protected String name;
        protected String expertise;
        protected double dailyRate;
        protected boolean isActive;
         * Constructor for objects of class Accountant
        public Accountant(String name, String expertise, double dailyRate)
            this.name = name;
            this.expertise = expertise;
            this.dailyRate = dailyRate;
            isActive = false;
         * a method to get the accountants name name
        public String getName()
            return name;
         * a metohd  to get the acvccontats expertise
        public String getExpertise()
            return expertise;
         * a method to get the accountants daily rate
        public double getDailyRate()
            return dailyRate;
         * a method to check if the accountant is active
        public boolean getIsActive()
            return isActive;
         * a method to set the accountant to active or not
        public void setIsActive(boolean active)
            active = isActive;
    }

  • Adding class to documents - Mass change

    Hi all
    I want to add a class to all existing documents of a certain document type, is there any tool for doing this?
    Like CLMM transaction for changing values.
    Have looked at the transaction CL24N but unfortunately it is only possible to paste in 10 new records at a time and there is no option to search for the documents like in CLMM or import from file. Or have I missed something?
    Reason for doing this mass change is that we have assigned a class to a document type, now we need to change this class to another one.
    Iu2019ve tried to change the class in DC10 to the new class, but then the additional data tab is empty when you display a document of that type in SAPGui (In EasyDMS however all values are visible).
    But if we add the new class to all old documents and then deleting the old class everything seems to work OK. Too many documents to do this maneuver one by one, though.
    Grateful for any help or ideas.

    Hi Daniel,
    Why don't you use dependency in this case.
    You add new char to old class and use  dependency Precondition .
    This will serve the purpose.
    This will work like this
    Old class  will have following char
    Old Char
    New Char 1
    New Char 2
    Now new Char 1 will have Value Yes and No
    and New Char 2 will have a values which you want
    If you want to use New Char 2 in certain doc types you have to select New Char 1 values as Yes then system will display New Char Val 2 so that user can enter values
    Ex:
    Old Class
    Old Char:
    New Char 1   : Yes
    New char 2   : "This field is ready for input"
    New Char 3  : "This field is ready for input"
    New char 4   : "This field is ready for input"
    New Char 5  : "This field is ready for input"
    you want old values for certain doc types then select  a value "No" (You can make this default) for New char 1 so that user can view only Old Char
    Old Class
    Old Char:
    New Char 1   : No
    New char 2   : "This char will be hidden for input"
    New Char 3  : "This char will be hidden for input"
    New char 4   : "This char will be hidden for input"
    New Char 5  : "This char will be hidden for input"
    This will reatin all your old char values for existing documents and from dependency you can choose new char values whenever you want
    Regards
    Abhijit A. pachgade

  • Adding Classes to the JAR File's Classpath

    Ques 1- Can I use the wildcard * symbol in Manifest file to add classes/othes jar files to the JAR File's Classpath.I have folder named - Lib . where there are many jar files.Now,do I have to add each jar file by- Class-Path: Lib/jar1-name Lib/jar2-name . Instead, can I do this- Class-Path: Lib/*.jar OR Class-Path: Lib/*.class
    RIDICULOUS....105 views has been made but YET NO ANSWER. Isn't there anybody who knows the answer.
    Edited by: Tanvir007 on Apr 30, 2008 2:21 AM

    Ques 1- Can I use the wildcard * symbol in Manifest file to add ... other jar files ...?No. You could, however, place all your needed JARs in JavaHome/jre1.x.x/lib/ext - if this is a way for you.
    Ques 2 ??
    RIDICULOUS....105 views has been made but YET NO ANSWER.What hindered you to test it yourself?
    And the things we don't know far exceed the things we know. Why do you wonder?
    Have a nice day
    J�rg

  • About importing class libraries?

    I want to develop a webmail project,so I must use the javax.mail.*,but when I build a new project by J Bulider 5,I can not import those class,why?the same project is when I develop an common project,I can import javax.servlet.*, but when I build a web project,it do.why????thanks

    Presumably you mean you can't compile it.
    There is some obscure way that you have to include the jar in the IDE that you are using. You can wait until someone provides that or search in the forums for JBuilder and find one of the previous posts that explains how to do it.

Maybe you are looking for

  • Multiple users on an iPad

    Is it possible to have multiple users, or "safe" areas, on one iPad?  I don't really want my kids to see or play with my e-mail while I'm present.  Something aka how one can have multiple users on one's OS. Thanks to advise.

  • Updated to iOS 8.0.2. on iPad 2 = Problems

    Hello, after I've updated my iPad 2 to iOS 8.0.2. it doesn't play videos which are assigend as "TV Shows". The videos are stil on the iPad, but after clicking them the player just opens for less than a second, screen jumps back to the videos. fin. Pl

  • Photo Place Box

    How do I turn off or get rid of that %$$#$@! little "i" in the corner of the thumbnail? Half the time when I try to open the photo I hit it and open the "Photo Place" box instead, and have to waste time closing it.

  • Change message text generated from Sourcing Cockpit

    Hi, This is the scenario where the Buyer completes the Shopping Cart (complete requirement) from the Sourcing Cockpit. After this, the Shopping Cart is removed from the Sourcing Cockpit and also the system sends an email notification to the requestor

  • URGENT:Creating customer master using Sd_Customer_Maintain_all

    hello all , I am creating customer master using SD_Customer_Maintain_All.I will be thankful if somebody Can  tell me how to pass data to this function module.Better if somebody can provide code. Thanks. Sandeep.