Using 3rd Party packages when creating jar - program doesn't run

I am using the xerces and xom packages for xml etc in my program.
It works fine when run from a command prompt, but as soon as I package it into a jar I get the java.lang.NoClassDefFound error for the nu.xom.Builder class (one of the 3rd party classes.)
Reading through these forums has yielded several suggestions, none of which work.
I am probably making some massive stupid mistake, but cannot see it...
My manifest:
Manifest-Version: 1.0
Created-By: 1.6.0 (Sun Microsystems Inc.)
Main-Class: be.bavardage.vocab.VocabGUI
Class-Path: serializer.jar xercesImpl.jar xercesSamples.jar xml-apis.jar xom-1.1.jar
using the jar comand line prompt:
jar cfm vocab.jar MANIFEST.MF be\bavardage\vocab\*.classCan anyone give me any indication as to what I am doing wrong...

bavardage,
I too am reading forum messages to try to do just what you originally wanted to do. I have 3rd party JARs and I have always first extracted them and then turned around and JAR'ed them up into my single Remote.jar (actually I'm so new to Java that I don't yet change things that aren't broken and this was working when I got it)
jar  xf  jakarta-oro-2.0.5.jar
jar  xf  jasperreports-1.2.1.jar
jar  xf  iReport.jar
jar cmf  mainClassSpec  Remote.jar  *.class  org/  net/  it/I am reading the forums for a way to NOT do this. My reason is because I want to make the application Java Web Start (JAWS) capable. By zipping all the JARs up into one I end up with a JAR over 6 MB! I am also adding internationalization and I really need to keep the ListResourceBundle classes in a separate JAR so I can keep adding languages and not cause the entire 6 MB file to be downloaded each time.
Using Java Web Start is the real motivating force here. I need to keep all JARs separate so that when there are code changes or new languages only one small JAR will be downloaded again by JAWS not the huge iReport.jar file at 4,218KB nor the somewhat smaller jasperreports...jar at 1,225KB (at 64KB jakarta-oro...jar is hardly worth mentioning) .
I will watch this thread to see if you or anyone else later comes up with the information to reference external JARs (while in a Java Web Start environment).
So to put it in a question format, can anyone provide some information about referencing external JARs in a normal environment and will it work in a JAWS environment (I do know the technique for specifing and downloading multiple JARs in a JNLP file)?
Hopi(ng)

