How do I use a path as an argument without breaking the -classpath option?

How do I use a path as an argument without breaking the -classpath option?
I have the following Korn Shell Script:
#!/bin/ksh
    CSVFILE=/EAIStorageNumbers/v1/0001/weekly05222006.csv
    OUTPUTFILE=/EAIStorageNumbers/v1/0001/08000000.txt
    PAGEMBR=0800F341
    cd /EAIStorageNumbers/v1/bin/
    java -classpath com.dtn.refinedfuels.EAIStorageNumbers $CSVFILE $OUTPUTFILE $PAGEMBRWhen I run the shell script, I return the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: /EAIStorageNumbers/v1/0001/weekly05222006/csv
Thus, the -classpath option sees the first argument as a classpath. When I remove the -classpath option, I get a different error, which is another issue:
Exception in thread "main" java.lang.NoClassDefFoundError: au/com/bytecode/opencsv/CSVReader
at com.dtn.refinedfuels.EAIStorageNumbers.main(Unknown Source)
Thoughts or suggestions on how I can get the -classpath option to work with the defined Korn Shell Script variables would be greatly appreciated.

I think you're misunderstanding the classpath argument. This tells java where to look to find your classes. The argument you're supplying looks like the class that you want java to run. Run something like this: java -classpath $MY_CLASS_DIR my.package.MyClass arg1 arg2 arg3.

