Do I always need -cp / CLASSPATH to start my program ?

Hello
Do I always need to set CLASSPATH or use -cp in order to launch a Java application ? I mean do I always need to know what the application installation directory is in order to start it ?
Is there no way to launch the application with just the class name, like with `java net.grinder.Grinder´ in a way does not require me to know where the application binary files are ?
Is there no kind of local registry or repository of installed Java classes, that the launcher (`java´) could use ?
Thank you,
Timothy Madden
Edited by: user11082954 on Dec 12, 2011 7:49 AM

Yes, you need to specify the classpath, since that is where the JRE will look for classes which are supposed to be loaded.

Similar Messages

  • AVCHD clip's always needs to get rendered when inserting. Media info about .mts file attached

    Hi
    I have previously discussed this problem in another thread. I have .mts files that I insert in a project (project preset set to PAL-AVCHD Full-HD)....when inserting i always need to render the clips and as many peole have mentioned, this should not be needed, instead PrEl should take care of this by itself..and it really sunds weird if it doesnt...
    So, why is this happen...i get so frustrated when I have to re-render the clips all the time, since also - it takes a looong time for jsut tiny tiny clips ? I posted the hardware specs I have two days ago in this same forum, and it looks from the answers I got that this hardware should be enough for not having to wait several minutes to jsut add a 6 second AVCHD clip ?
    Please look at below image that is a screenshot from MediaInfo about the details for my .mts file I'm trying to add - resulting in new rendering needed, plus the fact that it takes about 5 minutes to render it ??
    Please, suggestion or solutions ? I'm lost...I got feedback yesterday that this is a known problem with both PrEl 8 and PrEl 9 ..that AVCHD clips needs to get rendered manually when they are added....i.e a known bug in these versions ?? Any experience ? How can I move forward, I have problems to understand that such bug should exist without anysolution and/or workaround since I see this as a feature that MUST work for people not getting crazy :-)
    MediaInfo screenshot (click on image to get it to look better) BR /Helmut

    Hi Neale
    many thanks for your time trying to help me out.....
    Please see my answers below in bold, hope you and/or someone else can help me with some further answers
    Are you opening a project created in PRE8 with PRE9? If yes, that is the most likely cause of the problem. Create a new PRE9 project and see if the same problems after you import the clip and save the project. No, I'm only working in Pr 8.0 - I have this problem as soon as I add a clip..not that into the different formats, just know that the best possible output from my camera (Canon HF10) should be AVCHD..thats why I added teh detailed info from "MediaInfo". can you tell from that info I'm correct, i.e that the .mts file is really AVCHD as expected ? Just to help me confirm that. So, I havent been using PrEl 9.0...another person two days ago told me that PrEl 9 also got similar problems as I reported for my PrEl 8.0 ?
    When you first added the clip to your project did you receive any messages that the file was not suitable for the format? If so did you accept the offered preset? If you didn't start a new PRE9 project and this time accept the offer. No, I did not get any messages as all about the format. Occasionally I get something like "Do you want to fix the quality in the clip" ..cant recall exactelly what the message is, but its for sure nothing about the format
    When you put it into the project, did you have a red line running the length of the timeline? If you do then your preset is not correct (this is purely PRE9. PRE8 always required rendering AVCHD footage).Yes, always when I add a clip I get this red line. If I understand everything correctly this means I have to hit ENTER key to create a preview file....thats my second problem - as soon as I do that, it renders the clip very very slowly although I should have prety good hardware (According to spec posted two days ago).
    So, as a summary. Do you think that buying Premiere Elements 9.0 should get rid of this problem when adding AVCHD ? If that is the case, I feel I just want to be sure about this and that I will not experience the problem again. Can it not just be some setting that is, by default, not correct in Premiere El 8.0 that is causing this or is this really a known bug without fixes available from Adobe?
    Best Regards
    Helmut

  • Always need Disconnect power, press the power button wait for 10 seconds...

    I bought a HP computer for a couple of years ( Pavilion a6695it  ) It always works well. But in recent days, I can not start up it. I tried pressed power button on the front of the computer, nothing happend. Then I searched in hp site. finnally, I find this article http://h10025.www1.hp.com/ewfrf/wc/document?docname=c00241069&tmp_task=solveCategory&cc=it&dlc=it&lc...
    In english version the article is here: 
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=bph06788&cc=us&destPage=document&lc=en&product=3...
    Power supply light is on or flashes
    Perform the following steps, in order, until power is restored or it is determined that there is a hardware failure:
    CAUTION:This product contains components that are easily damaged by ElectroStatic Discharge (ESD). To reduce the chance of ESD damage, work over a non-carpeted floor, use a static dissipative work surface (like a conductive foam pad), and wear an ESD wrist strap that is connected to a grounded surface, like the metal frame of a PC.
    Disconnect everything from the computer, including the power cord.
    With the power cord disconnected , press the power button on the front of the computer and wait for ten seconds.
    This is work for me. But now, my computer always need this methond that it can be started up.
    Disconnect power -> press the power button and wait for ten seconds -> then the system will  start up
    So my question: where is the problem? Which part is broken and i should replace? Thanks.
    regards,
    Youli
    This question was solved.
    View Solution.

    Hello youlichika,
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I understand that you are not able to power on your desktop, and I would be happy to assist you in this endeavor! 
    In following the document for Troubleshooting Power Supply Issues, were you able to follow steps 3-9? If so, what were the results?
    If you have come to the end of the document, and you still have to drain the power from the computer to power it on, you can find a replacement part (5188-2627) through one of the sites available by following this link.
    I hope this helps!
    Best Regards   
    MechPilot
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks” for helping!

  • HT204146 My MacBook Air is always telling me that my start up disk is full or fairly full. Will iTunes match alleviate this problem? I have an iCloud account.

    My MacBook Air is always telling me that my start up disk is full or nearly full. Will iTunes match alleviate the problem of storage on my Hard Drive?  I have an iCloud account.

    It could, but I wouldn't.  You really need two external hard drives (one to act as a backup for the other one).  Relocate your entire iTunes library to the external drive unless there are things you would prefer to simply archive (movies you don't need to watch everyday).
    FAQ: Why iTunes Match Can Not Be Used as a Backup - https://discussions.apple.com/docs/DOC-4112
    Using Match as a backup for iTunes - https://discussions.apple.com/message/17039436#17039436
    To move a library if you use iTunes' default preferences settings:  Copy the entire iTunes folder (and in doing so all its sub-folders and files) intact to the other drive.  Hold down the option (alt) key (shift on Windows) and open iTunes.  At the prompt to create or choose a library choose the copied iTunes folder.

  • Need to start a program in Oracle System (External) from sap program

    Hi guys,
         I need to start a program in another oracle based system from sap program by writing native sql statements.
    Does anyone have idea how to do this.
    Rgds,
    Ram

    Hi,
    Here is another sample for procedures.Kindly reward points by clicking the star on the left of reply,if it is useful.
    Code Sample for writing a procedure with input and output parameters
    REPORT zzz_jaytest.
    * Getting the regno and total as input parameters
    PARAMETERS : p_regno(10) TYPE c DEFAULT 'R1000',
                               p_total     TYPE i.
    data : v_total type i.
    * In this procedure, we are updating the total of a regno given as input.
    * Here two parameters used in the procedure are input parameters.
    * We are updating the record of regno entered in selection screen and
    * adding the total entered to the already existing total. We have to give semicolon
    * for the statement inside procedure.
    exec sql.
    CREATE or replace PROCEDURE PROC1 ( p_regno in char, p_total in number )
    IS
        BEGIN
          UPDATE stu_det SET total = total + p_total where regno = p_regno;
        END;
    endexec.
    * This is the code to execute the procedure for update.
    * While executing the procedure, the parameter variable should be
    * preceded with colon  :
    EXEC SQL.
      EXECUTE PROCEDURE PROC1 ( in :p_regno, in :p_total )
    ENDEXEC.
    * In this procedure, we are selecting the details for the regno entered
    * as input. Here p_regno is input parameter and v_total is used as output
    * parameter. So that we can use the retrieved value of v_total in our
    * ABAP program
    exec sql.
    CREATE or replace PROCEDURE PROC2 (p_regno in char, v_total out char)
    IS
        BEGIN
          select total into v_total from stu_det
                             where regno = p_regno;
        END;
    endexec.
    * This is the code to execute second procedure.
    EXEC SQL.
      EXECUTE PROCEDURE PROC2 ( in :p_regno, out :v_total )
    ENDEXEC.
    write : / 'Total of ', p_regno, ' is ', v_total.

  • New to Mac - do I need to create a start-up disc?

    Hi
    I've recently switched over to an iMac from PC - I've worked with macs but I didn't have to deal with back-ups myself (they were all networked)
    I have an external HDD which uses Time Machine to back-up - I did hope to use that as back-up and keep a stash of stock photos (large file!) on there too but I've heard that it's not a good idea to do that (even if I partitioned the drive)
    My main issue is that I've heard that the back-ups cannot be used as a 'start-up' disc in case something happens to the iMac - so can someone let me know how I should go about doing this? (I didn't get any discs with the iMac so what do I do if something does happen?)
    and while I'm asking questions... do you think I should get another external HDD? one to use for photo storage etc (I work professionally with Photography so they are large files) and then use the other for time-machine?
    can you use a smaller sized HDD for time-machine? (the external drive I have now is 500GB -
    Model Name: iMac
    Model Identifier: iMac8,1
    Processor Name: Intel Core 2 Duo
    Processor Speed: 2.8 GHz
    Memory: 4 GB
    Hard Drive 320GB

    I've moved over from a PC to a MBP since May, and have dealt with similar backup issues concerning backups of software projects (also large files) daily. So I can share my thoughts and experience here.
    1) I would keep the photo file originals on a separate external USB HDD (not the Time Machine backup) with Read-Only attribute. When I copy files from my Mac to an external disk drive, I think it automatically takes on an archive attribute (read-only). With Leapord 10.5, I think that drive can even be in NTFS format (as used by Windows XP & Vista).
    Since HDD eventually fails, I would, over time, back up these high resolution photos on Dual density (8GB) DVDs.
    Because it'll probably take too many DVDs to back up al the photos, an easier option is to purchase an external backup drive systems that automatically back up a copy of your data on its own separate physical HDD package inside the same box. At the minimum, the box would actually contain two identical size HDD, but you get to use only one. The second drive is for the automatic backup. These boxes are called RAIDs, and a decent one will notify you when it detects a disk error on any one of the two drives so you can preventively replace the faulty drive to give your data full protection. The best I've seen cost $800 list for a TeraByte of protected disk storage. This box actually uses multiple data redundancy schemes to give you flexibility in buying HDDs as your need grows, but you do need to start with at least two drives for data protection. See...
    http://www.drobo.com/WheretoBuy/Index.html
    A review of its abilities and limitations was published on ZDNet..
    http://blogs.zdnet.com/Ou/?p=508
    The author of the review called himself his first review harsh, and I agree since the limitations was due to physics and user selection of disk drives that were installed, no design.
    2) For any photo files that I am manipulating daily, I would keep them on my Mac so that Time Machine so that every revision I make is backed up.
    As far as whether you need to create a start-up disk, I believe the answer is no. From Apples own online documentation, you can recovering your Mac installation from Time Machine. I understand that if you allow Time Machines to back up up everything (default setting), the procedure to full system recovery is:
    1) Reformat the boot disk and restore MacOS X from the CDs that came with the computer.
    2) Connect the external Time Machine backup drive, bring up Time Machine and restore. You can find the details by searching the Time Machine discussions. I saw some users even tried the procedure out for real.
    I've consider using one of the many backup software to back up a full disk image of my Mac, so I re-install my Mac with that disk image. The problem with this is it's a duplicating backup scheme: twice the amount of work and cost. And when the mac crashes, which one backup do I use?

  • Unable to boot normally - Always need to boot with Single User Mode

    Hi Community,
    Since last few days, I am unable to boot my Macbook Pro normally, running latest version of OS X Yosemite. When I boot, it goes to grey screen with Apple logo and progress bar, once the progress completes to 100% (after 5-10 minutes which is very longer than usual), it asks me to 'Select  language' which seems like fresh installation of OS X. In that case, when I click next and it doesn't detect my SSD (blank list of select installation disk/drive).
    After reading some threads, I found work-around and always need to boot into Single user mode (by pressing Command+S during power on) and then need to run following commands...
    /sbin/fsck -fy
    /sbin/mount -uw /
    "device is write protected" numerous times
    reboot
    and then only it loads OS X and displays login screen. This happens all the times and I need to follow above steps always to get login screen.
    How can I fix this?

    Please help me out here. I tried booting it off a USB flash drive with ATV flash but that gave me some errors and prompted me to login with username [email protected] with password frontrow
    But I am not sure how to get to login using a suitable input. I tried to telnet it using my PC over network but I dont think it has initialized anything (like wifi or network) at the prompt. Would it take USB keyboard input? All I can do is remove the power and restart it with the usb flash out and get into then get into the recovery loop. I am not sure replacing the hard-drive would help. Any help would be greatly appreciated.
    Thanks
    Sinu

  • Does an external hard drive ALWAYS need to be connected to my mbp with retina display for Time Machine?

    Does an external hard drive ALWAYS need to be connected to my mbp (OS 10.10.1) with retina display for Time Machine? Or can it be connected once a week or whenever I want? I used to have an external drive always connected to my previous mbp, but it made moving my mbp around a bit of a hassle with it connected...

    When the backup drive is not connected, some of the free space on the internal drive will be used to make local snapshots, which are backup copies of recently deleted files. Local snapshots will protect you from unintended file deletions, but not from a drive failure. You should only go as long between backups as you're willing to lose data. If losing a week's worth of work is acceptable to you, then that backup frequency is OK. Otherwise, it isn't.

  • Firefox have some promlems and it block when is opeining hotmail, in my laptop always have that problem, so i need check my email using another programs...that problem is in my laptop or it´s a problem of navigator??

    Firefox have some problems and it block when is opening hotmail, in my laptop always have that problem, so i need check my email using another programs...that problem is in my laptop or it´s a problem of navigator??

    I know you can't help with my Yahoo problem, however, apparently at some time in the past I have went to the Sync and tried to figure it out on both my laptop and my desktop, because I have the long snyc key information. However, when I go to try to sync both computers I never get the box to enter that key on either one. That is my problem. So should I try and get a new sync key and see if that works.

  • Which 'Values' need to Export in START-OF-SELECTION for Hotspot

    I develop a small Test Report for Hotspot, and it's working fine.
    Actually, Here - Error is at START-OF-SELECTION.
    I tried many combinations for passing the Parameters but It's Not Working.
    Which 'Values' I need to Export ?
    START-OF-SELECTION.
      CREATE OBJECT lr_details.
      lr_details->data_gathering( ).
      IF gi_final IS NOT INITIAL.
        lr_details->display_alv( ).
        lr_details->on_double_click( EXPORTING row = ? column = '?' ). " ?
        lr_details->on_link_click( EXPORTING row = ? column = '?' ).     " ?
      ELSE.
        MESSAGE 'No Data for the Selection Critaria' TYPE 'S' DISPLAY LIKE 'E'.
      ENDIF.
    Here row & column are obligatory fileds - I need to pass the Values
    (I am already passing the Values with Form get_aufnr_info.)
    I try with Hard Coding row = 1 & column = 'AUFNR'
        lr_details->on_double_click( EXPORTING row = 1 column = 'AUFNR' ).
        lr_details->on_link_click( EXPORTING row = 1 column = 'AUFNR' ).
    One may find it Silly, But in this Case - Hotspot is not working & when I go for 'BACK' it's showing IW33 (req. Tcode).
    The Complete code for HOTSPOT is as follow.
    METHODS:  data_gathering,
                  display_alv,
                  on_double_click FOR EVENT double_click OF cl_salv_events_table IMPORTING row column,
                  on_link_click FOR EVENT link_click OF cl_salv_events_table IMPORTING row column.
    METHOD on_double_click.
        PERFORM get_aufnr_info USING row column.
      ENDMETHOD.                   
      METHOD on_link_click.
        PERFORM get_aufnr_info USING row column.
      ENDMETHOD.
    FORM get_aufnr_info  USING row TYPE salv_de_row
                            column TYPE salv_de_column.
      IF column = 'AUFNR'.
        CLEAR: gwa_final.
        READ TABLE gi_final INTO gwa_final INDEX row.
        IF sy-subrc EQ 0.
          SET PARAMETER ID 'ANR' FIELD gwa_final-aufnr.
          CALL TRANSACTION 'IW33' AND SKIP FIRST SCREEN.
        ENDIF.
      ENDIF.
    ENDFORM.      

    Thanks Clemens & Lakshmi,
    But Here I am not taking a FieldCat and
    cl_gui_custom_container, "Detail container
    cl_gui_alv_grid        , "Detail ALV instance
    I am taking display as -->code
    DATA:  lr_table     TYPE REF TO cl_salv_table,
               lr_layout    TYPE REF TO cl_salv_layout,
               lr_functions TYPE REF TO cl_salv_functions_list,
               lr_columns   TYPE REF TO cl_salv_columns_table,
               lr_column1   TYPE REF TO cl_salv_column_table,
               lr_column    TYPE REF TO cl_salv_column,
               lr_events    TYPE REF TO cl_salv_events_table .
        DATA  : gr_events TYPE REF TO get_details.
        DATA: ls_layout TYPE salv_s_layout_key.
        ls_layout-report = sy-repid.
          TRY.
            CALL METHOD cl_salv_table=>factory           " call factory method of alv
    *        EXPORTING
              IMPORTING
                r_salv_table   = lr_table
              CHANGING
                t_table        = gi_final.
          CATCH cx_salv_not_found .
        ENDTRY.
        lr_functions = lr_table->get_functions( ).    " activate the alv funcationality
        lr_layout  = lr_table->get_layout( ).
        lr_table->display( ).
          TRY.
            CALL METHOD pr_columns->get_column
              EXPORTING
                columnname = 'AUFNR'
              RECEIVING
                value      = lr_column.
          CATCH cx_salv_not_found.
        ENDTRY.
        lr_column->set_long_text( text-006 ).
    I already developed Reports With FIELDCAT(set_table_for_first_display) with double_click
    And also created a small Test Report where I am taking double_click in CLASS DEF.
    Both are working.
    But when I am using double_click in Reports with  START-OF-SELECTION it's not working. -
    If I need not Use double_click in START-OF-SELECTION, THEN HOW I SHOULD CALL IT ??

  • Iphone 5-updated to ios 7.0.2 keeps freezing in lock screen.I always need to restart or should wait till a phone call come to unlock the screen. Does any body have the same issue??

    Iphone 5-updated to ios 7.0.2 keeps freezing in lock screen.I always need to restart or should wait till a phone call come to unlock the screen. Does any body have the same issue??

    I do have the same issue with my 4s after updating.tried with restoring several times,but the problem still persists.....

  • My zen neeon 5gb always needs to be formatted everytime i connect

    i have a zen neeon 5Gb with no travel charger ( not bundled)
    so i usually charge it with my pc's usb, but my neeon always like corrupted everytime i need to re-charge
    the "corrupted" status is like i can't access it from windows explorer, and my windows hangs everytime i connect my neeon
    so what i did is always put the neeon into recovery mode and format the firmware again,then the problem's solved
    but i always need to did this almost everytime i connected it to my pc, which makes i need to copy all my mp3s again
    and again everytime i want to charge it...
    this is very tiring..helps please...

    Welcome to the Apple Community.
    Intermittent problems are often a result of interference. Interference can be caused by other networks in the neighbourhood or from household electrical items.
    You can download and install iStumbler (NetStumbler for windows users) to help you see which channels are used by neighbouring networks so that you can avoid them, but iStumbler will not see household items.
    Refer to your router manual for instructions on changing your wifi channel or adjusting your multicast rate.
    There are other types of problems that can affect networks, but this is by far the most common, hence worth mentioning first. Networks that have inherent issues can be seen to work differently with different versions of the same software. You might also try moving the Apple TV away from other electrical equipment.

  • When I try to upgrade and install to iOS 5.1, error message prompt "operation stop running". I have tried several time but failed. Also, would like to know why always need to have wifi access in order to upgrade the version of iPad iOS, why not 3G ?

    When I try to upgrade and install to iOS 5.1, error message prompt "operation stop running". I have tried several time but failed. Also, would like to know why always need to have wifi access in order to upgrade the version of iPad iOS, what is the purpose of 3G then? This is really nonsense using wifi + 3G iPad. need help ! Thanks.

    The file is too large to download via 3G. There is a 20MB limit with 3G. The purpose of having 3G is that you have internet access everywhere and do not need to be near a WiFi hotspot or network.
    Not every single thing that you do every single minute of the day on the iPad involves downloading files larger than 20MB. You can surf the internet all day long sitting out in a park somewhere with 3G - but not with a WiFi only iPad - unless you use a hotspot with it.
    Try turning off your firewall and anti virus software while you try to download the iOS update.

  • My daughter is a college student. she needs to write and compile c programs on her mac for a class this semester. what is the best place for her to start to get the correct compiler etc. to use ? thanks

    my daughter is a college student. she needs to write and compile c programs on her mac for a class this semester. what is the best place for her to start to get the correct compiler etc. to use ? thanks

    If you know that you will not be asked to design GUI interfaces, and the C programming course will adhere to command line compilation environments, then get the Xcode command-line developer tools, and skip the extra complication of Xcode until you absolutely need it. Apple has kicked GNU C to the curb and is rightly so, using Clang/LLVM compiler technology.
    Sign up for a free Apple Developer account using your Apple ID, and then visit the Mac Dev Center, and towards the bottom of the page, you will see additional downloads. Click on the associated, all down loads link. Know your OS X version beforehand, as the command-line tool releases are tied to general operating system versions, and the most recent Xcode version.  That said, there are currently two March 9, 2015 command-line tools for Xcode 6.2 — one for OS X 10.9 Mavericks, and the other for OS X Yosemite.

  • Need to change to starting dates of employees

    Hi All,
    I need to change the starting dates of two employees from apr-2012 to apr 2008, now if i end date the employee, how can i change the dates
    Regards,
    Sajid

    If I understand your goal, you may change the latest start date. You must be in the earliest person record to do this, but you can enter a new date in that field and save. It will change the accompanying assignment and salary records. However, if you do this any data on the records will have to exist as of the earlier start date. Work structures, for example, have to be dated early enough to accomodate this. If you are using Benefits and life events they will have to be reprocessed. There may be other things connected to the person record and hire date that have to be considered before doing this.

