Have to list all *.jar files one by one as classpath?

I use some third party jar files, and it seems that I have to list all the jar files one by one for the classpath. For example, this will work:
javac -classpath .\temp;C:\path\lib\log4j-1.2.9.jar;.\temp;C:\path\lib\jdom.jar -d .\temp -sourcepath @javalist.txtthis won't work:
javac -classpath .\temp;C:\path\lib\*.jar -d .\temp -sourcepath @javalist.txtIt is not a problem when I have a few of them, but what if I have 10 of them? Any better way to do it with the DOS Prompt? Thanks.

Thank you for your replay.
The problem is that I dont' really know what are the *.jar files I need to use at compile time. I have to get the list of *.jar files at runtime. My java program needs to compile any other given java project at runntime, and those projects will have certain project structures, such
project_root
|---src
|---lib
I need to consturcture the right classpath string and pass it to the exec method of the Runtime class. I have already successfully compiled a sample project by listing all the jar files one after one, but still want to know if there is a better way to do it.

Similar Messages

  • How to list all the files in a FTP site?

    I am now using LV7.1 and trying to list all the files (with file name, file size and modified date) on both a local drive and a remote FTP site. I can manage to do on a local drive, but is it possible to list the files on a FTP site?
    Thanks,
    Cola

    Listing files on a local drive and listing the contents of an ftp site are two different things. Access to an ftp site uses a totally different protocol. Off the top of my head, you have a few options:
    Use a third-party tool that can map an ftp drive to a local drive letter. WebDrive is one such client. Note: I'm assuming Windows here.
    Use the Intenet Toolkit.
    Use the LabVIEW TCP/IP functions to write up your own ftp client to connect to the server, change to the desired directory, and send the command to list the contents, which you can parse and spit out as a nice little array of filenames. Check the LabVIEW examples, as I believe there's some examples on this. You should also search this board for "ftp client", as this has been brought up before, and samples have been posted.

  • FileSelectPopup in LW/CVI not listing all directories/files in linux.

    This is concerning a port of Windows based software to Linux.  The FileSelectPopup dialog does not list all the files and folders in the current directory.  For example, if I look in /home/pshrewsberry I can see everything but when look in /home I cannot see pshrewsberry!  Another example: If I am in a directory "test" which contains directories A,B,C and D only B and D are listed. The same happens with files as well: In the FileDialogTest directory that I have attached to this post when I browse this directory using FileSelectPopup I can't see the cvibuild.FileDialogTest directory (created after building) nor can I see the binary "FileDialogTest".
    This problem does not happen in all directories that I browse through either.  I can't seem to find a rhyme or reason to it.  File permissions on all files in FileDialogTest (for example) are the same and UID and GID are same as well but the FileDialogTest binary and the cvibuild.FileDialogTest directory are not listed.  If I run as root I get the same results.
    I have tested this in Linux with LW/CVI8 and the LW/CVI 2010 beta and I get the same erroneous results with both.
    Could this be a bug in LW/CVI for linux?
    Thanks
    -pete
    Attachments:
    FileDialogTest.tgz ‏4 KB

    I'm not sure how to track a corrective action request.
    What is the timeframe for this to make it into a beta or a distro.  I just went throught this before concerning another problem that I found.  We ultimately received an updated shared object file (*.so) to fix the issue before the ultimate release of fix in beta.  That resolution is preferable for this issue as opposed to waiting for the next official update.
    Thanks,
    -pete

  • Why are all jar files not compressed in the JRE installer?

    I used 7zip to unpack jre-6u12-windows-i586-p.exe (Oracle JRE Installer). On unpacking, I got a core.zip, a zipper.exe and a few other files.
    Again on exploding core.zip I found a few things. core.zip contains all the jar files just like it would be after installation except for 7 jar files.
    charsets.jar
    deploy.jar
    javaws.jar
    jsse.jar
    localedata.jar
    plugin.jar
    rt.jar
    Instead of these jar files there exists the corresponding packfiles
    charsets.pack
    deploy.pack
    javaws.pack
    jsse.pack
    localedata.pack
    plugin.pack
    rt.pack
    I think these are files created by pack200.exe & unpack200.exe is run on them after installation to create the corresponding jar files.
    So now I have a few questions
    Why are only these 7 files run through pack200.exe. I assume its because they are bigger than other files. But it wouldn't take that much effort to pack all jar files & unpack them after installation.
    The .pack extension suggests that these are packed but not gzipped. Again why would Oracle not do a gzip also? for eg with rt.jar packing reduces size from 45 MB to 12 MB, while adding gzip also reduces it to 6 MB.
    Edited by: 966944 on Oct 22, 2012 8:19 AM

    Whatever the truth of all this may be, you won't find it here. This is a user to user forum, not Oracle support or a channel to the developers. All you will get here at best is valid post hoc reasoning: at worst, guesswork. And if you're trying to bring this issue to Oracle's attention, again this isn't the place to do it. Locking the thread.

  • How to get list of jar files loaded by servlet container.

    Hi,
    I need to display in my servlet program about the list of jar files loaded by servlet container. Does it vary for each servlet container or is it same. Where can I get those details.
    I need to write code to support tomcat 4x, iplanet 5.0 and websphere 6.0.
    Thanks & Regards,
    Nasrin.N

    For curious, here are output prints for all 3 methods:
    1) parsing system property
    2) tschodt
    3) overcast SystemClassLoader to URLClassLoader
    /home/espinosa/workspace/jboss_embedded_test1/target/test-classes
    /home/espinosa/workspace/jboss_embedded_test1/target/classes
    /opt/javalibs/javax/ejb/ejb-api/3.0/ejb-api-3.0.jar
    /opt/javalibs/javax/jms/jms/1.1/jms-1.1.jar
    /opt/javalibs/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar
    package com.sun.org.apache.xerces.internal.impl.validation, Java Platform API Specification, version 1.6
    package com.thoughtworks.qdox.directorywalker
    package com.sun.org.apache.xerces.internal.parsers, Java Platform API Specification, version 1.6
    package java.util.jar, Java Platform API Specification, version 1.6
    package org.testng.internal.thread
    package com.sun.org.apache.xerces.internal.util, Java Platform API Specification, version 1.6
    package java.net, Java Platform API Specification, version 1.6
    package sun.reflect.misc, Java Platform API Specification, version 1.6
    package esp.ejb.samples1.test
    package sun.security.provider, Java Platform API Specification, version 1.
    file:/home/espinosa/workspace/jboss_embedded_test1/target/test-classes/
    file:/home/espinosa/workspace/jboss_embedded_test1/target/classes/
    file:/opt/javalibs/javax/ejb/ejb-api/3.0/ejb-api-3.0.jar
    file:/opt/javalibs/javax/jms/jms/1.1/jms-1.1.jar
    file:/opt/javalibs/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar
    ...Interestingly, method 1 and 3 gives the same list, same order, same count, just format of item is a little bit different. The order is same as in Eclipse .classpath file.
    Method 2 (tschodt) give significantly more items! rougly 3x! Different order (somewhat random it seems to me). Some items contain extra information, like version and string "Java Platform API Specification".
    It prints not absolute paths but logical Java names.

  • How to list the JAR files loaded into the Oracle Database ?

    How to list the JAR files loaded into the Oracle Database ?

    From 11.1 onwards, the below two views are available to identify the jar files loaded into the Database.
    JAVAJAR$
    JAVAJAROBJECTS$
    By querying the JAVAJAR$ view you can know information about the JAR files loaded into the Database and using JAVAJAROBJECTS$ view you can find all the java objects associated with the given JAR file.
    These views are populated everytime you use LOADJAVA with "-jarsasdbobjects" option to load your custom java classes.
    But unfortunately this feature is available only from 11.1 onwards and there is no clear workaround for above in 10.2 or earlier.

  • I can not transfer date from one hard drive to another, I keep getting an error because I have two of the same file names and one file name is in caps and I cant change the file name

    can not transfer date from one hard drive to another, I keep getting an error because I have two of the same file names and one file name is in caps and I cant change the file name. My original external has an error and needs to be reformatted but I dont want to lose this informations its my entire Itunes library.

    Sounds like the source drive is formatted as case sensitive and the destination drive is not. The preferred format for OS X is case insensitive unless there is a compelling reason to go case sensitive.
    Why can't you change the filename? Is it because the source drive is having problems?  If so is this happening with only one or two or a few files? If so the best thing would be to copy those over individually and then rename them on the destination drive.
    If it is more then you can do manually and you can't change the name on the source you will have to reformat the destination as case sensitive.
    Btw this group is for discussion of the Support Communities itself, you;d do better posting to Lion group. I'll see if a host will move it.

  • I'm having some trouble transferring audio books to my iPhone.  It usually takes 3 or 4 tries to get all the parts transferred.  I didn't use to have this problem - all parts would transfer in one try.

    I'm having some trouble transferring audio books to my iPhone.  It usually takes 3 or 4 tries to get all the parts transferred.  I didn't use to have this problem - all parts would transfer in one try.

    carolinechx wrote:
    i know the description may be a little bit too confusing
    Mostly because you are not using any capital letters or paragraph returns and your post is difficult to read.

  • Do not have a "list all tabs" button - instead I have a button that brings up SHOWCASE

    do not have a "list all tabs" button - instead I have a button that brings up SHOWCASE, which is not the same as TAB GROUPS

    Do you have this extension installed?
    https://addons.mozilla.org/en-US/firefox/addon/showcase/

  • I have just migrated all my files from my old Mac to my new Mac.

    I have just migrated all my files from my old Mac to my new Mac. The CS2 apps are asking for my serial number which I have. But before I follow through on this will this procedure deactivate my old Mac's CS2 apps? I'd like to keep the old Mac active until I'm confident that there will be no glitches with software operation on my new Mac. In other words a shakedown cruise of app integrity on the new Mac. Please advise.

    never migrate adobe files.  properly install them using the installation files.
    for cs2, don't use your installation files.  use Error: Activation Server Unavailable | CS2, Acrobat 7, Audition 3
    and you don't need to deactivate your currentle working cs2 programs.

  • List of .jar file need to add in web application by using eclipse europa?

    hi
    what are the list of .jar file need to be added in web application which use the ide of Eclipse Europa?

    Depends on the application requirements. For a basic JSP/Servlet application just integrate Tomcat in Eclipse and assign it as application server to your web project, then you don't need to add anything. If you for example need JSF, then you should add its JAR's to the classpath of the web project, which is by default /WEB-INF/lib.

  • How to find all jar files?

    I installed eclipse a java development environment and I need all jar files (libraries). Where can I find and download them?
    Thanks for your help...

    well download the SDK appropriate for your case and you will get them there :p
    I think you can't download them individualy.

  • I have ipad3, but all my files where deleted, can I restore them?

    I  have ipad3, but all my files where deleted, can I restore them?

    Without a backup you can download the apps again for free, but only if you have a backup you can get back your settings and other data if you restore from that backup.
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    iOS: How to back up

  • How to add a jar file in the visual Age classpath

    I have to import a jar file in visual Age workspace, and don't know hox to do
    I tried several things, but didn't succeded at this point.
    I need to succed until tomorrow for completing my work.
    Please help, thanks.

    Pls do the foll actions:
    Step 1:
    File -> Import -> Selct radiobutton - "Jar file" -> Next
    -> Select the file name(ur jar file) - > click on the java button and ensure that u have selected all the file or what evre files u want " -> Finish
    If at all u r not getting any errors but the files are not apperaring in ur Project means go to
    Step 2:
    From the work bench click
    Window -> Reposiroy Explorer -> Select the Project,edition,package or type and right click and from the pop up menu click "Add to Workspace"
    This 'd work
    All the best for a successful completion of ur work
    Pramod

  • How to search a class in list of  jar files

    Hi All,
    I am using Windows XP. I have some 100's of jars and I want to find in which jar file a particular class exists. The search option in Windows XP (except Windows 2000) doesn't help. I tried the sourceforge.net jarbrowser tool but it's search functionality is not working.
    Can anybody please suggest a nice tool or approach ...
    Thanks & Regards,
    Kr.

    I know of one named ClassFinder that will do what you want.

Maybe you are looking for

  • Drag and drop objects on swf (AS2)

    Hi! This is really driving me crazy. I'm trying to create a mind mapping online app for thinking maps. See here for an example of thinking maps. I want to let users create textfields during runtime and drag and drop them. I managed to do this using c

  • Tolerance issue - Lockbox

    Hi SAP Experts, Why the payment through the lockbox is not showing cleared in the customer account even with $99.99 for $100.00 invoice. But able to clear if payment is made manually by F-28. I checked all the tolerances with $50 and 10% Thanks & Reg

  • Why there aren't any Apple stores in Morocco?

    I want to buy an iphone 5 but in morocco there aren't any Apple Stores. So if i buy it from someone else there won't be any warranty. What to do? Thanks.

  • Organizing and Editing before Importing

    I have a Canon Digital SLR but am a novice. I love to take pictures and often take many poor ones and many with different settings. So I might have 500 pictures on my card, but only 200 worth keeping. For months, I have just been loading them all int

  • Spring and ADF Faces

    I saw this on the internet: http://www.springone.com/display/SpringOne06/Integrating+Spring+with+the+Oracle+Application+Development+Framework It mentions that in 11g you will be able to drag and drop spring managed beans onto a JSF page but I don't s