Making jar file in folder other than the working directory

Hello!
I am trying to make jar files by using a program. I execute jar commands at runtime. The problem is that when a command is given like this
jar cvmf C:\HTTPS\Manifest.txt C:\HTTPS\khalid.jar C:\HTTPS\client.cer
C:\HTTPS\Client.jar C:\HTTPS\client.keys C:\HTTPS\HelloRunnableWorld.class C:\HT
TPS\HelloRunnableWorld.java C:\HTTPS\keytool interaction commands.txt C:\HTTPS\M
akeJarRunnable.class C:\HTTPS\MakeJarRunnable.java C:\HTTPS\MakeJarRunnable.zip
C:\HTTPS\Manifest.txt C:\HTTPS\myjar.jar C:\HTTPS\myjar_r.jar C:\HTTPS\Problem s
cenario.txt C:\HTTPS\Run.bat C:\HTTPS\scompressed.jar C:\HTTPS\Security.jar C:\H
TTPS\Server.jar C:\HTTPS\server.keys C:\HTTPS\serverexport.cer C:\HTTPS\Starter.
class C:\HTTPS\Starter.java C:\HTTPS\Umer Farooq - What I did.ppt C:\HTTPS\Umer.jar
The jar file is created but it has 0 bytes in it. No data is written into it, despite all the files being there.
Thank You

That is not the way to create jar files. Here is how you do it.
Under say c:\ create directory "utils".
Copy all of the *.java" files which will be part of this jar file "utils.jar". After moving files into c:\utils , make sure every single file has the first line of code as "package utils;" (without the quotes though)
Type in "javac *.java" to compile all of the files at once.
cd over to the parent directory and then type in
jar cvf utils.jar c:\utils\*.class
This will create utils.jar file under c:\