Similar Messages

  • Can I use 3rd party instruments/plug-ins/loops with Garageband '11 running OS X 10.6.8? and how do I install?

    Can I use 3rd party instruments/plug-ins/loops with Garageband '11 running OS X 10.6.8? and how do I install?

    10.6.8 won't run on a PowerPC Mac. 
    10.6.8 also won't run the latest Java.  Here's what version of Java you can run:
    https://discussions.apple.com/docs/DOC-5532

  • Where to install 3rd party packages

    Good evening...
    i just downloaded the regex package from jakarta (jakarta-regexp-1.2) and un-zipped to some directory on my harddrive.
    but is that really what i wanted to do? where do you usually install 3rd party classes and their documentation?
    i realize for distribution my application jar will have to include the jakarta-regexp-1.2.jar; this question is more about what's the best way to set-up the development environment. just wondering if there's some standard that i should adhere to make my life easier when using other people's libraries.

    There are 2 jre's, C:\jdk1.2.2\jre is the one you want to develop with. The othere one is for windows and ie when they need to run a java program (don't worry about this one).
    To setup the development environment, make sure that javac and java are in your PATH variable. I suggest making an environment variable JAVA_HOME=C:\jdk1.2.2 and setting your path to PATH=%JAVA_HOME%\bin;%PATH% . If you need an applet to use the 3rd party package, it's better to use the plug-in and point it to use the C:\jdk1.2.2\jre.
    Good luck,
    Bud

  • 3rd party software for creating repetitive fields

    I am creating business forms that have a lot of repeated steps to format individual form fields. Is anyone using 3rd party software to record repetitive steps to add scripts, or change the appearance of the fields?

    We write our own and use cut an paste.
    For common document level scripts I create an FDF file that can be imported into a form and the document level script is added to the form.
    Another approach would be to put the fields on a PDF page and then saving that PDF. Now just insert the PDF page and copy the fields as needed. Wen all is done delete the page.
    The code for walking through the fields is a pretty simple loop. It gets more complex when one wants to limit the code to a single fields.

  • UTF8 DB using third party package

    I have an Oracle DB defined with the UTF8 characterset. I can use Oracle Forms to insert and retrieve multibyte characters from the DB however, I have not been able to retrieve multibyte characters using third party packages. These packages can retrieve multibyte characters from other DB's. Does anyone have any suggestions or other information about retrieving multibyte characters from Oracle DB's.
    Thanks
    Scott

    Hi,
    Unfortunately there was a regression bug around using the Generic JDBC connector to a Foreign Database in this Technology Preview (3). I'm not able to give you good news as I don't have a workaround for you either.
    You could use SQLDeveloper to connect to the database for live work, unfortunately that will not help if you wanted to create offline objects of some sort using JDeveloper.
    regards
    Susan
    http://www.susanduncan.blogspot.com

  • Getting chapters from PPro 2.0 into Encore 2.0 while using 3rd party encoder

    Placing chapters in Premiere is a HUGE time saver. However, I also like to use 3rd party software to encode my videos to MPEG (Canopus ProCoder2.0). This process loses the Chapter information that the .avi file carries. Is there any way to get the chapter information into Encore while still using ProCoder?

    Ok, thanks. I really wish Adobe would allow users to import and export chapter information. That would greatly increase my workflow. The thing that kills me is that in Encore 1.0, the chapters were connected to the timeline, not the video. So I could drop the AVI file into a timeline in Encore to create the chapter points, then delete it and place my MPEG video in its place. But Adobe got rid of this capability in 1.5.

  • Does any one used 3rd party components like ICEFaces ?

    Hi
    Thank you for reading my post.
    does any one used 3rd party components like ICEFaces components with Creator Studio?
    What are other components pack that we can use in Creator?
    thanks

    OK, thanks to Peter Hanusiak, and Oracle Consulting consultant in Slovakia, I have resolved my issue and I'm hoping that the same solution may apply for you. See below for the instructions from Peter that helped me out. Note that since our applications are different, the specific libraries and locations that you need to confirm compatibility for may be different.
    Hope this helps,
    Dave
    I had similar problem. And in my case it was caused by different ADF from JDev and SOA Suite and SOA order booking demo.
    Because I can't test it now, I'll tell just what I remember.
    In SOADEMO is somewhere folder SOADEMO-CLIENT\UserInterface\public_html\WEB-INF\lib
    where you can find
    adf-faces-impl.jar
    jsf-impl.jar
    Try to find exactly the same libs in Jdev and copy&paste from Jdev to SOADEMO folder. then find the libs in SOASuite, and copy&paste from Jdev to SOA Suite those libs. Restart SOA Suite. Deploy Soademo-Client. And hopefully it will work.

  • Is it safe to use 3rd party chargers

    is it safe to use 3rd party chargers on the ipod touch 4g or can it mess up the touchscreen or should i get the official apple ones because i have heard some of them blowing up :O and catching fire so do they get hot while they are charging (uk 3 pin) thanks

    I sometimes charge mine from my iPad 1 charger or my Griffen charger I purchased from my 3G Nano.
    s.salmanhussain10 wrote:
    bob please tell me so its safe to charge from ipad original charger? n from any iphone(original/3rdparty) charger ?
    thanx

  • I used the wrong year when creating an account, now it tells me im to young no matter what year i use?

    I used the wrong year when creating an account, now it tells me im to young no matter what year i use?

    Have you tried just exiting the setup and try trying later?

  • How 3rd party adapters are created?

    Dear Experts
    I wanted to know how 3rd party adapters are created, what are the methods and procedures involved in that?
    I know 3rd party adapters are available in the market, but i just wanted to know that how they are created.

    Hi,
         May be this will be helpful to you, It may not be upto your requirement but i hope it will help you.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d1d9bf90-0201-0010-20b0-d00d866891c8
    Bye,
    Rahul.

  • Which BW variable is used for date(range) when creating a portal service

    Hi,
    Can any one please let me know which BW variable is to be used for date(range) when creating a portal service for searching based on dates.
    Thanks
    Abhai

    Hi Arun,
    its just a portal service which would be called when  searching a document created on a particular date or betwwen a range of date.so what i require is which BW variable to be used when handling range.As for variable technical name we use VAR_NAME_I  and for single value variable we VAR_VALUE_EXT_I
    in the similar manner i want BW variable to be used for range of values.
    Thanks
    Abhai

  • PKI setup using 3rd party certificates

    I want to configure SCCM in our environment using are existing certificate creation infrastructure. I do not want to use Microsoft Certificate services. Instead I'd rather use our OpenSSL solution. However I cannot find good documentation to work with using
    3rd party certificates. Everything is related around Microsoft's certificate services.
    Has anyone had any luck implementing SCCM in this manor? Documentation available to aid?

    So we are planning to setup https across the board and going through the blogs and TechNet article - I see that internal PKI is a requirement and you just cannot do away with 3rd party/external certificate, correct ??
    I am working on a scenario where the customer does not want to implement internal PKI but use external certificate either by GoDaady or Thawte or VeriSign where possible at all times but looks like you can't use the external certificate to act as ConfigMgr
    Web Certificate or ConfigMgr DP Cert?
    given the following scenario
    https://social.technet.microsoft.com/Forums/en-US/ac34ebdf-c932-4075-b4a3-ebe572ffab0e/scenario-multi-tenant-configmgr-2012-r2-and-same-ip-address-range-for-multiple-customer?forum=configmanagerdeployment#868600a8-e8eb-471a-b767-761305636041
    for clients to communicate to DP's/Secondary Sites configured in HTTPS, we still need internal PKI ?
    I guess the answer is yes to all.. but just confirming :)

  • Cisco IOS CA using 3rd Party Certificate

    Hi,
    Can I use 3rd Party certificate such as verisign, on Cisco IOS CA ? All i can see on cisco.com is self-signed certificate from router.
    Thanks
    -santo-

    Santo,
    That's fair enough. A key information to make sure customers understand that a private PKI infrustructure is (for the purpose of deployment such as GETVPN) as secure as provided by third part party.
    Private PKI is not based on self signed certificates - only the root CA might need something like it :-)
    That being said, for reliability and flexability I really suggest storing CA (ser, CRL, OCSP, backup of public/private keys) files on storage external to the router.
    Key takeway is that a properly managed private PKI solution for deployments like DMVPN/GETVPN others is as secure as external 3rd party services (and often time order of magnitude cheaper).
    M.

  • What is the difference between Outlook features using exchage server and using 3rd party mail server ?

    Hi~ I'd like to know what the difference is between Outlook features using exchage server and using 3rd party mail server.
    If I use 3rd party mail server with Outlook, Outlook features are the same as Exchange Server ?
    I want to use all Outlook features..

    The basic features (and many advanced features) are identical in all accounts. With pop3, your mail, calendar, contacts, tasks, notes are stored in a pst and are only on the computer. IMAP accounts only sync email back to the server, not calendar,
    contacts, and tasks. Outlook.com EAS accounts (aka Hotmail) syncs calendar and contacts back to the server. Exchange mailboxes stores everything on the server - mail, calendar, contacts, custom views, rules - and if you open the mailbox in outlook on
    any other computer, the mailbox is identical. Because everything is on the server, you'll have much better syncing with smartphones and tablets with Exchange mailboxes.
    Calendar sharing, open other users folder, and retention policies are Exchange-only. Mail Tips and apps (linked under the reading pane header in Outlook 2013) are Exchange-only.
    Diane Poremsky [MVP - Outlook]
    Outlook & Exchange Solutions Center
    Outlook Tips
    Subscribe to Exchange Messaging Outlook weekly newsletter

  • Hello, I trying to create a program that would run a household furnace. I can't find a way to set timers for the ignitor,flame sensor and blowers. Any thoughts.

    Hello, I'm trying to create a program that would run a household furnace. I can't find a way to set timers foe the ignitor,flame sensor and blowers. Any thoughts would be greatly appreciated. Thanks, primetime

    In the detailed help for the event structure there is a link to caveats and recommendations for using event structures.  It is a good starting point.
    It is courteous to let the Forum know when your questions are related to a school assignment or homework.  We are glad to help you learn LabVIEW, but do not do your homework for you.
    You have learned the major disadvantage of the sequence structure: It must run to completion before anything else can happen.
    If you are building a state machine (typically a while loop with shift registers enclosing a case structure with one case per state) and having trouble with timing, then think about your requirements. Apparently you have some time delays, but under certain conditions you must terminate a delay/wait and do something else.  One way of doing this is to have a Wait state.  The wait state has a short delay, determined by the minimum time you can delay responding to a changed condition, and a check to see if the required elapsed time has occurred.  If the time has not elapsed, the next state is the Wait state again.  The state machine can repeat any state as often as necessary.  So a 15 second delay could be implemented by going to a Wait state with a one second wait 15 times. Any error or new command will see a response in no more than one second.
    Lynn

Maybe you are looking for