Maybe you are looking for

  • Adobe CS3 Windows 7 installation says does not meet minimum requirements

    I am trying to install Adobe Creative Suite 3 Design Premium on a brand new Windows 7 machine (32-bit). It is a downloaded copy from Adobe's website. When I start the install process, it takes me to the "Options" Screen and will not let me install Ph

  • Data is not uploding for the following code in bdc

    DATA:   bdcdata LIKE bdcdata    OCCURS 0 WITH HEADER LINE. *       messages of call transaction DATA:   messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE. *       error session opened (' ' or 'X') DATA:   e_group_opened. *       message texts TABLES:

  • Mandatory Fields for IDOC ORDERS01 for Pricing Condition EDI1 to trigger

    Hi , I'm Testing an Inbound ORDRSP using we 19  for Pricing Conditions EDI1. What are the Mandatory Fields for IDOC ORDERS01 Thanks

  • Insert comment in Table cell/row

    Is it possible to enter a comment in a specific table cell? When I try it only enters a comment for the whole/entire table. Thanks.

  • Payment Terms / Account Postings

    Hi All, I need your help to resolve this issue. I am giving an example here for the scenario. Original invoice £100.00 plus VAT of £17.50 = £117.50 Customer gets 5% discount for early payment They pay £117.50 less 5% = £111.62 (ie £5.88 discount) The