Is there a way to add jar file in my program

sorry to botter you, but i really need help for this, i really dont know how to do it. i have my prog taht i want to put in jar file, that cause no problem, but my program isnt fully functionnal because he use a jar file (my driver to acces my database) taht i had mount in forte. but i cant put in in my class file, because i want my jar to be able to run everuwhere on any computer taht have the jre installed. so in resume, i want to add jar file in my program... can i have to add it in my jar file, or decomrpesse it and put the folder like org.postgre.mfileshere... ????? i really dont know
thx to help me

ok If I understood, you need to add a third part Jar
file to your own Jar File App so...
Yes, you can decompress it in a directory tree and
merge it with your application (i.e) if you have a jar
file like this:
br.com.yourApp.util
and a third part jar file like this:
br.com.thirdPart.tools
br.com.thirdPart.util
you will have these directory trees:
br/com/yourApp/util/
br/com/thirdPart/tools/
br/com/thirdPart/util/
then you can marge it in a unique tree:
br/com/yourApp/util/
....../thirdPart/tools/
................/util/
then you can make a new jar file with it...
.....OR YOU CAN ADD THE PATH where your JDBCDrive is
placed to the classpath of your application just using
the -classpath option execution string of you
application, like this:
C:\jreHome\bin\java.exe -jar -classpath
.;C:\someDir\thirdPart.jar yourApp.jar
That's the better way to do it and then everything
will work! :-)
[]'s Igor
Brazil * * * * *k thx, ill give a try, and give you result later. but can you answer me another question, why when i double click on any jar file executable, sometimes javawa start but do nothing, sometimes they start and said no main class find, sometimes dotn start anymore, and sometimes work perfectly...?? is the jdk taht is not good? i use the last one
or problem with my instalation, or the prog i try to run?
thx

