Help me with JARs PLEASE!!!!

Hello,
Following is the scenario
Application name: PL
Directory "PL" has
- A.jar
- B.jar
When I create PL.jar I store it in the dir "PL" by using the appropriate relative path to A.jar and B.jar in the manifest file. PL.jar executes in folder "PL"; BUT when I copy PL.jar to another folder say desktop it gives me a NoClassDefFoundError. Can anybody help me with this as I have wrecjed my brains over this for 2 days. I have to distribute PL.jar to clients for testing purpose.....Please reply ASAP.
Thanks.
Salil.

set (class) path or use package if its inside your dir.
Message was edited by:
deAppel

Similar Messages

  • TS3276 I am not able to Mobile Me email account to connect with iCloud or my Apple Mail program. Don't know if my settings are correct or not. Can anyone help me with this please?

    I am not able to Mobile Me email account to connect with iCloud or my Apple Mail program. Don't know if my settings are correct or not. Can anyone help me with this please?

    http://support.apple.com/kb/HT5922
    If you want to mirror your desktop, see:
    http://support.apple.com/kb/HT5404
    Regards.

  • I have a brand new MacBookProo and I can not open PDF files from my desktop. Can anyone help me with this please?

    I have a brand new MacBookProo and I can not open PDF files from my desktop. Can anyone help me with this please?

    A new Mac comes with 90 days of free tech support from AppleCare.
    AppleCare: 1-800-275-2273

  • Can anyone help me with forms please

    -----------------------------------source.cfm--------------------------------------------
    <cfquery name="myquery" datasaource="mydatasource">
    select studentid
    from tbl_student
    </cfquery>
    <cfform action="reciever.cfm" method="post">
    <cfoutput query="myquery">
    <cfinput name="#myquery.studentid#" type="text">
    </cfoutput>
    </cfform>
    ------------------------------------reciever.cfm------------------------------------------ ----
    <cfquery name="myquery2" datasource="mydatasource">
    select studentid,studentname
    from tbl_student
    </cfquery>
    <cfoutput query="myquery2">
    <cfif #form.#myquery2.studentid## eq
    #myquery2.studentname#>
    Student Found
    </cfif>
    </cfoutput>
    anyone can know how to do this? i just want to make the
    #form.# dynamic because the id is coming from database
    but seems it is not allowed... anyone can help me with this
    please?or anyone know alternative solution for it?thanks in
    advance.

    thanks again cf_dev2...
    but the <cfinput> that i'm trying to use was dynamic
    because it can be a textbox or a radio button or a checkbox.. i got
    no problem in assigning their name now.. because i string
    concatinated them like placing their specific id from the database
    into their name,for example
    <cfquery name="choices" datasource="mydatasource">
    select choiceid,choicetype
    from tbl_choice
    </cfquery>
    <cfform name="source.cfm" method="post">
    <cfoutput query="choices">
    <cfset choicename='multiplechoice'>
    <cfset choicenamed = choicename.concat(#choiceid#)>
    <cfif #choices.choicetype# eq 'multiplechoice'>
    <cfinput type="radiobutton" name="#choicenamed#">
    </cfif>
    </cfoutput>
    </cfform>
    the problem now is the way how can i receive it and compare
    it on the answer values from the database for the choices.

  • HT5622 i need help using the icloud it is not making any since to me can some one call me and help me with it please don't try to help me through email i need to talk and listen i don't understand instruction by reading

    i need help using the icloud it is not making any since to me can some one call me and help me with it please don't try to help me through email i need to talk and listen i don't understand instruction by reading.
    <Phone Number Edited by Host>

    You aren't addressing anyone from Apple here.  This is a user forum.
    You might want to call a neaby Apple store to see if they have a free class you could attend.

  • Suddenly my music videos won't play on my iPad. I just get the audio? Can anyone help me with this please?

    SUddenly my music videos won't play on my ipad1. I just get the audio. Can anyone help with this please?

    Look in the Videos App and play them in there.

  • Hi, my name is Chenet i have a Macbook 0sx lion 10.7.5 i don't remember my password for the system preferences i can't even go online, can somebody help me with that please

    Hi, my name is Chenet i have a Macbook 0sx lion 10.7.5 i don't remember my password for the system preferences i can't even go online, can somebody help me with that please

    Hi 'baltwo'
    Thank you for your link, I already had been on this particular website this afternoon. they only discuss problems in the application and nothing about how the MS Office application installation does disturb Mac OS.
    Or have I missed a special comment there?
    In any case many thanks, trioloGo

  • Help with jar please.

    Hello!
    I created a jar file and I included all my folders in that file. unfortunately, when I'm running the file it doesn't show the images inside the folders i included.
    I'll be happy to know what the problem is.
    thanks a lot, Meir

    My problem is not just images but audio and icons...
    do I have to load all of this with different methods?
    there is no way to compress everything together and run it as jar file?
    Meir.

  • Help needed with jar file

    hi, first of all sorry if my post is in wrong forum...but my application is done using swing so i am posting this here....and regarding my question...
    I have made an GUI using Java swings and my application is working fine. Now i want to make an executable jar file for my GUI. I have read some tutorilas on making jar files and this is what i have done...
    i have created a manifest file called mainClass.txt which has
    Main-Class: MainWindow ,where MainWindow is my main class name.
    Then i ran the jar utility with this command line:
    jar cmf mainClass.txt example.jar *.class
    With this line, I told jar to create a JAR file (option c) with modifications to the manifest file (option m) as specified within mainClass.txt, naming the JAR file (option f) as example.jar and including everything that matches the pattern *Class
    everything is file till now but my problem is ...I have some library files from JFreechart software included in my GUI to generate barcharts..How can i include these library files in my example.jar file..
    Kindly help me
    Thanks
    byee

    I had this problem too. I ran my program out of JCreator and it worked flawlessly. I jarred it up into and Executable Jar and I would get a runtime error explaning I have not included the correct libraries.
    What I did was look at the error, for example say it said something like:
    org.uhoh.PathSys ClassDefNotFound (or something similar to this)
    What I did was extract the library that contained that class file. Then in my project file where I kept my classes I made the folder org, then in org I made uhoh. Inside uhoh I copied over PathSys.class.
    I hope I addressed the problem you speak of. I am only a novice but this is how I figured it out. If anyone knows a better way let us know =D

  • Help needed with JDBC - please help! (newbie)

    hi all
    i m new to jdbc
    i have installed MySQL server on my winxp machine
    i used the command:
    mysql -p -u root
    Enter password: ****now when writing a prog i m getting a prob at this piece of code:
    Connection con=DriverManager.getConnection("jdbc:odbc:books","root","root");wot is wrong wid this code?
    please help......
    thanks in advance

    There are about 20 different things that could be wrong a this point; I'm not going to list them all. If you want specific help, you need to post specific information. This is usually done by posting either a stack trace from an exception, or a more complete section of code and a description of the problem and ALL the symptoms. You have all the information on what you've done, we have none of it.
    Instead of trying to diagnose whats wrong with your ODBC setup, I'm going to give you some strong advice; don't use ODBC with JDBC if you can avoid it, and with MySQL you can avoid it. It makes things simpler, less can go wrong, and you don't have to configure a DSN on every machine that you install the program on.
    To use "pure" JDBC without ODBC for MySQl:
    1) download the JDBC driver (you might already have this)
    http://dev.mysql.com/downloads/connector/j/3.1.html
    2) follow the installation instructions
    http://dev.mysql.com/doc/refman/5.0/en/java-connector.html
    In particular, make sure your classpath is set correctly
    3) Here's an example of loading the driver and establishing a connection
    http://dev.mysql.com/doc/refman/5.0/en/cj-connect-with-drivermanager.html
    Note the form of the connection URL,
    "jdbc:mysql://localhost/test?user=monty&password=greatsqldb"
    This is what an URL without ODBC looks like; there is no DSN, which means no DSN has to be configured.
    4) The MySQL database has some built-in security, to prevent malicious connections from outside computers. Solutions to that and other common problems are here:
    http://dev.mysql.com/doc/refman/5.0/en/cj-faq.html

  • Help me with net, please!!!

    I'm a beginner
    I have to learn java urgently... as fast as possible.
    So I need a little net. application which works with strings, url and have graphic interface?
    For example: a window with button, which on pushing get some information from one of the url and do something with this information. It doesn't matter...
    Have you smth for me???
    Please!!!

    public class TeachmeJava{
    boolean lazy = true;
    String solution="Study!!!!!";
    public static void main (String args){
    TeachmeJava j = new TeachmeJava();
    if (j.lazy){
    System.out,println(solution);
    Does this help? ;)
    Sorry for the typo. Too many custom tags lately :)

  • System now workin :) help/advice with XP please if you can

    finally got my new system to post so looking good sp far...... started installing win xp and had an error message - disc might be a dodge one!! then thought 'o sod it, i think i'll use win 2000 anyway as seems to have less probs than xp at the mo'
    the problem is, as the install didnt complete, each time i put my win2000 cd in the drive it tries to finish the xp installation. i cant seem to get it to boot from the win2000 disc.
    how do i stop win xp doing this?? can you 'back-it-out' some how or shouldnt it do this and the win2000 should 'take-over'
    bit confused on what to do.
    hope someone can help.
    thanx

    Hi
    Your first problem with XP not completing does sound like a bad disc or your rom drive. Can you borrow another CD or Rom Dive. Can you make a copy of your XP CD on another machine and try the copy.
    Whether you stick with XP or go to Win2000 I suggest you delete partion, reformat and start again. If you are a games player do not move over to Win2000.
    Best of Luck. Russ Pyne

  • Help dealing with jar file

    hi all
    i'm trying to deal with a jar file:
    in myPackage.myClass i call:
    Class.forName("org.hsqldb.jdbcDriver");i know that this file is contained into the file named "hsqldb.jar"
    where shall i place this jar file in order to be found by myPackage.myClass without edit any system variable like class-path?
    thanx a lot
    sandro

    For the jar, no, as jar's must be explicitly referenced on the classpath.
    For the un-jar'd classes yes.
    If they are extracted so their directory tree starts in the same place as the directory tree of your classes
    e.g.
    someDirectory
    |
    +-- yourComapay
    |    |
    |    +- yourApp
    |        |
    |        +- YourClasses
    |
    +-- com
          |
          +- importedPackage
              |
              +- ImportedClassesSo long as 'someDirectory' is on the classpath. It should run.

  • Help me with jar file...

    I have created a jar file with the following cammand
    jar cvf XXX.jar com images
    where com is the folder which holding my all .class files and images is the folder which hold all my image files.
    but the prob is that when i run my jar file with the following command
    javaw XXX.jar com.Main
    Main is the main class
    i can't see nay images on my buttons in short i can't accress images files...

    satinderjit,
    Here is some code that you can use to grab an image (whether in a jar or not). Note though that your .class files will live in the com directory. So, in order for your images to load (with image path = "images/myImage.gif", you either have to move your image folder to your com folder or use the following string for your image path "../images/myImage.gif".
    /*=*******************************************************************
    * getImage(): grabs an image from the same location this file is at. *
    *     Works for when the images are in a jar or not.                 *
    public static Image getImage(String img) {
       /* Replace the 'YourClassName' with the name of your
          class.  Note that the .class file of the class
          that this method resides in must be placed
          relative to where the images are stored.  So
          if the images are in a folder called images,
          this .class file must be placed in its parent
          directory. */
       URL url = YourClassName.class.getResource(img);
       Image image = null;
       if (url == null) {
          System.err.println("Unable to load image: " + img);
       } else {
          image = Toolkit.getDefaultToolkit().getImage(url);
       return image;
    }//end getImage
    /* use the above method in the following manner
       (notice the forward slash).   The image path I
       provided should work with your current setup. */
    ImageIcon icon = new ImageIcon(getImage("../images/myImage.gif"));tajenkins

  • Presentation with animation, can somebody help me with that, please?

    Hi,
    I'm looking for a software wich contains some nice animations and allows me to create different presentations. Does anybody has any suggestion? Final Cut maybe? Or Adobe After Effects? And is really truth that the student version of Final Cut doesn't allow you to upgrade? A lot of questions, but hopefully I'll get some help.
    Thanks!
    MacBook Pro 2.0Gig   Mac OS X (10.4.7)  

    I'm looking for a software wich contains some nice animations<<</div>
    What kind of animations? Are you taking about animated motion backgrounds? Text animations? Or animations as in "cartoons"? Please be more specific.
    And yes, FCP's academic version has never been upgradable until the recent crossgrade offer: www.apple.com/universal/crossgrade
    -DH

Maybe you are looking for