Similar Messages

  • How do I move a .fm to another folder without breaking the .book cross-references?

    Simplified situation:
    I currently have mybook.book containing:
       chapter1.fm
       chap2.fm
       appendixA.fm
       apdxB.fm
    I'd like to reorg the files such that mybook.book contains:
       chapters\chapter1.fm
       chapters\chap2.fm
       appendices\appendixA.fm
       appendices\apdxB.fm
    If I move the files into folders with Windows Explorer, it will of course break the cross-references.  I thought I could simply use right-click Rename on the file enteries within the book in FM to move them, but it won't allow the / or | chars.  How can I accomplish this reorg without breaking the cross-references?
    Thanks,
    Dave

    TWDaveWalker wrote:
    oh well, looks like I'll have to develop a procedure for the staff.  Does anyone have any non-mif suggestions for a smooth procedure?
    Not sure what the problem here is. You need neither a 3rd party plugin nor any MIF editing. Simply do it this way:
    Create the required folders (chapters/appendices) within your current book folder
    Open the book
    Open the chapter files and do a "Save as" into the \chapter subfolder
    Open the appendix files and do a "Save as" into the \appendices subfolder
    Delete the book file entries and re-fill the book with the newly saved files
    Every "Save as..." keeps xrefs intact, including the new path in the document's references. This reqires some steps, yes. But I think it's still better than doing edits to MIF files by someone who is not experienced doing this.
    Edit: Sorry, it's not a easy as I thought. I forgot that this is done in several steps, and previously saved files don't recognize path changes of files saved afterwards. So this is no solution.
    Bernd
    Message was edited by: Be.eM
    Reason: wrong approach, typing faster than thinking

  • How do I use a FileStream with an IFilePromise without knowing the File?

    I've finished the implmentation of my project using Async IFilePromises by extending the ByteArray class. I can drag out of my application and files are created by copying bits over the network, etc. The issue I'm running into is that because I used the ByteArray as my dataprovider, files are stored "In-Memory" until the Close event is fired.
    My application routinely copies files around 700 MB and up to 2 GB. The implementation quickly causes out of memory errors. That said, if I change the implementation to use FileStreams then the files are written directly to disk and memory is exactly where I want it to be.
    The issue is that the FileStream requires a File object when it's FileStream.open(File, FileMode) method is called. If I manually create a file and use it, then everything is fine, but doing that defeats the purpose of the FilePromise. I lose all the information about where a person dropped the file.
    So how do I get access to the File object that is created for each FilePromise? I know one is created by inspecting the call stack when the IFilePromise.open() method is called and inspecting the caller MacFilePromiseWrapper._file.
    I've tried simply returning a plain FileStream instead of an extended class in the IFilePromise.open method, but that still gives the same error result when I try to write to the stream (says that the stream isnt open yet).
    I would have expected the MacFilePromiseWrapper / FilePromiseWrapper to intelligently handle the returned IDataProvider and perform any "open" and "close" it needed. Please tell me I'm just missing something obvious. I'm so close to being done with this project and I don't want to have to rewrite this using a native implementation. The performance issues (memory usage) will cause me to do just that if I cant figure this out.
    Thanks for any help,
    Jared

    I have resolved the issues myself.
    I had the idea of an IFilePromise / IDataInput backwards. The way I thought it worked is that what you were "writing to" when you wrote into a ByteArray and fired of progress events was simply a pipe to a file handle on the disk. That's backwards.  What really happens is that the thing you're writing to is a buffer for the IFilePromise. Firing the open/progress/close events let the file system know that it's safe to pull up to IDataInput.bytesAvailable out of your buffer and write that to the disk and the buffer you write to can be a ByteArray, Socket, FileStream, etc.
    The confusion was compounded by my attempts to use FileStream as the IDataInput. What I was doing for "testing purposes" was creating a temporary file and writing my bytes to it. The file handle created by the FilePromise would immediately disappear, so I thought it meant I needed to somehow get access to that handle so I knew where to send my bits using FileStream.open(File, FileMode).
    I was really close, but had a mistake in there.  I was on the right track with opening the FileStrea and using the temporary file, but I opened it with the wrong FileMode.
    I used FileMode.WRITE because I thought I was writing to the disk only. When I switched it to FileMode.UPDATE (which is read/write) then everything worked as I needed it to.
    So to summarize, to use a FileStream as the IDataInput for an IFilePromise you need to:
    Create the FileStream object and return it when the IFilePromise.open is called
    When you get bytes off your network, etc, dispatch the OPEN event
    Open the FileStream object with FileMode.UPDATE and use a temporary file provided by File.createTempFile(), store it for later
    Write bytes to the FileStream and send out the proper ProgressEvent.PROGRESS events
    Dispatch the COMPLETE event when you're done
    the IFilePromise.end() method will be called and you have an opportunity to close your FileStream and to delete the temporary file that was created
    I hope this helps someone that runs into a similar issue.

  • Can any one suggest me how can I use relative path inside SSIS pacakge to access config file ?

    Can any one suggest me how can I use relative path inside SSIS pacakge to access config file ? Please help me as its urgent.THanks for your help in advance.

    Hi Jay,
    SSIS can only recognize the absolute path of a XML Configuration file, the relative path is not supported. Furthermore, if the XML Configuration file is already generated, we can use the Environment variable package configuration type instead so that
    SSIS runtime automatically looks for the configuration file from the path defined in the environment variable. This is convenient when we need to deploy a package to different environment. We only need to define the environment variable for package configurations
    once on each server, and then the variable can be used by all the packages on this server.
    Regards,
    Mike Yin
    TechNet Community Support

  • How can i use my ipod on 2 computers without deleting my music

    how can i use my ipod on 2 computers without deleting my music on ipod?

    See here: Using iPhone, iPad, or iPod with multiple computers
    B-rock

  • How do I use my canon mx432 to scan and email the information?

    How do I use my canon MX432 to scan and send the scanned documents forward on e-mail?

    Hi supercon!
    So that the Community can help you better, we will need to know the Computer Operating System you're using (Windows XP/Vista/7/8 or Mac 10.x), as well as the applications you're trying to scan with.
    Any other details you'd like to give will only help the Community better understand your issue!
    If this is an urgent support need, please CLICK HERE to reach our friendly Technical Support Team by phone or email.
    Thanks and have a great day!

  • HT5437 How can I use apple TV to connect my computer to the tv screen as an external monitor?

    How can I use apple TV to connect my computer to the tv screen as an external monitor?

    Morning jotref,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at this article:
    About AirPlay Mirroring in OS X Mountain Lion
    http://support.apple.com/kb/ht5404
    Best of luck,
    Mario

  • HT1660 how can I use one single library for all users on the same laptop?

    how can I use one single library for all users on the same laptop?

    You are most of the way there. Each user having access to hard drive is the key. If users are limited in file privileges this is harder.
    Any files you add to your library and any files she adds to her library are available to the other. Just not automatically. Each user must add the files to their own library using the add file or add folder option from menu bar.
    What I have done is set library location to a location outside of My Documents\My Music. On my network storage I have a folder names s:\itunes. Both accounts iTunes are set to use this location for the library.

  • HT1338 Purchased a used macbook pro with Mountain Lion. My old Mac runs Snow Leopard is backed up to Time machine. How do I register the operating system to me and how do I use Time Machine to move my files to the new used computer?

    Purchased a used macbook pro with Mountain Lion. My old Mac runs Snow Leopard is backed up to Time machine. How do I register the operating system to me and how do I use Time Machine to move my files to the new used computer?

    If you look at the User Tips tab, you will find a write up on just this subject:
    https://discussions.apple.com/docs/DOC-4053
    The subject of buying/selling a Mac is quite complicated.  Here is a guide to the steps involved. It is from the Seller's point of view, but easily read the other way too:
    SELLING A MAC A
    Internet Recovery, and Transferability of OS & iLife Apps
    Selling an Old Mac:
    • When selling an old Mac, the only OS that is legally transferable is the one that came preinstalled when the Mac was new. Selling a Mac with an upgraded OS isn't doing the new owner any favors. Attempting to do so will only result in headaches since the upgraded OS can't be registered by the new owner. If a clean install becomes necessary, they won't be able to do so and will be forced to install the original OS via Internet Recovery. Best to simply erase the drive and revert back to the original OS prior to selling any Mac.
    • Additionally, upgrading the OS on a Mac you intend to sell means that you are leaving personally identifiable information on the Mac since the only way to upgrade the OS involves using your own AppleID to download the upgrade from the App Store. So there will be traces of your info and user account left behind. Again, best to erase the drive and revert to the original OS via Internet Recovery.
    Internet Recovery:
    • In the event that the OS has been upgraded to a newer version (i.e. Lion to Mountain Lion), Internet Recovery will offer the version of the OS that originally came with the Mac. So while booting to the Recovery Disk will show Mountain Lion as available for reinstall since that is the current version running, Internet Recovery, on the other hand, will only show Lion available since that was the OS shipped with that particular Mac.
    • Though the Mac came with a particular version of Mac OS X, it appears that, when Internet Recovery is invoked, the most recent update of that version may be applied. (i.e. if the Mac originally came with 10.7.3, Internet Recovery may install a more recent update like 10.7.5)
    iLife Apps:
    • When the App Store is launched for the first time it will report that the iLife apps are available for the user to Accept under the Purchases section. The user will be required to enter their AppleID during the Acceptance process. From that point on the iLife apps will be tied to the AppleID used to Accept them. The user will be allowed to download the apps to other Macs they own if they wish using the same AppleID used to Accept them.
    • Once Accepted on the new Mac, the iLife apps can not be transferred to any future owner when the Mac is sold. Attempting to use an AppleID after the apps have already been accepted using a different AppleID will result in the App Store reporting "These apps were already assigned to another Apple ID".
    • It appears, however, that the iLife Apps do not automatically go to the first owner of the Mac. It's quite possible that the original owner, either by choice or neglect, never Accepted the iLife apps in the App Store. As a result, a future owner of the Mac may be able to successfully Accept the apps and retain them for themselves using their own AppleID. Bottom Line: Whoever Accepts the iLife apps first gets to keep them.
    SELLING A MAC B
    Follow these instructions step by step to prepare a Mac for sale:
    Step One - Back up your data:
    A. If you have any Virtual PCs shut them down. They cannot be in their "fast saved" state. They must be shut down from inside Windows.
    B. Clone to an external drive using using Carbon Copy Cloner.
    1. Open Carbon Copy Cloner.
    2. Select the Source volume from the Select a source drop down menu on the left side.
    3. Select the Destination volume from the Select a destination drop down menu on the right
    side.
    4. Click on the Clone button. If you are prompted about creating a clone of the Recovery HD be
    sure to opt for that.
    Destination means a freshly erased external backup drive. Source means the internal
    startup drive. 
    Step Two - Prepare the machine for the new buyer:
    1. De-authorize the computer in iTunes! De-authorize both iTunes and Audible accounts.
    2, Remove any Open Firmware passwords or Firmware passwords.
    3. Turn the brightness full up and volume nearly so.
    4. Turn off File Vault, if enabled.
    5. Disable iCloud, if enabled: See.What to do with iCloud before selling your computer
    Step Three - Install a fresh OS:
    A. Snow Leopard and earlier versions of OS X
    1. Insert the original OS X install CD/DVD that came with your computer.
    2. Restart the computer while holding down the C key to boot from the CD/DVD.
    3. Select Disk Utility from the Utilities menu; repartition and reformat the internal hard drive.
    Optionally, click on the Security button and set the Zero Data option to one-pass.
    4. Install OS X.
    5. Upon completion DO NOT restart the computer.
    6. Shutdown the computer.
    B. Lion and Mountain Lion (if pre-installed on the computer at purchase*)
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because
    it is three times faster than wireless.
    1. Restart the computer while holding down the COMMAND and R keys until the Mac OS X
    Utilities window appears.
    2. Select Disk Utility from the Mac OS X Utilities window and click on the Continue button. 
    3. After DU loads select your startup volume (usually Macintosh HD) from the left side list. Click
    on the Erase tab in the DU main window.
    4. Set the format type to Mac OS Extended (Journaled.) Optionally, click on the Security button
    and set the Zero Data option to one-pass.
    5. Click on the Erase button and wait until the process has completed.
    6. Quit DU and return to the Mac OS X Utilities window.
    7. Select Reinstall Lion/Mountain Lion and click on the Install button.
    8. Upon completion shutdown the computer.
    *If your computer came with Lion or Mountain Lion pre-installed then you are entitled to transfer your license once. If you purchased Lion or Mountain Lion from the App Store then you cannot transfer your license to another party. In the case of the latter you should install the original version of OS X that came with your computer. You need to repartition the hard drive as well as reformat it; this will assure that the Recovery HD partition is removed. See Step Three above. You may verify these requirements by reviewing your OS X Software License.

  • How can I use iTunes on my new computer, without lossing all my music?

    How can I use iTunes on my new computer, without losing all my music?
    I don't want to rebuy everything I have purchased over the years.
    Your help would be greatly appreciated.

    They should be in your itunes media folder. Use an external hard drive and just copy that to your new computer. I'm sure there's an easier way like this one (iTunes>File>Library>Export Library>External Hard Drive) but I never tried it before. Anyways, once that's done, just simply authorize your itunes account to play music you bought on to the new computer.

  • My wife and I have separate have separate user accounts on our IMac.  We have separate Apple IDs for iTunes.  How can we use iCloud on our separate iPhones without sharing contacts, calendars, etc.

    My wife and I have separate have separate user accounts on our IMac.  We have separate Apple IDs for iTunes.  How can we use iCloud on our separate iPhones without sharing contacts, calendars, etc.

    If have separate iCloud accounts and want to keep your all your iCloud data separate, you can create separate user accounts for each of you, then sign into your individual iCloud account within your user account.
    If you want to just add both iCloud calendars on your Mac, you can sign into one iCloud account in System Preferences>iCloud, then add the second account in System Preferences>Internet Accounts>iCloud and only check Calendars with this second account.

  • How can I use Guest network when my internal server provides the DNS?

    How can I use guest network when my internal server provides the DNS? The help article TS4505 tells me to enter an external DNS server, but I believe I can not configure my network that way...

    Apple assumes that you will be connecting the Time Capsule to a simple modem....and.....that the Time Capsule is configured as a router to provide DHCP and NAT services for the network.
    The Guest Network cannot be enabled correctly unless the Time Capsule is in charge of DHCP and NAT services on the network.
    Another way of saying the same thing is that the Guest Network will not operate correctly if the  Time Capsule is configured in Bridge Mode or DHCP Only.

  • How can I use my fonts in Illustrator (CS4) without Suitcase?

    How can I use my fonts in Illustrator (CS4) without Suitcase? InDesign has a fonts folder, but not Illustrator.

    i found this info from this link: http://forums.adobe.com/message/3466307.  The user who asked this question stats this solution worked for them.
    First in Language and text preferences in the system preferences select Hebrew as the input method.
    The in Illustrator click the text tool in your document or drag to create a text frame.
    While the cursor is active select a hebrew font
    then go to the menu bar for the finder and where there is the American Flag pull it down and select hebrew
    now go back to the document and start typing.
    Remember if you do not have the ME version you have to have it flush right and type backwards.

  • I am going overseas to Singapore how can I use my ipad2 and my iPhone without it costing me a fortune. I am in Australia

    I am going overseas to Singapore how can I use my ipad2 and my iPhone without it costing me a fortune. I am in Australia

    iPhone - Locating wireless carriers
    The above will provide carriers in Singapore that you can use. You would get the SIM card from the carrier. Of course if you are somewhere that has WiFi service then you won't need the cellular connection.

  • Disk utility will not boot using COMMAND   R. It won't give me the 'ERASE' option when I open Disk Utility. How do I wipe my hard drive?

    Disk utility will not boot using COMMAND   R. It won't give me the 'ERASE' option when I open Disk Utility. How do I wipe my hard drive?

    If you're truly running 10.6.8, there is no Recovery partition - that didn't come along until 10.7x.
    You'll need to use the set of gray discs that originally shipped with your model. If you don't have them, you can always get your serial number from the bottom of the casing and call Apple to get a set of replacement discs. These will run you about $20 + shipping & taxes. Once you have the discs, boot from Disk One and use Disk Utility to erase your HD and then reinstall whichever version of OS X that shipped with your model. No way around of getting the discs.
    Clinton