Similar Messages

  • How to add jar files to a project?

    What is the correct way to add jar files to a project?
    Jdev Help has an entry "Adding Files to a Project Using the Add Files or Directories Dialog", but when I goto File->Open as it says, there is no "Add Files or Directories" dialog.
    Using JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660 on Linux.

    That's not quite what I need, as it does not copy the files into the project, but just creates references to their original location in the filesystem. We want local copies so we can check the whole project into Subversion and not have external dependencies.
    Should I just copy the files manually (outside of Jdeveloper)? And what directory should I copy to?
    Thanks.

  • Is there a way to add a single jar to an existing shared library (war)?

    Hello,
    Is there a way to add a single jar to an existing and already deployed shared library (war) in weblogic directly?
    Basically, instead of building and deploying the war each time a new jar should be added to the list of jars present in the war and deploy it in weblogic, is it possible to make the process more automatic and efficient by just adding the new jar to the existing deployed war (no matter if the consumers must be reloaded)?

    Extract the WAR file and rearchive with theJAR file included.

  • Is there a way to organise the files in itunes media into playlists? i have a large playlist that i wish to add to a hard drive but i don't want to have to look up each file location separately.

    is there a way to organise the files in itunes media into playlists? i have a large playlist that i wish to add to a hard drive but i don't want to have to look up each file location separately.

    You cannot put music onto your iPod without using iTunes, that what iTunes is for.
    It's also not a good idea to wipe the music from your computer and having it only on your iPod. We see countless posts here from people who have done just that - and then lost everything when the iPod needs a Restore. Even if you never need to Restore your iPod, what happens when you eventually replace the iPod? You'll be back here asking how to get the music from one iPod to another. That's not easy to do, we see countless posts about that too!
    A much better idea is to buy an external drive (a proper external drive, not simply an iPod) and put your large amount of music onto that drive. Then point your iTunes Library to that drive. However, you need to remember two things:
    You still need a backup of that Library.
    Using an external drive as your iTunes Library means that the drive must be connected and ready to read before starting your iTunes programme. If it isn't, then iTunes will look on the C: drive - and you will find no music in your Library. (Once again, lots of posts about that as well!)

  • Is there a way to add a QR code to a file in photoshop?

    Is there a way to add a QR code made from a website generator (i.e. qrstuff.com)? When I tried to add it to the file, it said "Could not place the document because the current document has an input-only color profile."
    Is there a way to get around this or work with it in some way?

    There is not.
    Even with the high res art from the iTune Store, I believe the file size increase is less than 2%, at least for my library.

  • If I copy and paste a comment in a pdf, when I create an xfdf file the copied comment isn't included.  Is there a way to add these copied comments to the xfdf file?

    If I copy and paste a comment in a pdf, when I create an xfdf file the copied comment isn't included.  Is there a way to add these copied comments to the xfdf file?

    Hi Steve Whipple,
    This Link (Acrobat Help | Importing and exporting comments ) seems relevant to your query. Please let me know if it helps you export comments to xfdf file.
    Regards,
    Rahul Tyagi

  • Is there a way to add an upload option to an email form? For example upload a "cad file" or "pdf"?

    Hi Is there a way to add an upload button to an email form? I want clients to upload their pdf's or cad files along with their email from the website.
    Thanks in advance!

    Hi,
    If you are using a third Party hosting like Gadaddy, than this cannot be done using Muse webform, but you can use jotform (or many available over the Internet) to create and insert the form in your Muse site. Please check the link here
    http://www.jotform.com/

  • Programatic way of updating jar files

    Is there a programmatic way of updating jar files (efficiently)? What I am looking for is an equivalent of jar -u option available in JDK 1.3.
    The only way I have right now is to create a new jar file, add the new files into this file and then add the entries from the original.
    Spawning jar -u ... is also not a desired option.
    Thanks in advance,
    Bharat

    What am looking for is a programmatic way from my Java program to do so without calling jar -u ...
    The method I am looking for is using the java.util.zip/java.util.jar packages to acheive the same result as jar -u...

  • Is there a way to open Excell file from the server and display in the UI and save it back on to the

    Hello there,
    Is there a way to open Excell file from the server and display in the UI and save it back on to the server? (like showing xell file as a datagrid - add rows, columns etc.)

    Hi Mike,
    Welcome you to the forum.
    You may try:
    SELECT * FROM MyDBNameHere.dbo.OUSR T0
    Thanks,
    Gordon

  • Is there a way to add to the existing values in a container when a LabVIEW prototype (cluster) changes?

    Is there a way to add to the existing values in a container when a LabVIEW prototype (cluster) changes?
    I have a cluster with 90 values..  ninety!  yes that many.
    Change one bloody value and the prototype changes in the TestStand step...  Reload the prototype and guess what happens??!!??
    All the bloody values get reset to defaults!  AAAAAAAAAAAAAARRRRRRRRRRRRRRRRRRGGGGGGGGGGGGGGGGGHHHHHHHHHHHH!
    If it was in one place, I could survive the ordeal.  But I have to change bloody prototypes in many places!!!!
    more AAAAAAAAAAARRRRRRRRRRRGGGGGGGGGGGHHHHHHHHHHHHHH!!!!!!!!!!!!!!!!!!!!!!
    I can't even copy the bloody values!!!!!!!  AAAAAAAAAAAARRRRRRRRRRRRRRGGGGGGGGGGGHHHHHHHHHHHH!!!!!!!!!!!!!!!!!!
    Are there any tricks that I am not aware of, or have forgotten over the years, or...  ...   something??!!??!???!!
    If there are none, I will have to post an improvement to TestStand..  I should mention I am using an older version (4.1).

    Hmmmmmmmmmmmmmmmm,
    I am not not very famous with LV and its cluster types.
    So no idea if this works (it works for DataTypes updates very well and a LV cluster is Data Type so.... maybe)
    Make a copy of the step that has to be modified to an new sequencefile. 
    Make modifications the in the copy.
    Now you should have the same DataType Name but other contents in the container. Save it.
    Normally there should be a message box that tells you that version has been incremented. - Accept it.
    Set in StationOptions-File "Allow Automatic ...." to Never.
    Open original sequencefile. Now the there must be a type conflict. Accept/Apply to all  "Use Current Loaded.."
    You have updated the type.....
    Hope this worked,
    Juergen
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=

  • Is there some way to add multiple addresses to an email I am sending that doesn't close the contact list after I click on an address?  This necessitates constantly going back to click the + sign to add each address separately.

    Is there some way to add multiple addresses to an email I am sending that doesn't close the contact list after I click on an address?  This necessitates constantly going back to click the + sign to add each address separately.  Is there some way I can open the contact list, click on all of the individual addresses to which I want to send the email without the list closing between each address entry, and have all of my address entries be listed to the email at one time?  Something like it works in Gmail.  I do not want to use set lists, I want to enter different addresses each time I send an email.  And I am a very slow typist, so I don't want to type the first few letters of each recipient's name.  It is much faster for me to just click on the e-mail addresses in the list as a group.  It doesn't make any sense to me to have to reopen the contact list for each address, when it should be so easy to click on all of the addresses I want at one time and then click once to add them all to the email as a group.  If there is a solution to this, please tell me.  Thanks.

    Vatlily,
    Try this:
    1. Select Mail>File>New Message.
    2. Select Mail>Window>Address Panel.
    3. Use (command+click) on the desired addressees in the Address Panel to create the list.
    4. Click "To:" on the top left of the Address Panel.
    The group that you selected will be added to the "To" field in your New Message.

  • Add jar files and use those classes at the runtime

    Hi All,
    I need to add some jar files at the runtime depends on which the user selects where the jar file is located and i need to import those classes in other class for some functionalities . I could add jar files by using the URLClassLoader and Class.forName("myjar.myclassname") is also succeeded and i have no clue how to use those classes with in the jar file as i couldn't import those classes also in the source because the jar files are being added at the runtime(This leads to class not found exception at the compile time).
    I had found a complicated way of using those classes after being added at the run time as below.
       Class clazz = Class.forName(myClass);
                final Method method = clazz.getDeclaredMethod(requiredMethod, new Class[]{URL.class});
                final Object returned = method.invoke(clazz.newInstance(), new Object[]{request}); but, its really pain to use in this way in all the places.
    Does any of you have simpler suggestions on how to achieve this?
    Thanks,
    Venky.

    Thanks jschell. Yes, you are right. I had found that using reflection API is the only way to load classes at the run time. But according to our application using reflection makes the application little complex, so while start of the application or during other modifications, i am overwriting my jar file to the latest one using FileChannel class as below
          FileChannel ic = new FileInputStream("new.jar").getChannel();
          FileChannel oc = new FileOutputStream("old.jar").getChannel();
          ic.transferTo(0, ic.size(), oc);
          ic.close();
          oc.close();After this code is executed, our application totally uses the new jar file.It is little fast than using reflection. Is this a good idea?

  • Is there a way to add photos to the iPad without replacing the ones already loaded?  I am trying to add photos from a folder on a computer that does not contain the other iPad photos.

    Is there a way to ADD photos to my iPad without replacing the ones already there?  I am trying to add photos from a computer that does not contain photos already synced to the device.

    You can use a USB flash drive & the camera connection kit.
    Plug the USB flash drive into your computer & create a new folder titled DCIM. Then put your movie/photo files into the folder. The files must have a filename with exactly 8 characters long (no spaces) plus the file extension (i.e., my-movie.mov; DSCN0164.jpg).
    Now plug the flash drive into the iPad using the camera connection kit. Open the Photos app, the movie/photo files should appear & you can import. (You can not export using the camera connection kit.)
    Secrets of the iPad Camera Connection Kit
    http://howto.cnet.com/8301-11310_39-57401068-285/secrets-of-the-ipad-camera-conn ection-kit/
     Cheers, Tom

  • Once I've saved a PDF document in Adobe Reader is there a way to add additional documents later?

    Once I've saved a PDF document in Adobe Reader is there a way to add additional documents later?
    If not is there a way to combine lets say 100 documents into another PDF file at once (Batch export) in PDF Pack software or do I have to add each document one by one drop and drag style?
    Thanks

    What has this got to do with Photoshop?
    In Acrobat Pro one can combine pdfs (Combine Files into PDF) and Photoshop (not in CS5, but again in CS6) offers File > Auromate > PDF Presentation to combine Photoshop files in one pdf.

  • How to add JAR files in JDeveloper 10.1.2

    Hi,
    We have developed a J2EE project using JDeveloper. Now, i have to add Upload CV functionality to the application. I want to use the classes provided by org.apache.commons.fileupload which is there in the commons-fileupload-1.2.2.jar file provided by them. My problem is i am unable to add this JAR file to my project. When i try to add this JAR file using the Project Properties of my project. Its asking me to browse the path of the J2SE Executable or EDIT the Class Path or Source Path or Doc Path. There is not option to add JAR files. If the JAR file is not added, its showing the errors:
    imported class 'org.apache.commons.fileupload.disk.DiskFileItemFactory' not found exception..
    Please let me know how i could associate JAR files to my project so that the upload files functionality is implemented. Will be desperately waiting for any assistance....
    Regards,
    Najmuddin

    Thanks John, that was helpful. After i added the JAR file, its showing me the following error:
    Error(479,16): class FileUploadException not found in class htdocs.recruitment._regMain.CommonsFileUploadServlet
    Is there any specific location where i need to keep my JAR file or i can browse it from anywhere?
    Regards,
    Najmuddin

Maybe you are looking for

  • Problem pirnting longer images on a Stylus Pro printer

    I amprinting on an Epson Stylus Pro 4800 using Photoshop CS3. Although the printer will accommodate lengths up to 55 inches, when I try to print something longer than 30 inches, Photoshop crashes. Epson adives the purchase of RIP software. Is there a

  • Why doesn't the input file dialog prompt once I attach it to a device?

    For my project I am require to move a 3-axis robot from a list of set co-ordinates to either cut into/draw a picture. The only way I can thnk of doing this is by reading the co-ordinates from a spread sheet and timing it to read the co-ordinates and

  • Need help ASAP - General Error (No Number)

    Hey everyone, so I'm trying to edit a 1920 x 1080 Pro Res 422 (HQ) sequence and not matter what I do, I consistently get a general error during playback. It should be noted that the project and all it's attributed files sit on an 2TB external drive h

  • Symbol error when submitting form

    experiencing a symbol error when submitting form.

  • Issue in E/M Card Configuration

    Hi, I have 2 Site ( A and B ). At both location i have 2621XM Router with NM-2V, it had VIC-2E/M Card in it. My calls are getting dial from A to B location. But when i am dialing from B to A, i get following error message. 1/0/1 g729r8 y S_SETUP_REQ_