How can I compile program which uses packages?

Hi,
I'm building a program using JBuilder9. I can successfully run using that IDE, but after I try to run it manually (run class file which compiled from JBuilder) by typing "javac myMainClass" it cannot find serveral packages which I put those packages' folder on the same root directory of myMainClass. Thank you.

Man, you should probably read the following:
http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html
Anyways, the first thing to do is to determine the current value of CLASSPATH (that is a system variable and it depends on your OS how you change/get its value).
Next thing is to determine WHAT you need to add:
For each used package check if its (root directory/jar) is in your CLASSPATH. If not add it, e.g.
- you have a package my.test.package in C:\temp\myJar.jar then add C:\temp\myJar.jar
- you have a package my.test.package in C:\temp, i.e. your fs structure is C:\temp\my\test\package, then add C:\temp
For beginners, it's usually a good idea to have your CLASSPATH contain a dot (".") ...

Similar Messages

  • How can I execute program after using F4_Filename function?

    Hi all,
    I'm a new user on the forum. I've been working with ABAP and SAP for a few weeks. I wrote a program for importing data from excel file to SAP using BDC. During searching this forum I found information about F4_Filename function which allows users to browse the disc for a file. I'd like to add this function to my program. I have a parameter for a file name but this is an ordinary static string field. When I added the code which I found in the message on this forum the rest of program doesn't execute.
    This is simple program for example:
    REPORT  Z_TEST8_AB.
    DATA f_name TYPE STRING.
    PARAMETERS p_file like rlgrap-filename DEFAULT 'c:\test.xls'.
    f_name = p_file.
    write:/ f_name.
    This program works correctly. There is a field for parameter. I can change the default name for a file.
    After all, I can run the program (F8) and rest of the code is executed. The field for parameter dissapears from the screen and the file name is displayed. ( command write)
    Now I added a function F4_Filename
    REPORT  Z_TEST8_AB.
    DATA f_name TYPE STRING.
    PARAMETERS p_file like rlgrap-filename DEFAULT 'c:\test.xls'.
    at selection-screen on value-request for p_file.
      call function 'F4_FILENAME'
           exporting
                program_name  = syst-repid
                dynpro_number = syst-dynnr
                field_name    = 'p_file'
           importing
                file_name     = p_file.
    f_name = p_file.
    write:/ f_name.
    I can browse a computer for a file now but after selecting the file I can't run the rest of the code. When I click on the icon or press key F8 the field for parameter doesn't dissapier and the command write is not executed.
    What do I do wrong?
    Could anyone suggest me a solution? How can I executed the code after using this function?
    Thanks in advance.
    Regards,
    Arek.

    Hi arkadiusz,
    1. simple
    2.
    <b>start-of-selection.</b>
    f_name = p_file.
    write:/ f_name.
    regards,
    amit m.

  • How can i compile the program?

    hi,everybody:
    I have a program which include the next statments:
    public void println(boolean flag)
    throws IOException
    Object obj = lock;
    obj;
    JVM INSTR monitorenter ;
    print(flag);
    newLine();
    obj;
    JVM INSTR monitorexit ;
    break MISSING_BLOCK_LABEL_26;
    Exception exception;
    exception;
    obj;
    JVM INSTR monitorexit ;
    throw exception;
    how can i compile the program?
    thanks

    Hi,
    I'm trying to figure out how to use this decompiler, I have downloaded it to windows 2000 platform and it unzips to 1 file with extension "1-bin" - OS doesn.'t know what to do with and neither do I ;) - I'm starting out on something here and this tool would be useful.
    Thanks for any install instructions you might have.
    mufc1999
    Hi,
    I've had a similiar problem with decompiling certain
    classes. Try the following decompiler,
    http://jrevpro.sourceforge.net, after using this one,
    the code decompiled fine, this tool is also a
    disassembler and quite a nifty one i might add. :)
    Hope this helps!
    Have Fun!

  • How can I import songs which are filed basis one album/compilation as one folder?

    How can I import songs which are filed basis one album/compilation as one folder?
    i can drag and drop one folder which is a proper album into itunes under playlist. if i drag and drop two proper albums into itunes it is also ok but if itunes does not know my own compliations and i drag and rop my 3000 folders in one shot into itunes i get only one playlist containing all songs.
    pleased to hear if anybody know how i can avoid to do 3000 times drag and drop a folder into itunes.
    rgds, alexander

    Before you begin the import, edit the properties of the tracks to set the Album Artist to Various Artists and Part of a Compilation to Yes.
    For more info. see Grouping tracks into albums.
    tt2

  • I have my personal music (not purchased from Itunes) stored in two locations, on my PC and on an external HD. How can I find out which directory itunes uses to access this music? I am using Itunes version 11.4.0.18. Thanks

    I have my personal music (not purchased from Itunes) stored in two locations, on my PC and on an external HD. How can I find out which directory itunes uses to access this music? I am using Itunes version 11.4.0.18. Thanks

    Many thanks JEM24 for your help.  Ive just spent the best part of six hundred pounds on a new Sony Rx100m2 compact camera, so I have no interest in the Ipods camera at all really. I doubt Ill be watching many videos on it as Im very lucky in that I have a good Android tablet. Its more as a stock music player that Ill be buying the Ipod for, if indeed I do end up buying one. I dont like the idea of paying the exorbitant amount added for more memory space that Apple along with most other companies charge. In fact I read an article on this very subject just yesterday in the tech section of Flipboard. It stated in the article that in the case of the Iphone  the actual cost of each additional  gigabyte of storage  to Apple et al is something in the order of 60p.. This is certainly not reflected in the price us the customer has to pay at the till.. Its for this reason primarily that Apple in particular, because their products do not allow adding expandable memory of your own in the form of cheap to buy cards, that nobody in their right mind buys the 64gig etc Iphones..I am aware that we are discussing my potential purchase of an Ipod Touch here but you see my point. Many thanks again though for helping me.

  • When printing in Excel It is always want to use the acrobat X pro trial, which the trial is expired. I do not want to use acrobat X pro trial anymore. How can I reset it and use simple acrobat to print my PDF document?

    When printing in Excel It is always want to use the acrobat X pro trial, which the trial is expired. I do not want to use acrobat X pro trial anymore. How can I reset it and use simple acrobat to print my PDF document?

    Hi screen name,
    Adobe PDF printer gets installed when you install Acrobat 10 Pro.
    To use this printer you need to purchase Acrobat. Once the trial period is over you cannot use the printer to create pdf files.
    An alternative way for you is to utilize Microsoft's own inbuilt pdf engine.
    You can simply open the file and select 'Save as' and in the type list select 'pdf'
    Please refer : http://office.microsoft.com/en-in/excel-help/save-as-pdf-HA010354239.aspx
    Regards,
    Rave

  • HT1338 HOW CAN I FIND OUT WHICH SERVER MY MAC IS USING?

    HOW CAN I FIND OUT WHICH SERVER MY MAC IS USING, KEEP GETTING MICROSOFT SQL SERVER ERRORS
    WHEN TYPING IN ADDRESS'S?

    If your computer is tied to a network, then there is a way to check. Go to System Preferences, and click Accounts. unlock Admin
    then you can click Login Options.
    under that, Network Account Server. This should show you what server your computer is tied to. If you aren't in the tech department, you could try asking them.

  • HT204053 how can i find out which id i used to purchase an app?

    i can't update iphoto, imovie and garageband cause it says "sign in to the account you used to purchase it" but those were pre-installed when i bought my iMac and i don't have a second id. what can i do or how can i find out which is the right account for these apps?
    thanks in advance

    I also have a linked problem like that. I bought various apps under different ids and now I don't know how to sign in - where to sign in under the emails that I bought them on so i can't update my Pages app.
    Can anyone help us please?
    Is there a way to put them altogether now under my apple id with icloud?
    Thanks

  • My dad has the original software and i can't install the program because my dad is in the US and I'm in the Philippines. Now, I asked the serial number of his adobe lightroom. How can I download the software using the serial number? thanks.

    My dad has the original software and i can't install the program because my dad is in the US and I'm in the Philippines. Now, I asked the serial number of his adobe lightroom. How can I download the software using the serial number? thanks.

    If you just need a copy of the software, then download the trial copy of Lr available from Adobe. On entering your serial number it will then become a full copy.

  • How can I unmark photos which are marked for republish to Flickr?

    I am currently using Lightroom 3 to publish photos to Flickr. I have a free Flickr account.
    My problem is that I have a set of photos I am publishing to flickr. For some reason some of my photos lost their keywords, only the files on my computer lost them, the photos on Flickr still have the keywords intact. Also I applied a colour code to a couple of the photos on my hard disk that are being published to Flickr.
    Now Lightroom has detected these changes and the photos appear under 'Modified Photos to repblish' the thing is the changes I made were either putting keywords back in that were already in Flickr anyway, and colour coding which makes no different to flickr. Because I have a free account if I republish the photos I will lose all the comments and stats on Flickr, so I don't want to republish them.
    Whenever I click the publish button I get a warning that republishing the changed photos will lose any information on flickr and I have the option to skip them, and just publish new photos. But if I ever do want to republish a photo I won't be able to do this without also republishing all the photos marked for republish.
    Is there any way I can remove these photos from the republish list?

    All,
    This is an issue with the LR programming, as it does NOT allow you to unmark images it feels need to be republished. Oftentimes it's only a matter of adding a keyword or tweaking the develop settings that triggers this. I for one wish that choice was available.
    Here's what you can do: simply disconnect from the Flickr service. Doing so will have NO detrimental effect on the images in Lightroom or the images you have already uploaded to Flickr. What you will lose, however, is the "library" of images that you have already uploaded to Flickr. Since this is really only a collection there's no harm. Besides, if you need to review which of your images have been uploaded to Flickr at a later time, just reference Flickr. Oh, you'll also lose Lightroom's ability to download any comments your Flickr contacts make on your uploaded images. If it's important for you have that data in Lightroom, rethink the disconnect option. After disconnecting, reconnect using the same parameters you had before. Your Lightroom/Flicker collection will be cleared of all previously uploaded images and you can begin adding new images to upload.
    Again, disconnecting has no effect on your Flickr content. However, if you REMOVE images from the collection using Lightroom, they will also be removed from Flickr. Please understand the distinction between disconnecting from the Service and removal of images using Lightroom.
    All that being said, republishing images from Lightroom to Flickr, in my experience, should not cost you anything in terms of number of views, favorites, comments, etc. It should be seamless.
    Judson Rhodes, Photographer
    www.flickr.com/jrcp/show
    www.judsonr.com
    Date: Tue, 29 Mar 2011 09:43:18 -0600
    From: [email protected]
    To: [email protected]
    Subject: How can I unmark photos which are marked for republish to Flickr?
    Hi,
    I'm using LR 3.2 and am having the same issue. I see that no one from Adobe has replied to this and that the previous reply was from August, 2010. There seem to be no answers to this one...
    I have several images that LR feels should be republished, and ONE image that I want to republish. I CAN'T republish just that one image though without republishing ALL the other images.
    Can someone (maybe someone from Adobe) help me with this? How can I simply UNmark the other images to not be republished? I do not want to remove them from the collection, but simply do not want to republish them at this time.
    Why can't Adobe simply ask us if an image should be republished or not? Why can't they allow us to UNmark an image to be republished once it's marked?
    Ideas??  HELP!
    Thanks!
    Steve
    >

  • I can only use version 4.0 for my online college classes so how can I go back to using version 4.0?

    I upgraded to version 5.0 but am unable to use because it is not supported with my online college platform. How can I go back to using version 4.0? If I do not find a solution I will have to find a new browser.

    I had the same problem (issue with Google Apps and XUL runner etc) of needing to downgrade. To pull it off I went to the main Firefox download page (http://www.mozilla.com/en-US/firefox/new/) and followed the link to OTHER SYSTEMS AND LANGUAGES which took me to a page that included a link on the right hand side to download Firefox 3.6.16.
    (The stuff below pertains to Windows. If you are on a different OS your steps will vary)
    To do the actual downgrade (and there may be some other steps that would be wise to take but this is what worked for me) I merely renamed "c:\Program Files\Mozilla Firefox" to "c:\Program Files\Mozilla Firefox bad" (in case I want to try troubleshooting the issue later) and then ran the "Firefox Setup 3.6.16.exe" file that downloaded from that link. That solved my problem and I'm back and running 3.6.16.
    In case you don't feel comfortable changing things in your Program Files directory you might try a different approach and try uninstalling via the Control Panel and Add and Remove Programs (or whatever it is called on the version of Windows you are on) and then running the installation file. I didn't go that route so I can't tell you how well that might work.

  • How can i transfer my rarely used applications and files so i can make room on my computer harddrive?

    how can i transfer my rarely used applications and files so i can make room on my computer harddrive?

    Well the applications you should leave alone as they install files elsewhere that are needed like preferences etc that won't be on the external drive if you attempt to run it from there.
    Some programs are completely self contained and will run just fine from a external drive, but applicaiton's are usually small.
    Now your user files! That could use some thinning for sure! Especially stuff you don't use that often and Video files which take up a lot of space.
    You can buy a external USB drive at any office / computer supply store and just plug it in and backup files via drag and drop.
    What happens when you plug in a drive is TimeMachine will pop up and ask to make it a TimeMachine drive, this just backups up everything on your computer to restore from in case your OS X or boot drive fails. It's a image of your drive and so whatever is on the boot drive is on the TM drive. So that doesn't server your purpose which is you want to free some space off your main boot drive.
    However you should get another drive and allow TM to do it's thing to that drive, also to make a hold option bootable clone of your boot drive (using yet another external drive) using Carbon Copy Cloner or SuperDuper so in case your boot drive fails you can quickly and easily boot off the clone and have a working machine right away.
    One of the posters here has a excellent instructions what does what, both should be used to backup your data.
    http://web.me.com/pondini/Time_Machine/Clones.html

  • How can I find out which .pst or .ost file itunes referres to when synchronising with outlook

    I´ve switched to iphone 4S from my 3Gs and would like to "clean" my itunes Sync before I use the new phone. Problem is, that the synchronisation with Outlook 2003 doesn´t work anymore. I guess the reason is that itunes refers to an old .ost or .pst file on my computer. I ve got several outlook profiles and changed from exchange to pop3. My question: How can I find out which .pst or .ost file itunes referres to?
    Thanks a lot in advance :-)

    Select the tune and then - Get Info - in the dialog box is a note of the Apple ID used to purchase.
    MJ

  • How can I turn my Mac using iTunes into an alarm clock?

    Here's my question: How can I turn my Mac, using iTunes, into an alarm clock?
    I want to be able to put my Mac to sleep but have it set up so that when it wakes up at the predetermined time iTunes will open and start playing the music I've selected....
    A "musical alarm clock"...
    A friend suggested using the Energy Saver option in Sys. Preferences to wake the computer at the right time. He said that then I could use iCal to start iTunes. I would then have to use an Apple Script to get iTunes to play the song I want.
    But is there a SIMPLER way to do this? Are there any programs out there that do this already??
    Thanks for any help....

    I recently got a copy of AlarmClock Pro from MacWorld UK. It is shareware, I think it is (USD?)19. I haven't had a chance to try it out much, but it does look quite good. I have an older version. The latest version looks even better.
    I'm sure there's plenty of freeware apps out there. You might also want to try looking here for an applescript here Doug's AppleScripts for iTunes
    p53

  • How can I remove a flag using a rule in Mail.app?

    I'm using Mail Act-On to flag messages that are important. I also have got a smart mailbox that displays only those messages that are flagged, this is my "To Do" mailbox.
    Once I've read and answered the message I want to remove the flag, preferrably via a rule using Mail Act-On as well. However in the rules dialog in the Mail.app preferences there's only the option to set a flag, not to remove one.
    Can anyone help: how can I remove a flag using a rule?? Maybe via Applescript as the last resort?
    Thanks for any advice Jan

    Hi Jan
    I haven't gotten around to put unread and unflag into Mail-ActOn but MailTags has the functionality. MailTags also allows you to mark a message unread via act-On rule.
    It is interesting to note that apple doesn't include unflag and unread as the rules were originally intended to apply only to new messages (of which none should be read or flagged) with that logic, there would be no need for unread, unflagg.
    @David: The reason to do it via Act-On rule would be to set up a sequence of events, one of which is to unflag, others may be to set keywords, move messages, set colors etc.
    Scott

Maybe you are looking for