Maybe you are looking for

  • ITunes no longer burns discs

    Hi, I came here in support of a new issue that has arose. Heres the scoop: I have already created a playlist, click burn disc. It starts up fine as it has no errors when creating the disc. It then initializes, and says that it is burning the first tr

  • Help!!!! trying to install leopard on a powermac g5 tower

    ok im new here and i would like to get some kind of help. i have a powermac g5 tower that is been giving me alot of problems. i currently have 10.4.11 and trying to upgrade to leopard. but every time i do the install process it quits on me and tells

  • Warnings in stored procedure

    i am new to oracle i am writing a stored procedure of about 1600 lines when i compiled the stored procedure it is giving me warnings AND not any error and got compiled successfully which i write below warnings Warning(6,2): PLW-07203: parameter 'P_RN

  • Delivey related info rqrd from one table

    Hi, Can I got the following SCM related information from one standard table. plz reply ASAP. 1. Outbound Delivery Number. 2. Invoice Number of O/D. 3. Invoice Value 4. Invoice Qty. (Base Unit) T & R Sanjay

  • No endpoints found for interface

    Hi All, I have the following scenario: RFC in the backend system (ECC 6.0 SP09 no EhP's) and PI 7.1 as an Integration Broker. I have imported the RFC into Enterprise Services Repository and done the necessary tasks to configure an Enterprise Service.