Without hard coding it how can I add a java app to my path variable

I'm not sure how to phrase this but I wrote a quick utility program and I wrote a quick batch file to call the program. I put the batch file in a folder in the path variable and put the folder containing the classes in there as well. I was hoping that when I called the batch it would check the relative location and see the folder for the utility program and run it. However I got an error message acting like it couldn't find the class. I think it's checking the current directory I'm in, not the current directory of the batch file that's actually calling it. I don't want to hardcode the path into the batch file since it's mobile and could be run from different folders so I was wondering how can I fix this?

I am assuming you got a ClassNotFoundException?
echo the command your batch file is running to this forum and then I'll be able to help you

Similar Messages

  • How can I add an iPad app to my library without an iPad?

    Hello,
    As part of the App Store's 5th anniversary, the Traktor DJ app for iPad is free, possibly for a short time only. I currently don't have an iPod, but I would like to add the for-now-free iPad app to my library, just in case I later acquire an iPad. How can I do so?
    (I know that the Traktor DJ app for iPhone is available, but I want to secure ALSO the iPad version.)

    Download the app in the App Store in iTunes on your computer.
    Open iTunes on your computer, go to the iTunes Store, search for that app, and download it. If it can be synced to your iPod, it will be if you select it to sync. Otherwise, it will be on your computer until you can sync it to an iPad

  • How can i make my java app auto reconnect to Oracle.

    Scenario:
    when i am working with my java app if suddenly Oracle server connection unplugged. Then i got some problems regarding database.
    When they replugged the connection, i need to restart my app again. Then it works fine.
    Question:
    When the database is replugged or restarted, then how can i reconnect to the DB automatically with out restart my app. Please letme know is there any auto reconnect process is there for Oracle.

    If you want your application to reconnect, you would need to add logic that catches the exception that gets thrown when the connection is lost and tries to reconnect.
    Justin

  • I have an itunes account without credit card.How can I add a credit card to my account? Also, is there a way to buy apps without credit cards but via app store? Also, I want to download it directly to my iPad, can I do it even if i add credit card via pc

    I have an itunes account without credit card. How can I add a credit card to my account? Also, is there a way to buy apps without credit cards but via app store? Also, I want to download it directly to my iPad, can I do it even if i add credit card via pc?

    Changing Account Information
    http://support.apple.com/kb/HT1918
    Apps Store FAQ
    http://support.apple.com/kb/HT4461
    iTunes Store FAQs
    http://support.apple.com/kb/ht1689
    http://www.apple.com/support/ipad/applications/

  • If i have downloaded ( different ) apps in two iphones how can i add new apps in either of them without losing the older ones?

    i have two iphones 3g one at 4.1 and other at 3.1.3.....i have downloaded through itunes 30 apps in one and 55 different apps in other .......now how can i add 10 more apps in either of them without losing the previous apps .....if i don't have the previous apps downloaded now in my laptop..................?

    You can download the Apps on other devices by logging into the App Store with the ID you downloaded the App with

  • How do I read a properties file in WEB-INF without hard-coding a path?

    Hello,
    How do I read a properties file in WEB-INF without hard-coding a path?
    I tried:
    Properties properties = new Properties();
    properties.load(new FileInputStream("db.properties"));
    driver = properties.getProperty("driver");
    but it cannot find the db.properties file.
    Thanks for the help.
    Frank

    Don't use a File to read those properties.
    Better to use the servlet context and
    getResourceAsStream() method to get the InputStream.
    It'll look for any file in the CLASSPATH. If you put
    that properties file in the WEB-INF/classes directory
    you'll have no problems, even if you deploy with a
    WAR file.Completely agree with this approach. Just have to mention the following for completeness
    according to the API,
    "This method is different from java.lang.Class.getResourceAsStream, which uses a class loader. This method allows servlet containers to make a resource available to a servlet from any location, without using a class loader. "
    So using this method, the resource can be anywhere under your web context, not just in the classpath.
    Cheers,
    evnafets

  • My computer where my itunes library is stored is no longer accessible.  how can i add songs to my ipod nano without losing the songs already on it.

    The computer where i have my itunes library is no longer accessible.  How can I add new songs to my  Ipod nano without losing the song already on it?

    You will need that library copied from the old computer. If not, then you can take a look at this in getting 3rd party software to recover your library from the iPod. Syncing to a "New" Computer or replacing a "crashed" Hard Drive

  • How can I add new games without overwriting the old ones?

    I have just purchased two new games in the itunes store and although they are showing in the library (under applications) my previously purchased games are not. In Summary under games it will not let me choose selected games only 'all games' and when I press sync warns that the existing games will be replaced. How can I add these games without deleting the older ones? Also if I did want to remove a game from my ipod how do I do it?

    hardlyquinn wrote:
    Part of the problem is that I can never sync the whole thing as I dont keep all my music in my library (it seems silly to have my enture cd collection on the computer).
    Clearly it ISN'T silly as it avoid issues like you are having right now. If you need more space, get an external hard drive. To me it is much sillier to only have your stuff on the iPod and no where else as the iPod, as a small portable player, is much more likely to be dropped, lost, damaged, stolen, forgotten somewhere, etc.
    While I am not familiar with the use of games on the iPod (I have never bought any) you can switch the iPod to manually manage and then you can add content to your iPod without losing what is already there. Perhaps it works for games as well.
    But long term, I strongly suggest you keep all your stuff in your library so if you need to (you have to perform a restore on the iPod, you lose it and buy a new one, etc.) you can very easily sync it all back to the iPod when needed.
    Good luck,
    Patrick

  • How can i add my outlook email to my ipad without useing the Exchange Service?

    Please help me in this, How can i add my outlook email to my ipad without useing the Exchange Service?

    I'm afraid you've posted in the wrong place. This is a technical forum around a particular product called 'SharePoint'. This does talk to Exchange and Outlook in places but we don't specialised in either of those. You should have a look for one of the
    generic Outlook support forums or contact your IT department if it's a work related account.

  • How can I add iCloud to mail without it choosing mobile me?

    How can I add iCloud account to mail without it choosing mobile me?

    Please always state your operating system when you have a question. Presumably you have Snow Leopard or Leopard - system too old to have heard of iCloud.
    Please follow the steps outlined in this illustrated article:
    Entering iCloud email settings manually in Snow Leopard or Leopard

  • How can i add videos,movies and tv shows episodes to my ipod nano?I want to know whether i can directly add them through my pc or not without downloading them from i tunes store?

    how can i add videos,movies and tv shows episodes to my ipod nano?I want to know whether i can directly add them through my pc or not without downloading them from i tunes store?

    Yes, you can add your own videos to iTunes, then sync them to your nano, subject to supported max resolution limit and file type.  The specs for the 7th gen nano says (I don't know which nano model you have), Video Format Support
    "H.264 video: 720 by 576 pixels, 30 frames per second; Baseline, Main, and High-Profile level 3.0 with AAC-LC audio up to 256 Kbps; 48kHz; stereo audio in .m4v, .mp4, and .mov file formats
    MPEG-4 video: up to 2.5 Mbps, 720 by 576 pixels, 30 frames per second; Simple Profile with AAC-LC audio up to 256 Kbps; 48kHz; stereo audio in .m4v, .mp4, and .mov file formats"
    http://www.apple.com/ipod-nano/specs.html
    (earlier nanos have lower max resolution limits)
    So, "HD" video is too high resolution, so iTunes will not sync such videos to the iPod (although they play in iTunes).  If you are asking how to set up iTunes to sync videos in general (regardless of source), please post back.

  • How can i add songs to a family members ipod without erasing existing songs

    How can i add songs to a family members ipod without erasing her existing song list.

    For future reference, since I came here for the same reason, I'd like to add to the solution.  The link was not complete in explaining how to, but then again I'll just trying to attempt to fill in the gap.
    After opening iTunes, on the upper left hand side is a small icon with an arrow pointing down. Click on the arrow and a menu pops out.  Click on "Show Menu Bar."  On the new bar(Older iTunes File, Edit, View, Controls, etc. bar at the top).  Click on View and then Show Side Bar.  There you can just click and drag new songs into your iDevice without any problems... hopefully...
    Seriously, this helped me, so if Apple finds a way to not allow me to do this simple task of adding purchased songs into my idevices from another computer, I'll have to resort to other means.
    The one idevice that's having trouble with is my iShuffle(2nd). 

  • ICal Lion is infuriating. How can I add a new event in a chosen calendar without having to create it in my default then edit it?

    iCal Lion is infuriating. How can I add a new event in a chosen calendar without having to create it in my default then edit it?

    We are all entitled to our own opinions. So I respect you there brother
    But then again, Apple has its own basis. iOS is what's selling like pancakes not Macs, so if the gazillions out there are using iOS device and have gotten used to the calendar in their iOS devices. Wouldn't you think it made sense if Lion has the same calendar look and feel?
    Everything was considered and weighthed when they developed Lion. They even mentioned it in the press, They were blown away with the success of iOS so they are extending it to OSX.
    Quite frankly, I like the old iCal but yeah I don't expect anything in SL to stay in Lion otherwise it'll be another Cat name related to Leopard
    People should start looking at this perspective and not get STUCK in the old OS.

  • How can i add an external hard drive to my time capsule

    How can i add an exteranl hard drive to my time capsule

    yes, plug a USB drive .. correctly formatted.. in.

  • How can I add the hard drive icon to the menu bar on a MBPr

    How can I add the hard drive icon to the menu bar on a MBPr?  I have downloaded Google Earth and it wants me to drag it to the hard drive for install. I was able to display the icon but now I would like to put it on the menu bar. Is this possible? Or can I add it to the hardware section under system preferences?
    I'm a new Apple user, coming out of the dark ages of a lifetime in the PC Windows world.
    Thanks

    It's on your Desktop, is it not? You cannot put it on the menubar through OS X although you may find third-party utilities that will. If you want it on the Desktop:
    Select Preferences from the Finder's Finder menu and check the desired boxes:
    Click on the Sidebar icon in the toolbar to set what you want displayed in the Sidebar.

Maybe you are looking for

  • Mail takes a long time to send messages

    After a power outage in my neighborhood and being given new incoming and outgoing mail servers by my ISP -- AT&T and it's Yahoo portal -- Mail is taking a long time to actually send messages after clicking the send button -- a minute or two. Thunderb

  • How do I get the Flash site to work on the server

    Hi, I'm a beginner working with Studio 8. I have the Flash site working as desired from my desktop, but I have issues once loaded to the server. Hopefully someone here can point me in the right direction. Firstly, I would like the site to work within

  • Problem in Capturing Item text (BAPI_PO_CREATE1 )

    HI  Experts I have a problem with the BAPI BAPI_PO_CREATE1 for  PO creation. When I pass the values to the BAPI and passing Header text in the table I_PO_HEADER_TXT and Item text in the table I_PO_ITEM_TXT. But after the execution of BAPI    I_PO_HEA

  • ERP system to accept tickets from more than one source

    I have the following scenario. My back end ERP system accepts tickets from my EP. The EP cert is imported into ERP. I want to enable SSO between CRM and ERP. CRM does not interact with the EP. Can I have more than 1 certificate imported and added to

  • How to create BSP application

    I have created abap report. I want to convert it to BSP application. Could you please provide some guidelines or sample sites to create BSP or to convert abap report to BSP applicaton thanks