Similar Messages

  • Running a java program in a directory other than the current directory

    How do I run a java program that's located in a directory other than the current directory?
    There is a file Test.java in /dir1/subdir1. If my current directory is anywhere other than that directory, say /dir2/subdir2, I can compile Test.java by using:
    javac -classpath /dir1/subdir1 /dir1/subdir1/Test.java
    But when I try to run it with:
    java -classpath /dir1/subdir1 /dir1/subdir1/Test
    I get a java.lang.NoClassDefFoundError: \dir1\subdir1\Test
    Any thoughts?

    You need to specify just the name of the class you want to run. So java -classpath /dir1/subdir1 Test

  • How to configure the zxp so that it will place the related files for the panel in specific folder other than the usual 'C:\Program Files (x86)\Common Files \Adobe\CEPServiceManager4\extensions\' folder ?

    Hi,
    I am Working on a panel for Adobe Premiere pro CC, Now we got a panel set up which will install all the related folders and files which are part of the Extension content folder in the
    C:\Program Files (x86)\Common Files \Adobe\CEPServiceManager4\extensions \Panel\CONFIG folder. But we need to change this location to C:\Users\USER\APPDATA folder or any other user specified folder during installation itself.
    Is there any way to do this from extension builder?
    Thanks and Regards,
    Anoop NR

    Thanks guys,
    Got it !! Hybrid extensions.
    I am using Adobe Extension builder 3 in Eclipse to code and create the zxp for Premiere pro panel.
    Seeing the hybrid extension part in  HTML Panels Tips: #10 Packaging / ZXP Installers | Photoshop, etc. I have added a hybrid extension panel using the bundle manifest editor in the extension builder. it creates an mxi file automatically with all the properties, I have to change the maximum host version number in the mxi file in order to make the extension work in the Premiere pro CC 2014. Using the Hybrid option in the Bundle manifest editor we can choose a set of folder paths for placing the files during installation itself and later can be used using 'csInterface.getSystemPath(SystemPath.CODE)' from javascript functions to modify them.
    Thanks for your relpies,
    Anoop NR

  • When saving downloads is there a way to instruct Firefox to save the download to a different folder other than the default?

    I downloaded a printer driver to Firefox's default downloads. I started the exe file and a window opened so I could install the driver. I selected run, and the window closed and nothing happened. I finally had to use MS IE in order to save the file to a different folder. I was then able to decompress the file and install it. Is there an option in Firefox to override the default downloads folder with a folder of my choosing? Running Win 7 Home Prem 64 bit, FF 5.0.1.

    This is the same issue that has plagued me for years. I always thought that this was a Flash plugin issue, but it does occur on HTML5 as well. A friend of mine verified that this does not occur in Linux, but only on Windows. It would be great to have this fixed, as it's honestly the only thing that's making me use Chrome all the time, as I don't want to have multiple browsers open.

  • Rsync - download to directory other than the sync directory

    I want to rsync from server/dir to local/dir. local/dir is an outdated sync of server/dir. I would like to perform a sync but actually download the necessary files for the sync to a different directory than local/dir.
    Basically: compare server/dir and local/dir, download the necessary updates to local/some-other-dir.
    It doesn't seem as if rsync has this functionality built in, but it's possible I'm missing something.
    How could I do this?

    My question is more complex than a standard backup procedure, I don't see anything about my question in the wiki.
    Basically, I compare A to B but actually perform the backup to location C.

  • Streaming flv from folder other than root streams

    Is it possible to stream from a folder other than the root streams folder...I want to stream from......... streams/user1/test.flv

    Yes... it's possible. See the documentation on defining virtual directories:
    http://livedocs.adobe.com/flashmediaserver/3.0/docs/help.html?content=03_configtasks_37.ht ml

  • How do I assign a file to a drive other than the drive that contains my program software?

    I've just installed a video editing program on my new Mac Pro Xeon 64 bit workstation. I want to ensure that all my media files reside on a drive other than the drive that contains programs. I had no problem doing this on my old Dell. How do I do this on my Mac Pro? -- Gary

    Application Preferences.
    Next time, 'what' program would also help.
    Most people do setup with a dedicated boot drive with OS and apps, .then use other drives or array(s) for media, scratch as needed, including external hardware RAID.

  • When in mail, i would like to move emails to different folders other than the inbox, sent and trash can a folder be created?

    When in mail i would like to move my emails to a different folder on mail account other than the inbox, sent and trash options, can i  create a new folder?

    The suggestion above is for MailBoxes on the Mac in the mail app and have nothing at all to do with the iPad. I think that you are asking about the iPad mail app.
    You need to have an IMAP email account in order to create additional mailboxes on the iPad.
    If you go to your email account in the Mail app and look at the window where your inbox, trash folder and sent folder are - if there is an Edit button at the top of the window - tap that and then tap Add Mailbox at the bottom.
    If the Edit button is not there - you cannot create folders on the iPad. Your email account is not IMAP. Only IMAP email accounts can create folders on the iPad. Any folders that you would already have in an IMAP account would sync to the device as well.

  • Whenever you try to save a PDF file to a location other than the default location ('My Documents'), Firefox freezes & you have to go to the 'Task Manager' to exit Firefox and stop the error, so you can load Firefox again.

    Whenever you try to save a PDF file to a location other than the default location ('My Documents'), Firefox freezes & you have to go to the 'Task Manager' to exit Firefox and stop the error. I have Windows XP (Media Center Edition) and all updates (Firefox, Adobe PDF, Microsoft, virus protection, etc) are installed. This has only been a problem since Firefox 4, and isn't a problem in Internet Explorer.

    Hi David,
    Thank you for your detailed question. It sounds like the real issue is pdf files. Are there any antivirus/firewalls that might be blocking this specific file type? or are there any preferences in your control panel that might be blocking this?
    Do you have any stored preferences for PDF files in Firefox?
    *[[Applications panel - Set how Firefox handles different types of files]]

  • Does Lion support having the applications folder and the User folders on a separate disk (other than the startup disk)?

    Is it possible to Install Lion while having the Application Folder and/or the User Folder on separate drives (other than the startup disk)  Leopard didn't really support this as it would have errors with e-mail and other services that where not stored directly on the startup disk.

    It's possible, but don't put the Applications folder elsewhere, and keep at least a miminal Admin account on your startup drive (so you can still log on to do troubleshooting, etc., if there's a problem with the other drive).
    Many apps are expected to be in the Applications folder on the OSX drive; they may not work on a different drive and/or may not be found or updated when updates are available.  Apple and Adobe apps, especially, are subject to this.  Don't put them in folders, either, as similar things may happen. 
    Besides, apps don't take up much space anyway, it's the data that may.
    It's often better to keep the home folders on the OSX drive, but put large data folders on a separate drive, such as iPhoto, iTunes, or large video collections.

  • Can I install Adobe Reader to a drive other than the C: drive?

    Can I install Adobe Reader to a drive other than the C: drive?

    Hello there,
    Welcome to Adobe Community. Yes it can be installed on a different drive. Though some of the files installed by it will still be installed on C: drive.
    When you run the installer, use 'Change destination folder' at the bottom of the panel
    If you already have Adobe Reader installed on the C: drive, you must uninstall it before installing a new version on a different location.
    Thanks!

  • Why is the contents of Safari's downloads folder different than the actual folder?

    Why is the contents of Safari's downloads folder different than the actual folder that resides in my users folder?

    Problem is if I delete that .plist I'll delete those downloads.  I'm still able to launch those downloads from that location so that tells that file is probably not corrupted. I need to be able to located that folder and transfer the downloads from it before I do anything like this.  So that begs the question, where is that folder located?  When I do a folder search I'm taken to a Downloads folder, but it's not the one that is showing up from within Safari as it's contents are too different. 

  • How can I add vocal effects other than the 9 Voice options? (I can't shift pitch)

    Hello!
    I am making the switch from PC and am just trying to lower the pitch of a vocal track by at least an octave; I just got a MBP last week and am running GB 10.0.2. I can't find any info on similar problems that is helpful; most solutions I've come across show that when the track is selected, there should be a pitch shift bar with a sliding button, but I do not have that. I read a lot of people saying something about the track being purple or not, but I'm not sure if that's relative to the version I have or if that has anything to do with what's happening. When I select the track, in the little area toward the lower left when "Track" is selected, (what is that space called?) where the pitch shift option is for other people, I only have a sliding bar for Pitch Correction, and a checkbox for Limit to Key and Enable Flex. When "Region" is selected, it just shows the name of the region and there are no options. Another question I have is how to change the pitch of midi sounds? When the keyboard is open on the screen I have tried moving the little octave shifter, but it assigns the sounds that are on the keyboard at different locations if I move it, so it changes the sound completely. A couple of them shift one octave up or down, but there are no actual controls..
    I'm mostly just dabbling with EDM/trap/Hiphop tracks at the moment, but am confused about whether or not there are other vocal effects and controls other than the preset Voice options in the instrument area (Bright vocal, Classic vocal, compressed vocal, Edge vocal, etc.)? I'm not going to be using GB forever, but are there not any other options like for current rap/trap production (phaser, balance, EQ, auto tune, choppers, actual voice altering effects, etc.) [preferably without buying extra things]? And not only vocals, but editing effects for all sounds.. If so, how do I get to them? And if not I know I should at least be able to lower or raise the pitch of a vocal recording... There are some pretty legit electronic instruments that are exactly the kind of sound I'm going for so I was surprised to not see an equally simple to access vocal effects board or something. Any additional tips for a n00b electronic music producer would also be greatly appreciated! Thank you for any help!

    In GarageBand 10 you can no longer change a track with an audio file to a "purple" audio recording, as it has been possible in GarageBand '11.
    Even, if you can make the transpose slider visible by enlarging the the track editor panel, the slider will be disabled.
    What you can do however, is either add an AuPItch filter  from the audioUnit panel or to convert your audio file to loop and to admit from the Loop Browser.
    In the new GarageBand you add the AuPitch filter from the Smart Controls.
    Enlarge the SmartControl panel by dragging the dividing line upwards, until you see the Audio Units brick, then add an Apple Audio Unit and set it to AuPitch.
    Or create a loop from the audio file. Select the region in the track and use the command "File: Add region to Loop library". You need to trim the filet an exact number of measures.
    Set the current key and tempo, name the loop, and save the loop. Make sure, that one-shot loop is not enabled.
    Now add it from the loop browser to a new track and delete your old track. The search field in the Loop browser will help you to find the loop quickly.
    You will be able to transpose the sample  like any regular loop.

  • TS3297 iTunes puts up a message "The item you've requested is not currently available in the Hong Kong Store." I had not requested anything from the HK store at that point, and I have never used any store other than the HK one. How I can clear that messag

    I've been running iTunes on WinXP for years with few problems.  I have all my iTunes files on an external USB drive. I just bought a new PC running Win7, 64-bit.
    I connected the external USB drive to the new PC and installed 64-bit iTunes on it. When iTunes started up, I pointed it at the iTunes directory in the external drive, using Edit > Preferences > Advanced > iTunes Media Folder Location. It showed a progress bar that it was updating the iTunes Library. I signed in and authorized the new machine. I have one spare authorization.
    Then iTunes put up a message "The item you've requested is not currently available in the Hong Kong Store." I had not requested anything from the HK store at that point, and I have never used any store other than the HK one.
    When I click OK, the iTunes Store page remains blank, apart from saying "iTunes Store" in the middle of the page.
    I went to "View My Account" and pressed the Reset button to "Reset all warnings for buying and downloading items", but that doesn’t fix this particular warning. I also tried Edit > Preferences > Advanced > Reset Warnings and Rest Cache.
    But still, every time I click the “App Store” button in the iTunes Store window, the message appears. If I click the Books, Podcasts or iTunesU buttons, these display normally.  So I’m stuck with being unable to purchase apps, other than through my iPad and iPhone.
    If I move the external drive back to the XP machine, the same thing happens.  If I go to another PC - a notebook running Vista - everything is normal.
    Any idea how I can clear that message?
    Thanks for any help you can offer.

    Further info on my question above.
    I have tried re-validating my credit card, which apparently fixed it for some. 
    I have also tried uninstalling, re-downloading and installing again.
    Neither of these steps fixed the problem.

  • How to import .jar files in order to use the classes within this file

    hello guys,
    I'm just wondering how can i import .jar files in order to uses the classes within this file.
    let's take an example:
    i have a folder in which I have many .jar files which contain classes to be called. the full path of this folder is set in the Classpath inside the enviroment variables.
    so does anyone have any idea how can i import these .jar files so i can use the classes?
    thank you.

    Hi,
    My problem is that: I created a Serializable class in a project. And I added this project (first project) to another project (second project). First project is appearing in the second project' s Libraries folder. No problem. I want to create a jar file from second project. i.e. I want to Build second project (I use NetBeans IDE). I am using Build Main Project tab under Run. It is falling out. I am finding it second project' s jar file under its folder. I am clicking on it. But it is NOT WORKING. Do you know WHY. Could you help me please?
    Thanks,

Maybe you are looking for

  • Error in accessing the sample application content from the OBIEE 11g

    I installed OBIEE 11g + Oracle 11g database on one machine. Everything went smoothly with no issues. I can connection to the database from SQLPLUS. Then I followed instructions to deploy sample app. After everything is done, when I try to access the

  • How does  the Logical System GUID get created

    In R3 table CRMPRLS has a logical GUID for its logical system name.  How does this get created/updated?  Is it created during the initial replication of the data between R3 and CRM?   Why I am wondering is my systems where working ok in my QA environ

  • Limit PO price changes are not replicated to ECC backend

    Hi all, SRM 5.0 ECS SP13. When I change the value(increase/decrease) in limt PO which is already created(PO is changed for first time) and order the PO,under Overview screen.,the PO total value(at header level) shows the correct changed /new value wh

  • Why does my Macbook Pro destabilize after hibernation sleep?

    Over the last several months using Mountain Lion, I decided to completely drain my battery to reset it. I think it then goes into what is called hibernation or emergency sleep mode. I am usually unable to wake it from sleep prompting a forced resstar

  • Error when using 557 movement type to remove stocks from intransit

    Dear All, We have some stocks left in intrasit where we use only inventory management to do this stock transfer(ie. we are not using STO),now we want to remove this stock from intransit. When i tried to use movment type 557 I got an error (Deficit of