Third party libraries for hibernate(jar files)

Hi I am new in hibernate.I follow some steps of hibernate tutorial from
http://www.hibernate.org/hib_docs/v3/reference/en/html/tutorial.html
In chapter-1 1.2.3. Hibernate configuration when i try
java -classpath ../lib/hsqldb.jar org.hsqldb.Server
database should be started but it,s not
most probably reason is also include third party libraries
I try all but still not getting success.
In command prompt I get ::
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\shobhitsingh>cd\
C:\>cd hibernatet*
C:\hibernateTutorial>java -classpath ../lib/hsqldb.jar org.hsqldb.Server
Exception in thread "main" java.lang.NoClassDefFoundError: org/hsqldb/Server
C:\hibernateTutorial>pl guide
Regards
-S.Singh

I'm sorry.I used classpath in wrong manner.I got where I'm wrong.
Regards
-S.Singh

Similar Messages

  • Confusion about third-party-libraries in different versions in CE 71.

    Hi
    After some research on the use of different versions of third-party-libraries in SAP netweaver CE 7.1, I am actually quite confused and would be happy if someone could shed a light on that subject....
    1. Is there a way to tell netweaver CE 7.1 to use a library in my WEB-INFlib-folder by simple configuration?
    E.g. we would like to use a third-party-lib in a newer version than the one which is loaded by CE 7.1. Many application server provide a simple configuration option (e.g inside META-INFapplication.xml) where the web as can be forced to use the library inside WEB-INFlib for this application.
    2.Is the concept of "heavy loading" described in a blog by Georgi Danov(Using Hibernate in SAP NetWeaver Composition Environment) the answer to question 1.?
    Does it also work for other third-party-libraries than hibernate? Does it work at all?
    3. In the blog mentioned in question 2, Mr. Danov is talking about "shared libraries". Does this mean, that I have to forget everything about "bundled" and "standard" libraries explained in help.sap.com/CE, if I want to create a heavy loader?
    He is referencing another blog (Applications and shared libraries) which is two years old? Can I still apply the information there to CE?
    4. Are "Bundled libraries" applicable when using different versions of third-party-libraries in CE 7.1?
    In "Working with libraries" (http://help.sap.com/saphelp_nwce10/helpdata/en/44/f4e00e56ec0486e10000000a155369/frameset.htm) it says:
    "Bundled libraries: These provide resources only to a single enterprise application, and are packed inside the application's EAR file."
    =>As I want to provide the lib only to my enterprise application, I will probably have to create a bundled library, right? Does this also work if netweaver CE 7.1 uses a different version of the same library?
    5. Do I need Netweaver Developer Studio for creating "bundled" libraries?
    Or can I copy the binaries in the WEB-INFlib-folder of my application, deploy it and use it?
    6. Is configuration of application-j2ee-engine.xml the right place to reference a third-party-library in a specific version which exists in WEB-INF/lib-folder in my application even if it exists also in another version on netweaver?
    => In the document "Troubleshooting: Finding Missing Parent-Child Relations" it says: "To implement the chain of parent-child relations in the deployment descriptor of the component, use either application-j2ee-engine.xml (for applications) or provider.xml (for libraries and services)."
    => "Creating standard libraries" (http://help.sap.com/saphelp_nwce10/helpdata/en/44/f447a8d62b0484e10000000a155369/frameset.htm9 tells me, that I have to configure the file application-j2ee-engine.xml, too.
    => But in "Working with libraries" (http://help.sap.com/saphelp_nwce10/helpdata/en/44/f4e00e56ec0486e10000000a155369/frameset.htm) it says:
    "Standard libraries: These provide resources to all enterprise applications deployed on the server. They are packed in EAR files like the enterprise applications."
    => Does this mean, that I have to force Netweaver CE 7.1 to use a higher version of a certain third-party-library? Does this even work? Do all applications deployed on Netweaver 7.1 have to use this library in the higher version?
    It is really confusing to read through the documentation!!! Sorry for that avalanche of questions, but I really hope it will make the issue of using libraries (especially if they exist in different versions on the CE 7.1) a little clearer!
    Best regards
    Bettina

    Hi Bettina,
    I'll try to answer your questions:
    >
    > Hi
    >
    > After some research on the use of different versions of third-party-libraries in SAP netweaver CE 7.1, I am actually quite confused and would be happy if someone could shed a light on that subject....
    >
    > 1. Is there a way to tell netweaver CE 7.1 to use a library in my WEB-INFlib-folder by simple configuration?
    >
    > E.g. we would like to use a third-party-lib in a newer version than the one which is loaded by CE 7.1. Many application server provide a simple configuration option (e.g inside META-INFapplication.xml) where the web as can be forced to use the library inside WEB-INFlib for this application.
    >
    First of all, the appropriate docs are here: [http://help.sap.com/saphelp_nwce10/helpdata/en/44/f4e00e56ec0486e10000000a155369/frameset.htm|http://help.sap.com/saphelp_nwce10/helpdata/en/44/f4e00e56ec0486e10000000a155369/frameset.htm].
    Basically what you do is define a lib project in the studio and deploy it do the server. This may be less comfortable then just configuring manually, therefore it work better in larger environments because the server checks that libs are available in all running instances - which it could not do if you manipulate diretories manually  (an approach you should never attempt in any SAP envrionment)
    > 2.Is the concept of "heavy loading" described in a blog by Georgi Danov(Using Hibernate in SAP NetWeaver Composition Environment) the answer to question 1.?
    >
    > Does it also work for other third-party-libraries than hibernate? Does it work at all?
    >
    If Georgi describes it, I hope so, as he is one of our developers who knows best.
    > 3. In the blog mentioned in question 2, Mr. Danov is talking about "shared libraries". Does this mean, that I have to forget everything about "bundled" and "standard" libraries explained in help.sap.com/CE, if I want to create a heavy loader?
    >
    "shared" are all of theses libs, as otherwise they would be specific to an application.
    > He is referencing another blog (Applications and shared libraries) which is two years old? Can I still apply the information there to CE?
    >
    This was about anearly version of CE and even Georgi updated the blog this year to talk about slight differences. So yes, this still applies.
    > 4. Are "Bundled libraries" applicable when using different versions of third-party-libraries in CE 7.1?
    >
    > In "Working with libraries" (http://help.sap.com/saphelp_nwce10/helpdata/en/44/f4e00e56ec0486e10000000a155369/frameset.htm) it says:
    >
    > "Bundled libraries: These provide resources only to a single enterprise application, and are packed inside the application's EAR file."
    >
    > =>As I want to provide the lib only to my enterprise application, I will probably have to create a bundled library, right? Does this also work if netweaver CE 7.1 uses a different version of the same library?
    >
    That depends... Your application uses it's own classloader which means it should only use your libs in case there is another version available on the server. But if you're trying to deploy a lib that is used by a service of the server (int that case loaded by the server not your classloader!) I'm not so sure.
    > 5. Do I need Netweaver Developer Studio for creating "bundled" libraries?
    >
    > Or can I copy the binaries in the WEB-INFlib-folder of my application, deploy it and use it?
    >
    You need the Studio. No way around that. [Edit:] Sorry, misunderstood you here: I thought you want to copy something into the deployed directory on the server! - Of course, any deployment method would do it and though copying binaries seems to be valid. However,  I'm checking this currently with development in detail.
    > 6. Is configuration of application-j2ee-engine.xml the right place to reference a third-party-library in a specific version which exists in WEB-INF/lib-folder in my application even if it exists also in another version on netweaver?
    >
    > => In the document "Troubleshooting: Finding Missing Parent-Child Relations" it says: "To implement the chain of parent-child relations in the deployment descriptor of the component, use either application-j2ee-engine.xml (for applications) or provider.xml (for libraries and services)."
    >
    > => "Creating standard libraries" (http://help.sap.com/saphelp_nwce10/helpdata/en/44/f447a8d62b0484e10000000a155369/frameset.htm9 tells me, that I have to configure the file application-j2ee-engine.xml, too.
    >
    > => But in "Working with libraries" (http://help.sap.com/saphelp_nwce10/helpdata/en/44/f4e00e56ec0486e10000000a155369/frameset.htm) it says:
    >
    > "Standard libraries: These provide resources to all enterprise applications deployed on the server. They are packed in EAR files like the enterprise applications."
    >
    > => Does this mean, that I have to force Netweaver CE 7.1 to use a higher version of a certain third-party-library? Does this even work? Do all applications deployed on Netweaver 7.1 have to use this library in the higher version?
    >
    >
    >
    > It is really confusing to read through the documentation!!! Sorry for that avalanche of questions, but I really hope it will make the issue of using libraries (especially if they exist in different versions on the CE 7.1) a little clearer!
    >
    > Best regards
    > Bettina
    Could you tell me what you're trying to deploy? I'll try to get Georgi on this....
    Regards,
    Benny
    Edited by: Benny Schaich-Lebek on Nov 5, 2008 1:40 PM

  • Embedding third-party code in a jar: SecurityException

    For about a year, I've been creating my jar file the following way:
    - Unjar all third party jars into my class tree (JDOM, JFreeChart, etc).
    - Jar everything up
    I just incorporated Java Mail into my app...but now I get a SecurityException when I try to execute the jar complaining "no manifest for signature file entry....".
    a) Is there a better way to include third-part jars in my jar? I don't want users to have to set a classpath.
    b) What's the purpose in signing a jar?
    c) Do I just need to modify my manifest somehow to include this stuff?

    It seems that there is no way to directly incorporate third-party libraries into your jars, but there is an open-source software claim to correctly repackage multiple jars into one so that you can repackage your application jar and third-party jars.
    http://one-jar.sourceforge.net/

  • Third-party libraries in a JSC team project

    We're using Sun Java Studio Creator 2 Update 1 (JSC) for the project I'm working on. This project uses a few third-party libraries (jar files). Up until 2 weeks ago I was the lone member of the project team and all was fine. Then we added another team member and encountered an issue with the 3rd-party jars. In particular, since I had setup the 3rd-party libraries using the "Library Manager" facility, I had no problems with building and deploying the app, but when my team member got the code from the version control system, he could not compile due to an error saying something like "library not found". I'm looking for a way to setup the 3rd-party libraries for our project such that those jars are found during compilation (and included in the WAR file) while at the same time new developers do not have to use the "Library Manager" to configure all the libraries on their JSC install. I tried adding the jars to the project's "lib" directory, but that did not work unless I explicitly listed them in the compile path (using "Project Properties") and this used a hard-coded path to the jars. I would rather not require that every project team member use the exact same disk path to our project so I do not like this approach either.
    Any suggestions?

    As a best-practice for creating projects for version control, the jar files should be added as jars and not in a library unless the library points to jars that are at a common location on the network. You can add a directory to your project from the "files" tab called something like "projectlibs". Then add the 3rd party jar files here. When you add the jar to the project, make sure you check the "package" column which tells Creator to package the jar with the deployment.
    Cheers!
    -David

  • Login module access to third-party libraries?

    G'day,
    I have a simple login module that is currently deployed in Netweaver 2004s. It is callable by both Netweaver AS and Netweaver Portal, and was implemented using Netweaver Developer Studio.
    I would like to have this login module use third-party libraries, but I am not sure of the best approach to take here.
    Do I just drop the third-party libraries into the jre/lib/endorsed directory of the JDK, or is there a better way of putting the third-party libraries onto the classpath?
    When I edit the server/provider.xml file of the login module library in Developer Studio, it only allows me to make references to jar files that currently exist in the workspace. So adding references to external jar files does not seem to be supported here.
    Is there a proper place to drop third-party jar files, so that they can be used by my login module?
    --Geoff

    Hi,
       There are different ways. as you said You can either drop it in jre/lib folder or a clsspath setting will do.
    But some times the server will not be able to catch up those libs so You can set the path to these libs in config tool. This will ensure the server will take these libs for sure.
    If you have set the classpath NWDS will take this reference

  • Using third party libraries

    Hi,
    I have an oc4j application which refers to certain third party libraries ( jar files).
    Which xml files should I be making an entry in, for the application to refer to these jar files?
    Regards,
    Rishikesh R.

    The <library-directory> element of the application.xml file specifies either a relative or absolute path or URL to a directory or a JAR or ZIP archive to add as a library path for this OC4J instance. Directories are scanned for archives to include at OC4J startup.
    -Frances

  • Deploying third party EJB 3.0 jar in web application

    I have a web application which calls services provided by EJB 3.0 beans packaged in third party jar. How do a configure the web application project to deploy the beans to the embedded OC4J container when I run the application? The jar file is reference by the project, and I have a META-INF/application.xml referencing those jar files as EJB modules. I've set the EJB Version property to 3.0, but the Annotated EJB 3.0 Bean Classes list remains empty, presumably because I have no beans defined in the sources of the application. When running the project, the oc4j container warns that the EJB module contains no beans. I'd like to deploy the beans in the jar file, but can't figure out how.
    Thanks,
    Steve
    JDeveloper 10.1.3.4
    Windows Vista
    Edited by: user10375549 on Oct 29, 2009 6:38 AM - Fixed typo.

    I don't think this technique will work. I added a META-INF/ejb-jar.xml file to the application, and added a <session> section for one of the EJB 3.0 beans from my third party jar. I specified values for <ejb-name>, <ejb-class>, and <session-type> hoping the rest of the configuration would be determined from the annotations in the class. When the server starts, this warning message is displayed:
    Oct 30, 2009 12:06:41 PM com.evermind.server.ejb.logging.EJBDeploymentMessages warningSessionBizInterfaceNotDefined
    WARNING: \[current-workspace-app: ... \] - The session bean does not has at least one business interface defined for client access. The bean is not accessiable and usable at runtime.
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 11042 ms.
    \[sic\]
    EJB 3.0 beans are not required to define business interfaces, as they are supposed to be generated by the container.
    Good idea, but still cannot deploy beans from the third party EJB 3.0 jar referenced by my project to the embedded OC4J container. Still investigating.
    Thanks,
    Steve
    By the way, I have been able to use your technique to deploy EJB 2.1 beans from third party jars in other projects, just not EJB 3.0 beans that do not provide ejb-jar.xml deployment descriptors, nor business interfaces.
    Edited by: user10375549 on Oct 30, 2009 9:51 AM - Added relevant comment regarding technique described for solving problem. It works for EJB 2.1 beans but not EJB 3.0 beans.

  • How to Deploy the third party EJB 3.0 jar in web application

    I have a web application which calls services provided by EJB 3.0 beans packaged in third party jar. How do a configure the ViewController project to deploy the beans to the weblogic server when I run the application rather than deploy the EJB ear as a stand application to the server?
    The jar file has already referenced by the project. In the "EJB Module" of project properties I've set the EJB Version property to 3.0, but the Annotated EJB 3.0 Bean Classes list remains empty, presumably because I have no beans defined in the sources of the application. When running the project the EJB jar did not deploy automatically. Is there something wrong? How can I achive this goal?
    Best Wishes~
    ELeven.Xu
    IDE: JDeveloper 11g (11.1.1.2.0)
    OS: Linux

    I don't think this technique will work. I added a META-INF/ejb-jar.xml file to the application, and added a <session> section for one of the EJB 3.0 beans from my third party jar. I specified values for <ejb-name>, <ejb-class>, and <session-type> hoping the rest of the configuration would be determined from the annotations in the class. When the server starts, this warning message is displayed:
    Oct 30, 2009 12:06:41 PM com.evermind.server.ejb.logging.EJBDeploymentMessages warningSessionBizInterfaceNotDefined
    WARNING: \[current-workspace-app: ... \] - The session bean does not has at least one business interface defined for client access. The bean is not accessiable and usable at runtime.
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 11042 ms.
    \[sic\]
    EJB 3.0 beans are not required to define business interfaces, as they are supposed to be generated by the container.
    Good idea, but still cannot deploy beans from the third party EJB 3.0 jar referenced by my project to the embedded OC4J container. Still investigating.
    Thanks,
    Steve
    By the way, I have been able to use your technique to deploy EJB 2.1 beans from third party jars in other projects, just not EJB 3.0 beans that do not provide ejb-jar.xml deployment descriptors, nor business interfaces.
    Edited by: user10375549 on Oct 30, 2009 9:51 AM - Added relevant comment regarding technique described for solving problem. It works for EJB 2.1 beans but not EJB 3.0 beans.

  • Best Practice for Creating JAR File

    I have my first java program all done (Yipee!) and I have created the .jar file but I don't think I am really creating it like I should. When I ran it on another machine it had problems because I think it couldn't find all the other classes like the delivered ones.
    In my program I have:
    import java.io.*;
    import java.util.*;
    import java.sql.*;
    But when I created my JAR file I only specified my manifest, java program and my one class that was created. I am thinking that if I really want this to run on other machines I have to import the java.io.*, java.util.* and java.sql.* in my JAR file as well, is this true?
    What is the best way to go about this, only import specific classes instead of the .*? If so I know one class I need to import, java.io.File, what is the best way to find out the other classes?
    I commented out all my imports to see how many errors I would get I received 30, I then specified import.java.io.File and I am down to 21.
    Thanks!
    Ryan Johnson

    want this to run on other machines I have to import the java.io.*, java.util.* and java.sql.* in my JAR file as well, is this true?No. The core classes shuld be present in the Java environment on the target machine.
    You have to ship only your classes and eventually the third party libraries.

  • Is there any third party software for itunes that will do this:

    Is there any third party software for itunes that will organize the browser window. Ideally I would like the third browser window (album name) organized by "main albums" "compilations" "bootlegs" "singles"
    It would look like this for the Beatles
    Main
    1963 Please Please Me
    1965 Help
    etc.
    Compilations
    1970 Red Album
    1990 Greatest Hits
    etc.
    Bootlegs
    1985 Ultratrax 1
    etc.
    CD Singles
    1999 Whatever
    This info would be marked on either the info or option tab when labeling.
    If this has not been made, one of you nerds should make it, it would be great and you could charge $3 for it and I buy it. and so would 100,000 other people.

    If you haven't already, try looking through the Apple Downloads specifically for iTunes.
    http://www.apple.com/downloads/macosx/ipod_itunes/
    There might be something there that is at least similar to the app your looking for.
    edit: There is one shareware that is an iTunes plugin called Multi-tunes. With it you can create multiple iTunes libraries, one library called "Main" one called "Bootlegs" etc, and Multi-Tunes will allow you to quickly switch between them from within the iTunes window. Not exactly what your looking for but close.
    http://www.apple.com/downloads/macosx/ipoditunes/multitunesdavidcaldwell.html
    Message was edited by: Zookalicious

  • Third-party library for J2ME

    Can I use third-party library in the J2ME wireless toolkit? and How?
    I have trouble using MathFP library provided by http://home.rochester.rr.com/ohommes/MathFP/
    with the J2ME wireless toolkit(1.04, 2.1 and 2.2).
    If I can not use third-party library with the toolkit, is there any way around it?
    Also, I find out that even if I wipe out my CLASSPATH on my windows system, the J2ME wireless tool kit still remember the old CLASSPATH. It means I still can compile Java project with J2ME wireless toolkit, but I can not compile any Java file with command line ( it can not find any Java library!). The bottom line is J2ME wireless toolkit has special setup. And I don't know to use third-party library with the toolkit. If developer can not use third-party library with the toolkit, it would be kind of ridiculus. It would be just like the Visual Studio .NET can not use any other third-party DLL.

    Hi,
    You can very well use third party libraries in J2ME as far as it is compatible. If u have the source code of the library copy it in to the src directory of the project or if u have only the library then put it in lib directory of the project

  • Third Party Products for HTMLDB

    Hello,
    Are there any third party products for HTMLDB?
    Regards,
    Colin.

    Previously I posted for information for :
    I was wondering if it has any applications modules for features like:
    Blogs
    Discussion Forums
    Basic CMS Features (Authoring, Versioning, Workflow approval)
    Download File lists
    Aslo, what tools/techniques are there for making your own copy protected application modules for HTMLDB?
    Thank you for your kind assistance.
    Regards,
    Colin Sheppard.

  • Third party tool for burning MP3 CDs?

    Hi,
    Are there any third party tools for burning MP3 CDs from an iTunes library?
    The iTunes functionality is not sufficient for me for two reasons:
    *) I have ALAC files in my library and iTunes won't convert them for putting them on the CD. I know I can convert them in iTunes, but I am looking for a more elegant solution.
    *) iTunes seems to put all files in the root of the CD. My car stereo does not use MP3 tags but subdirectories to recognize albums, so I need a directory for every album.
    Any hints are appreciated!
    Thanks, Robert

    ed2345 wrote:
    Easily done. See iTunes: How to set the play order of songs on an MP3 CD. Basically, if you sort the playlist by album, iTunes will burn the MP3 CD with album folders.
    Thanks, that solves the second problem, which was the more pressing anyway.
    Do you maybe also have an idea how to get rid of the number in front of the album title in the directory name?
    Cheers, Robert

  • Integrate project open (third party tool for time sheet management) in EP

    Hello Experts,
    I have third party tool for time sheet management (Project Open) and EP7.0 SP17. I tried to integrate third party tool with portal by using the App integrator. But it is not working properly. Again and again its asking authentication. I followed same steps to integrate this tool by using App integrator in portal.
    we filled the system properties Server name is projects.company.local and Web Application URL is /intranet/.
    What i made mistakes in this, please help me.
    Regards
    Kumar

    If anyone knows how to contact Sacha Emery, ATE Systems Engineer @ NI, he may have more information regarding this.  (He may even have the DLL wrapper source code.)  His name is in the ITrax2 Readme.txt file as the creator.
    ~ Jay

  • No of classes, Methods, Lines of codes, DLL's used and Third Party Libraries details identifying tools

    We have started a project to migrate 100+ Web Applications developed using legacy Microsoft technologies to latest .Net 4.5 Framework.
    The following are the planned migration approach
    Classic Asp à                                                   
    Asp.Net 1.1 Framework à Asp.Net 4.5 Framework
    Asp.Net 2.0, 3.5, 4.0 Framework à         Asp.Net 4.5 Framework (Direct Migration)
    Asp.Net 2.0, 3.5, 4.0 Framework à         Asp.Net 4.5 Framework (Application Rewrite
    using MVC/Entity Framework)
    VB 6 (COM/DCOM) à                                  
    C# .Net 4.5 (Web Services)
    We have to analyze 100+ applications to categorize them as Simple/Medium/Complex conversions for planning the timeline for completing the migration activities.
    Analysis includes identifying the following details - No of classes, Methods, Lines of codes, DLL’s used and Third Party Libraries  details
    for 100+ Microsoft applications.
    Could you please let me know do we have any effective tool to identify above mentioned details?

    This forum is for Microsoft Project Server, an EPM tool. You will need to find a more suitable forum for your question.
    Good Luck with the conversion!
    Rod Gill
    Author of the one and only Project VBA Book
    www.project-systems.co.nz

Maybe you are looking for

  • Comparintg times  in a dynamic sql statement

    I am working on a coversion procedure from one database to another. I have a move procedure that calls functions and the like . I am trying to use dynamic sql and my where clause is giving me errors. What am I missing here ? TIA.... DEFINE DATECUTOFF

  • Blue screen error while instaling.

    Hy I get the blue screen error when i install the flash player. Windows 7 32 bit Firefox 16.0.1 32 bit I had the older flash version but i removed it tryng to solve the problem but no succses. This is the version i try to install 11.4.402.287 i dont

  • How to get the right file name in an attachment

    I have design a program to get the attach file from an attachment. But when I click the link to save the file, the default name of the file is 'attach' whenever I get different files. Who know what is the problem, please tell me the truth. Here are s

  • Using distinct in a command

    I have a query that works fine in SQL DEveloper: select distinct s.invoice_number as "Invoice Number",c1.company_cd as Counterparty,  C2.COMPANY_cd as "Internal Company", s.payment_due_dt as "Payment Due",        s.invoice_amt as "Amount", s.paid_amt

  • Set a value to Input component without binding

    Hi all, I have an ADF form used to add a new row to a table. There is an input field that has to get its value from a tag I put it on processScope. When I edit the value property of the input to #{processScope.PersonID} that will override the old bin