What is a class library?

can someone tell me what a class library is? examples would be helpful thanks

A bunch of associated classes, meant to be used by other classes.
Typically these classes are focused on a particular area of functionality, for example, an "email library" or "3d graphics library".
The classes in the library do not know about the other classes that use it. (But the classes that use the library know about it, obviously.)
In java, typically bundled in a jar file.
There's probably a much better description somewhere.

Similar Messages

  • Class library in a web app and config files

    I built some class libraries and included them in a web project. Where do I put configuration files so the class library can access them? no matter where I put it, i keep getting file not found. What I've been doing is having a JSP read the config details and pass it to the class library. Is there another way?

    I guess the question is where IT thinks the file is? What code are you using to load it?
    I guess what I'm asking is where is the default folder for FileInputStream?The default folder is your runtime working directory. More often than not thats the "bin" directory of Tomcat. Not a great place to go looking for files.
    getResource() and all that can be accessed from the JSP but those aren't available to me from within the class libraries. Are you saying you don't have access to a ClassLoader object that you can call getResource or getResourceAsStream on? You should be able to access things in the WEB-INF/classes directory in that way.
    Given a web app, my first inclination would be to use the ServletContext.getResourceAsStream method.
    Rather than passing in a file name, why not an InputStream, or byte[] ?
    cheers,
    evnafets

  • What kind of cell library does opensparc T1 verilog code use?

    Hi all
    I am running simulations on the instruction fetching unit module of opensparc T1 recently, when I tried to simulate the module with VCS from (synopsys), it has some errors below
    Error-[URMI] Instances with unresolved modules remain in the design.
    Invalid instantiation at: "sparc_ifu_fcl.v", 1022: dffrl_async rstff(
    .din(grst_l), .q(fcl_reset_l), .clk(clk), .se(se),
    .rst_l(arst_l));
    Invalid instantiation at: "sparc_ifu_fcl.v", 1035: dff_s #(4) real_reg(
    .din(lsu_ifu_addr_real_l), .q(itlb_addr_real_l), .clk(clk),
    .se(se));
    Invalid instantiation at: "sparc_ifu_fcl.v", 1051: dff_s #(4) xlate_reg(
    .din(xlate_en), .q(xlate_en_d1), .clk(clk), .se(se));
    Invalid instantiation at: "sparc_ifu_fcl.v", 1077: mux3ds creal_mx(
    .dout(fcl_itlb_cam_real_bf), .in0(sw_itlb_real),
    .in1(this_itlb_real), .in2(tlu_fc ...
    It seems like some modules like mux3ds or dff_s #(4), I am using NangateOpenCellLibrary_PDKv1_3_v2009_07/verilog/NangateOpenCellLibrary_typical_conditional.v as library files.
    But it does not hve descriptions to modules like mux3ds or dff_s #(4).
    Does anyone know what kind of cell library that opensparc T1 use to define those modules?

    oh also - to show (for coherence) what happens if i try to
    modify it
    i can add "import ,,, ack let me add something else here
    hmm....
    static function blank() { trace("screens off!"); screensaver.blank("SCREEN_1"); }
    okay THAT is where , aside from hitting a catch - that it gives errors (getting about 50 errors, every single reference in the file)
    now note - the other class/actionscript file right next to it doesnt throw any errors at all - very very similar - nothing wrong with it
    now if i put "import screensaver;" directly above that line
    it lists the exact same errors + one more error, in the same way
    if i put that line upwards more, same thing
    it can not find the include componentry or whatever it is called
    i can import 20 things there and it wont go anywhere, no way, no how
    now if i put the "import screensaver" alllllll the way at the top prior to the package { } declaration
    then! i get a different error, cant put the import statement there
    otherwise it's boffing on every single thing in the file - and note - not any of the other three files that are very similar
    so basically to further elucidate - i am getting the actual import statement to fail

  • Java Class Library

    What's the online Java Class Library reference site?
    I swore it was on this Java.sun.com site, but I can't seem to locate it again.
    Thanks,
    MB

    Are you looking for http://java.sun.com/j2se/1.3/docs/api/index.html by any chance ?

  • OO4O & C++ : COM or class library?

    Hi,
    What do you choose when using OO4O in C++? Do you use raw COM calls, or do you use the OO4O C++ library?
    I haven't seen much talks about the OO4O C++ library here, or anywhere else on the net.
    Thanks

    The C++ class library is certainly the easiest route to take. You should find the OO4O help file sufficent for reference purposes.
    I have not come across anything that you can do using the COM interface directly that you can not do using the C++ library (except blob handling way back in version 3.3.0.0.0)

  • I need the Java IDoc Class Library

    Hi,
    I'm desperately looking for the Java IDoc Class Library. What for? I'm doing a project for university and I have a test version running on my own computer (Mini WAS 6.20 with the FlightBooking example installed). The SAP Service Marketplace is for registered customers only. Since I only have a test environment (mentioned above) I can't register there and download it.
    Could anyone please send me this library by mail, to [email protected] Since I don't know how big this package is: my mail provider has a 15MB/per single mail limit. If biiger, please split.
    Yes, I'm asking for much. But I'm pretty desperate and I have to get going, since I'm running out of time.
    If there are other ways to get this library, please tell.
    Thanks
    Jonny

    Hi Johannes
    The SAP Java IDoc Class Library consists of two parts, the SAP Java Base IDoc Class Library and the SAP Java Connector IDoc Class Library. The SAP Java Base IDoc Class Library provides an API which helps navigating, reading, filling, and modifying IDocs. This base package is middleware independent. Creating, sending, and receiving IDocs is middleware dependent. To make use of the SAP Java Base IDoc Class Library you will need an additional middleware dependent add-on package implementing the defined interfaces like the SAP Java Connector IDoc Class Library.
    The SAP JCo can be downloaded from the   
    https://websmp101.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000463649
    of SAP JCo. The SAP JCo package includes the software as well as documentation, tutorial, and examples. The SAP Java IDoc Class Library can be downloaded from the same URL, and then follow the link to SAP Java IDoc Class Library. The SAP Java IDoc Class Library packages include the software as well as documentation.

  • What is the Java Library Path?

    Hi,
    I have a Java package that I need to add to my computer. The instillation information that I received with this package is as follows:
    * For this package to function, you must modify your java library path
    (the "java.library.path" property) or you must copy <WInterface.dll> to
    a directory that is already on that path.
    My questions are
    1). What is the java.library.path?
    2). How do I determine what the path is for my computer,
    3). And finally how do I modify this path?
    Thanks for your assistance.

    1) It is the list of paths to search when loading libraries.
    2) That can be found out with this program:public class PrintLibraryPath {
        public static void main(String[] args) {
            System.out.println(System.getProperty("java.library.path"));
    }3) By giving the java launcher the command line argument "-Djava.library.path=yourpath".

  • What Driver name/class and url are to be provided?

    I have created a new alias for jdbc in the portal along with the user-mapping...........as a result i can see jdbc system in the system drop-down box.............but i m having some problem while making the connection with portal as it is asking for driver name/class and url and also other details..........my back-end server is MS SQL...........What Driver name/class and url are to be provided in this case or any other details required?????
    thank you very much............

    Hi Deep,
    There is a how-to posted on SDN regarding how to connect and configure the BI JDBC Connector.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/6209b52e-0401-0010-6a9f-d40ec3a09424
    This document describes the jdbc driver to use etc.
    Hope this helps,
    Cheers,
    Scott

  • Multiple Applicatio​n Instances - Class Library Locked?

    I have a project that contains two targets, real-time and my computer. If I create a class and try to use it on both targets the class library becomes locked for edits. Is there a work around for being able to work on a project that has two targets and have the flexibility of developing your classes all within the same LabVIEW project file?

    JonN wrote:
    Sorry Ben,
    Yes, I would like to be able to edit a class library that is used by multiple targets in my project file. When you asked 'while actively using it on one of the nodes?' -- If by node you mean one of the target's VI block diagrams? -- Yes, but the problem occurs when I try to use the class within code on both targets. 
    ...but only if you are trying to blueprint the engine (edit) while taking on a quarter mile (running it).... ?
    I never attempted to do that thinking I would probably run into complications.
    Best i can do is suggest you include only what you need in the project and don't touch the Class that are being used.
    Sorry I can not suggest better,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How do I find out what Package a class is in

    I am trying to find out what Package the classes XMLNode and XMLInterface are located in. Is there a way to search for a class to find out what package it is held in ?
    Quite often I see example code but spend wore time working out what package the class is in than actually writing code. Am I being really stupid ? (Don't answer that !!)
    Many thanks for any tips
    Dan

    you can find the class path by searching the $JAVA_TOP directory.
    Login to apps server.
    cd $JAVA_TOP
    find . -name "Classname.class"
    --Prasanna                                                                                                                                                                                                                                                                                                                   

  • HT1296 itunes recogizes my iphone, but says if I sync, the music will be replaced by what is in the library (not what I want). How do I get what's on the iphone to the library?

    This happens everytine I get a new computer - I am trying to upload the music on my iphone to itunes. The device shows in itunes, but when i ask to sync, it says the music on the phone will be replaced with what is in the library. I want the phone's library imported to the itunes on my computer. How do I do that?
    Thank you.

    f it happens every time you get a new computer, one would think you would have figured it out by now...
    Media sync is one way. Computer -> Phone. Copy the media from your old computer to the new computer. Then let iTunes wipe it off of your phone and re-sync.
    The only media you can transfer from the phone to the computer is media purchased on the phone from the iTunes store. Use File>Transfer Purchases in iTunes to do that.

  • How can i change the class in the Class Library project to be static or public so i can use it from the windows application project ?

    First i know that when i make any changes to the class library project i need to rebuild the project then to remove the Capture.dll from the TestScreenshot project and then to add again the updated Capture.dll
    The problem for example in this case i'm trying to use a public static variable i add in the DXHookD3D9.
    In the DXHookD3D9 i added this public static variable:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    //using SlimDX.Direct3D9;
    using EasyHook;
    using System.Runtime.InteropServices;
    using System.IO;
    using System.Threading;
    using System.Drawing;
    using Capture.Interface;
    using SharpDX.Direct3D9;
    namespace Capture.Hook
    internal class DXHookD3D9: BaseDXHook
    public DXHookD3D9(CaptureInterface ssInterface)
    : base(ssInterface)
    LocalHook Direct3DDevice_EndSceneHook = null;
    LocalHook Direct3DDevice_ResetHook = null;
    LocalHook Direct3DDevice_PresentHook = null;
    LocalHook Direct3DDeviceEx_PresentExHook = null;
    object _lockRenderTarget = new object();
    Surface _renderTarget;
    public static decimal framesperhourtodisplay = 0;
    protected override string HookName
    get
    return "DXHookD3D9";
    List<IntPtr> id3dDeviceFunctionAddresses = new List<IntPtr>(
    framesperhourtodisplay
    The problem is i can't even get to the Capture.Hook namespace and not to the DXHookD3D9 from the TestScreenshot application window project.
    This is a screenshot:
    For example fro the FramesPerSecond class i can use it get to it from the windows forms application.
    namespace Capture.Hook
    /// <summary>
    /// Used to determine the FPS
    /// </summary>
    public class FramesPerSecond
    int _frames = 0;
    int _lastTickCount = 0;
    float _lastFrameRate = 0;
    Since it's public i guess.
    But if i will change the DXHookD3D9 class from internal to public:
    public class DXHookD3D9: BaseDXHook
    I will get error on the DXHookD3D9: 
    Error 1
    Inconsistent accessibility: base class 'Capture.Hook.BaseDXHook' is less accessible than class 'Capture.Hook.DXHookD3D9'
    And the BaseDXHook class:
    namespace Capture.Hook
    internal abstract class BaseDXHook: IDXHook
    protected readonly ClientCaptureInterfaceEventProxy InterfaceEventProxy = new ClientCaptureInterfaceEventProxy();
    public BaseDXHook(CaptureInterface ssInterface)
    this.Interface = ssInterface;
    this.Timer = new Stopwatch();
    this.Timer.Start();
    this.FPS = new FramesPerSecond();
    Interface.ScreenshotRequested += InterfaceEventProxy.ScreenshotRequestedProxyHandler;
    Interface.DisplayText += InterfaceEventProxy.DisplayTextProxyHandler;
    InterfaceEventProxy.ScreenshotRequested += new ScreenshotRequestedEvent(InterfaceEventProxy_ScreenshotRequested);
    InterfaceEventProxy.DisplayText += new DisplayTextEvent(InterfaceEventProxy_DisplayText);
    ~BaseDXHook()
    Dispose(false);
    How can i solve it so i can use the variable framesperhourtodisplay in the DXHookD3D9 class with the TestScreenshot windows forms application ?

    Hi,
    I dont know if it will work here, since I dont know the complete structure, but the base call must be public, if the derived class is public, so the base class is at least as accessible as the derived class.
    Try make the base class public. (And maybe the base-class IDXHook of the base also...)
    Or use a different approach and make only the properties public that are needed to be public by adding an extra class...
    A structure could look like:(you need to create a class thats public in your dll and expose a property, and set this property in the internal class...)
    In the Accessing class (here Form1)
    public partial class Form1 : Form
    public Form1()
    InitializeComponent();
    private void Form1_Load(object sender, EventArgs e)
    C c = new C();
    MessageBox.Show(B.F.ToString());
    and in the class Lib:
    internal class A
    public A()
    B.F = DateTime.Now.Millisecond;
    public class B
    public static int F { get; set; }
    public class C
    public C()
    A a = new A();
    (add a referenc to the class lib from the accessing project)
    Regards,
      Thorsten

  • What are the classes used for bropdownListBox in BSP and purpose and how

    what are the classes used for bropdownListBox in BSP and purpose and how
    thank you,
    Regards.
    Jagrut BharatKumar Shukla

    Benje001,
    Right-click on the CWAI control on your form. Choose Properties. The first tab is the Channels tab. After you choose your device from the drop down box on the right, you can type in the Channels box which channel you want to use.
    If you want to see a CWAI control that is already configured, all of the shipping examples will have this already done.
    Also, if you have questions about any item on the CWAI (or any other NI ActiveX control) you can click the ? icon in the right corner of the properties page and then click on the item in the dialog that you need help with. This "What's this" help will describe that particular control on the dialog.
    Hope that helps!
    Regards,
    Shannon R.
    Applications Engineer
    National Instruments

  • HT1391 I have a new computer and want to sync my iPhone.  But it wants to wipe out what is already on my phone with another iTunes library.  How do I find out what is in the "library" before I say to wipe out my phone and sync?

    I have a new computer and want to sync my iPhone/iTunes.  But it wants to wipe out what is already on my phone with another iTunes library.  How do I find out what is in the "library" before I say yes to wipe out my phone and sync?

    See Recover your iTunes library from your iPod or iOS device.
    tt2

  • Set image path in java class library

    Hi,
    I created a java class library project and made .jar file. My java class library contains .jpg files in separete folder named as Images. My .jar file contains list of classes and image folder also but when i am using .jar file in applet. java class library is working but images are not shown. Let me know how to create imageicon to show images also in the class library

    ImageIcon icon = new ImageIcon(getClass().getResource(path-to-file));

Maybe you are looking for

  • Dota 2 and Macbook pro battery

    My early 2011 15 inch macbook pro battery drains while connected with 85w charger when i am playing dota 2. Dota 2 runs faily well with very little lag in almost high setting. Shouldn't 85w charger provide adequte power for gaming. Dota 2 is not even

  • Legacy data transfer for new depreciation area for already existing assets

    Hi all, I am doing legacy data transfer for New deprecaition area for already existing assets through AS92. I like to give Ordinay depreciation posted amount  for the current FY for these assets in AS92, but i find this field is not editable inAS92.

  • Error in processing inbound Idocs

    Hi, i have a file to idoc scenario. the message gets picked at the sender and in SXMB_MONI the message has success flag but the outbound status tab in SXMB_MONI has red flag. i cheked the transactions sm58, we05 in R3 systems, their are no messages f

  • Foreign jms connection factory username and password

    I have to connect to TIBCO as the foreign JMS. I have created a foreign JMS server and configured JNDI properties including username and password. I configured a connection factory and specified username and password as well. Finally, I configured fo

  • I cannot open any pdf files in Safari on my Mac Book

    I cannot open any pdf-files using Safari anymore. Does anybody know what is going on? Thank´s a lot!