Silly but easy question

Hey guys im pretty new to this whole thing and have created a small program (using a tutorial) in which to help further my understanding of java. I am currently using netbeans to develope java and in my program I imported a few packages. Having imported these packages such as java.util etc I then went to search for them on the pc and could not find them anywhere. Does anyone know where they would be located on the pc?
Thank you.

morgalr wrote:
gimbal2 wrote:
step 1: remove Netbeans. You are not ready for it yet.
step 2a: learn to compile and run Java applications through the command prompt.
step 2b: you may want to do so while reading the java tutorial.I completely agree with your step 2a and 2b, but not with step 1. I taught a lot of developers Java, from kids still in grade school to seasoned developers. NetBeans is a very nice IDE. When they start out, they should be coding manually in their favorite IDE to get started, and be encouraged to learn all the nuts and bolts including comman line options and compiling, but when someone comes in to Java starting at the very beginning with programming, it is too overwhelming to have to learn all the nuts and bolts, syntax, and etc... just to print out "Hello world!".
Keep NetBeans on your box, keep using it and learn the nuts and bolts of programming and how Java works. Most importantly: keep asking questions when you don't understand and cannot find the answer.Actually I very much see your point and agree with it, for the very bare basics it is indeed far better to start with Netbeans. Stupid that I never realized that before, I keep reflecting on how I learned Java myself but I was already schooled in Pascal, C and C++. So the program would be:
- learn the language syntax using Netbeans
- close Netbeans and switch to the command line.
- learn the more advanced stuff like the basic tools, the classpath and packages by getting applications consisting of more than one class to compile and run on the command line
- learn how to include jars on the classpath of your applications
- switch back to Netbeans and see how all what you did on the command line is dealt with there
It is still important to at one point let Netbeans go and do the stuff on the command line, there is just no better teacher than doing it the hard way at least until you understand how it works.

Similar Messages

  • Really bothering but easy question to answer!!!!!

    haha for me, i set a screen lock combination on my Ipod and thought it would be fun to make my brother guess the combo. How was i to know that it would freeze after multiple wrong guesses! i left it for quiet awhile thinking it would unfreeze but it didnt! I also tried hooking it up to my computor but now my comp cant even sense it! plz help!
    Windows XP   Windows XP Pro  

    Try restarting your ipod by :
    1.set the hold switch to hold, and then turn it off again
    2. press and hold the center and menu button at the same time for atleast 6 sec , or until the apple logo appears

  • Easy Question: Illegal Start of Expression

    This is a ridiculously easy question... but I am having trouble with it...
    Anyway, here is the line of code that is giving me trouble:
    jButtons = {{jButton1, jButton5, jButton9, jButton13},
    {jButton2, jButton6, jButton10, jButton14},
    {jButton3, jButton7, jButton11, jButton15},
    {jButton4, jButton8, jButton12, jButton16}};
            That's it. jButton1 through jButton16 are all jButton objects (for a GUI). jButtons is an array (4 by 4) of jButton. All are global variables, the buttons are all initilized (in fact, that was the problem I had before, and why I need to put this here: otherwise I get a null pointer exception).
    Surprisingly, such a simple line of code causes TONS of errors to occur. To save space, {...} * 2 means that the exception occurs twice in a row, errors are separated by comma's.
    { Illegal Start of Expression, {Not a statement, ; required} * 2} * 4, Empty statement
    A similar statement (int[] test = {{1,2,3},{4,5,6}};) works perfectly fine.
    Please help, doing this will reduce the size of my code to about a third of the size of the code. And then I can laugh in the faces of those people who say that I write long, and in-efficient code! MWHAHAHAHAHAHA!!
    However, I will keep at it, and Murphy's Law states I will find a solution 10 seconds after posting. If I do, I will edit this post, and tell you guys the answer ;)
    [Edit]In case you are wondering... all my other code is correct. Here is the adjacent 3 methods:
    private void jButton16ActionPerformed(java.awt.event.ActionEvent evt) {
        ButtonClick(3,3);
        // Variables declaration - do not modify
        private javax.swing.JButton jButton1;
        private javax.swing.JButton jButton10;
        private javax.swing.JButton jButton11;
        private javax.swing.JButton jButton12;
        private javax.swing.JButton jButton13;
        private javax.swing.JButton jButton14;
        private javax.swing.JButton jButton15;
        private javax.swing.JButton jButton16;
        private javax.swing.JButton jButton17;
        private javax.swing.JButton jButton2;
        private javax.swing.JButton jButton3;
        private javax.swing.JButton jButton4;
        private javax.swing.JButton jButton5;
        private javax.swing.JButton jButton6;
        private javax.swing.JButton jButton7;
        private javax.swing.JButton jButton8;
        private javax.swing.JButton jButton9;
        private javax.swing.JLabel jLabel1;
        // End of variables declaration
         * @param args the command line arguments
        public static void main(String args[])
            jButtons = {{jButton1, jButton5, jButton9, jButton13},
    {jButton2, jButton6, jButton10, jButton14},
    {jButton3, jButton7, jButton11, jButton15},
    {jButton4, jButton8, jButton12, jButton16}};
            int[][] test = {{1,2,3},{4,5,6}};
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new GameWindow().setVisible(true);               
        String[] row1 = {"1", "5", "9", "13"};
        String[] row2 = {"2", "6", "10", "14"};
        String[] row3 = {"3", "7", "11", "15"};
        String[] row4 = {"4", "8", "12", ""};
        String[][] labels = {row1, row2, row3, row4};
        int blankX = 3;
        int blankY = 3;
        static javax.swing.JButton[][] jButtons;
        private void DisableAll()
            for (int looperX = 0; looperX < 4; looperX++)
                for (int looperY = 0; looperY < 4; looperY++)
                    jButtons[looperX][looperY].setEnabled(false); 
        Edited by: circularSquare on Oct 13, 2008 5:49 PM
    Edited by: circularSquare on Oct 13, 2008 5:52 PM

    You can only initialise an array like that when you declare it at the same time. Otherwise you have to do as suggested above.
    int[] numbers = {1,2,3,4}; //ok
    int[] numbers;
    numbers = {1,2,3,4}; // not ok

  • Easy question - how to increase number of recent files in menu?

    This is for CS5 if it matters.
    I'm an infrequent Illustrator user (at best) but I have what I hope is an easy question: I want to increase number of recent files showing in the menu.
    I can't find a preferece to set such as in PS and almost every other application on the face of the earth. I've tried to reset the preferences file (start Illustrator with ctrl-alt-shift held down) but I'm stuck at 4 files, which I assume is the anemic default option.
    Is there an easy way to do this that Adobe has hidded somewhere? As expected, it can't be found in the help, I can't find it on the forums, or even on the net, but I do know it can be done because I can see other installs showing lots of files in the list.
    thanks for any help.

    This might be because of a new feature that you can turn off for each object, and alltogether. When you create a new document at the bottom, make sure 'Align New Objects to Pixel Grid' is unchecked.  After you have created a new file, you can still go into the 'TRANSFORM' palette (SHIFT+8), use the little right top menu, and make sure 'Align New Objects to Pixel Grid' is unchecked. And if you want to get fancy with each object; you can select an object, and look at the 'TRANSFORM' palette at the bottom is a place to uncheck the 'Align to Pixel Grid' at your disposall.
    Before I found this, it ruined my week.
    http://www.kenwells.com

  • Easy question about Reformatting

    Hello all,
    I am trying to reformat my HD after I have deleted Windows XP off of a partition. The reason for this is an upgrade to Vista and a larger allotment of HD space. My question is:
    I am using Backup v3.1.1. (v369) and I have FULL backup files of my Home folder, and my Music folder (as backup for my backup) for all my iTunes libraries. These are located on a portable HD. Are these the correct files to have backed up in order to have my MAC the way it was before I started the process? If so, then once the reformatting is complete, how do I get it all back onto my MAC permanently? Will all my apps and tweaks work as before?
    I am sure this is a simple question, however, I have never had to do this with a MAC, and I want to make sure I have all bases covered before I begin this. Any other comments or advice would be greatly appreciated.
    Thanks All!

    You call this an easy question ???
    Just messin with ya
    Your home folder is the most important folder containing your music, documents, preferences etc. but a lot is also stored in the system folder and library folder outside your home folder, if you want to be ensured of an exact copy of your current system the best way to go at this is to clone your system partition.
    The app i use for this is carbonCopyCloner
    http://www.bombich.com/software/ccc.html
    To add to this.. i've heard there is software for the mac that allows you to make adjustments to the size of your partitions without having to format the drive, i don't know the names of these products but i do know that it's very risky to use them, if you decide to use an app like that make sure you have proper backups of everything just in case it goes wrong.
    Message was edited by: Pr0digy V.

  • Easy question for the MODS

    Unlike more difficult questions like CRC problems, ps problems, etc, this is rather an easy question.
    The KT4V manual (page 3-8) lists the onboard NIC as a "boot device" option.  This "feature" is available in Bios 1.1, 1.2 but not available in Bios 1.4 and later.  
    Any reason why this feature was mutilated and not available anymore in the later bioses?
    Are there two different bioses for KT4V and KT4V-L?  If yes where can one find the bios for KT4V-L?
    I know this feature is not very popular with the majority of users, and I'm not trying to bust anyone's balls for removing un-popular features, but the "boot from NIC"  was one of the features/reasons why I got this mb, and I would rather use a much newer bios than 1.2 (for known reasons).
    Also, while on this topic, boot-from-usb (especially thumb drives) feature would also be greatly appreciated - I think it is also listed in the manual.
    TIA

    Hi,
    Quote
    Please suggest him to update the BIOS Ver1.9 which can support Boot from LAN and boot from USB devices.
    AMI BIOS can boot from the devices which support BIOS Boot specifications (BBS, you can refer to the attached file for the information).
    Email me, so I can send you the BIOS PDF.

  • Easy question array

    Hello experts,
    i have an easy question. I need to store data in a 1D array so that the first data is written in the place of index 1 the second in index 2 aso.  I've tried it but somehow either i only had the last data in all indexes or only the last data in the last index. I am posting you a vi. I know where i should change it but i need a small idea oder change in the vi.
    Thank u for your help.

    Attachments:
    array_shift.vi ‏7 KB

    Please save your VI in ver 8.2 and then paste it on the forum so that i may help in making it into what you want. Without seeing the VI i am guessing that you have elements or 1-D arrays that you want to append into a single array.
    Its simple whether its the elements that you want to build into 1-d array or arrays that you want to make into a single array. Just use the build array function. Connect the input wires to the element and you'll have your 1-D array, provided you havent unchecked Concatenate Inputs in which case you will have a higher order array instead.
    Anyways kindly paste it in changed format so that i may help.
    Regards
    Asad Tirmizi
    Design Engineer
    Institute of Avionics and Aeronautics
    " Its never too late to be, what u want to be"
    Using LabVIEW 8.2

  • Profit center field in Material MD - Easy question

    Hi Experts,
    I have an easy question..
    The material master data screen have a  tab 'General Plan', and there is  the field 'Profit Center'.  
    a) Is this field is filled, which is the impact in the system? 
    b) is this value (profit center) used in other area or calculation?
    c) What happend if this field is empty? 
    Thank you in advance!

    Hi,
    The path told in above reply is correct but making profit centre mandatory for only two plants is not possible.
    You can make it mandatory for specified Material Type or you can make it mandatory while doing selected Transaction Like MM01 or MM02 etc
    Regards,
    Amol

  • Some easy questions :)

    1. How can I start an IE from java (in another task for sure)? and with a specified url?
    2. How can I set, that in a Panel, which includes TextPanes, Areas etc, that if I press TAB, then not 'write' a tab-character into the Textarea/panel, but focuses on the next component?
    3. How can I set a button's mnemonic (or 'shortcut') to CTRL-key? So not ALT, but CTRL!?
    4. If I display an html URL (file) in an JEditorPane, and if this file is encoded with UTF-16, then how can I make it to show well, and not write rectangles after(almost) every character?
    I hope you can help me, these are urgent :(
    Thanks!

    This aint homework, and I know you wont write the HW(even if this isn't that) for me.
    About starting IE: I have a button ('preview'), with I want to show the User an html file. But my problem is that when I write the html file out from a string, then the OS converts some characters to it's default codepage etc. So I tried to write out the html file in UTF-16 encoding, and then an IE showed well the html file, but a JEditorPane didn't (as I mentioned in the last point or so). I tried also latin2 etc encodings, but then question marks(?) came in places of characters which couldn't be converted into proper format by the OS. I know why is this, but I couldn't really find solution for my problem.
    Keyevent CTRL and stuff. I've read the doc (maybe not fully), and I found that these shortcut-thingies are OS-dependant, and in win they're ALT. Couldnt find anyway how to change them or so.
    Focusing next TextArea/TextPane etc if TAB pressed: maybe there's an easy was (which is known bye someone), or I have to write listeners? (haven't written textpanes/areas listener already).
    So I read docs, and this aint my homework, I'd be glad if someone would help me and not just nag, sorry.

  • Easy question what puzzle me

    Here is my vi,I want to get X a fixed value not a random value between 0 and 1.This is very easy question, but it really puzzles me a long time. Aha
    EZCONN TEST ENGINEER
    V
    Attachments:
    1.vi ‏16 KB

    If you want the constant result and the random results, you need to output to an array.  Right click the loop tunnel and select "Enable Indexing" to change the output from the last iteration of the loop to an array of all the iterations.
    I changed your example to a for loop because while loops with a fixed number of iterations bug me.
    Message Edited by jasonhill on 07-27-2006 09:01 AM
    Attachments:
    no idea.PNG ‏8 KB

  • Easy Question: Brush tool overlaps dark?

    Hi all,
    I'm having an issue with my brush tool - this is probably an easy question to most of you.
    Here is an example of my issue, when brush strokes overlap, a darker color is created:
    I'm trying to brush with one flat color, with no overlaping effect. Here is a photo of what I'm trying to do, but this example was done with the pencil tool. I want to do this with the brush:
    I'd like to be able to switch from the top style to the bottom style when needed.
    Thanks for any help with this - the usual way I go about this doesn't seem to work unless I'm doing something wrong, open to options, is this a preferences issue?

    If your brush is supposed to be opaque then check Opacity and Flow are 100% in the Options bar when Brush Tool is active.

  • Easy question: iview update after upload par?

    Hi community,
    I have an easy question but i could not test it atm.
    Does an iview that is based on a par file gets updatet automatically after you reüpload the par file?
    And does the pages where the iview is in gets auto-updated aswell?
    Kind regards,
    Michael

    that was what i was tinking, thx.
    Guess i made a little mistake somewhere else that i overlooked.
    Thats why i was not sure and asked it here.
    grtz,
    Michael.

  • Easy question hopefully.....

    I have an easy question but am having a mental block. How can I assign the value of 0.05 to restock? What I need to do is return a 5% restocking value added onto the item. Make sense?
    //Type.java
    public class Type extends Office // Start of public subclass Itemtype that stores office items color.
    private String color; //get string name
    private float restock; //get float value of restock
    private float item; //get float value of total items
    public Type(String color,float restock, float item)
    {  // constructor to initialize the fields
    this.color = color;
    this.restock = restock;
    this.item = item;
    public float getRestock()
    return (this.item * this.restock) + (this.item);
    } //end public subclass Type

    Don't crosspost. Too late this time, but don't do it again.

  • A really easy question...I think.

    Hi everyone,
    I have turned the internet inside-out looking for a simple
    tutorial on this and so far I think they have all taken me kind of
    a long way around. Basically what I want is text/photos/buttons/
    inside the
    box that are
    "scrollable" without having to scroll left or right. My Flash
    document is 800x533px. I've tried doing the whole ScrollPane thing
    going through about 5 tutorials with different methods but it says
    I have to do New Symbol/Movie Clip and the so-called "stage" that
    you construct the movie on doesn't allow you to change dimentions
    as far as I know. I can only change the dimensions of the main
    Stage and the ScrollPane. I feel like this is a simple task so any
    help would be greatly appreciated. I apologize if this is a stupid
    question. Thanks everyone.
    ~Bryan

    kodemonki wrote:
    > Ok, I think this is a really easy question, but I've
    been looking for a while
    > online, in these forums, my site's code, and in my WACK
    book.
    >
    > How do you set a request time out for a specific page so
    that it can run for
    > an hour or so? I'm using 4.5 so I can't use cfsetting,
    but I'm pretty sure
    > I've seen this before.
    >
    > Please help, thanks!
    >
    I have not been able to dig this out, but I have a vague
    memory of there
    being an URL parameter you could pass to a page to allow it
    to run longer.

  • Easy Questions . . .Please Answer

    Ok so i have the new Airport Express 802.11n jobbie and i have just managed to set it up with my BT homehub
    the green light is on and its working (i think)
    Ok so the reasons i bought it was.
    1) love the wireless printing idea
    2) love the wireless music idea
    3) to plug an Ethernet Voip phone into (the home hub is in another room)
    4) i got it for £52.95
    ok so i have connected it in client mode (i think) where all the computers (theres is 3 of them in our house) connect to the homehub and so does the airport.
    What i want to know is how do i stop the other 2 computers using the airtunes and the wireless printing features. Basically i want the airport to myself for my home office which it was bought for and don't want everyone else stealing the features.
    Thanks!

    +What i want to know is how do i stop the other 2 computers using the airtunes and the wireless printing features.+
    Easy Questions....But not easy answers
    Since you have configured the AirPort Express in the home office as a client on the network, it's going to be visible and accessible from any other devices on the network. There's no way to change this or prevent access to the office AirPort Express.
    If...you configure the office AirPort Express to "create a wireless network", and set it up with a different wireless network name and password, you could create a "private" network for yourself.
    Here, I am assuming that the stereo is connected to the office AirPort Express, is that correct?
    The downside to this approach is that you would not have internet access on this network.
    If...you connected the AirPort Express to the HomeHub using an ethernet connection, you might be able to access the internet from your "private" network. I say might because I don't know enough about the HomeHub to know whether this would be allowed. I think you should assume that it can't to keep expectations at a realistic level.

Maybe you are looking for

  • Repeated object sending problem

    why when you serialize the same reference multiple times after an internal state change does it not update in the sent copy? meaning , if i have a Tree object with a height parameter , and i send it with height=50 and then i update the same objects (

  • Reader not syncing since upgrade to MountainLion on Mac

    I recently installed Mountain Lion (OSX 10.8.3) onto my Mac.  Ever since the upgrade, Reader for Mac freezes whenever I try to sync my Sony reader.  I review books for a living and all of my assignments are given as e-books, so I rely exclusively on

  • Importing star ratings from Canon's ImageBrowser

    Does anyone know how to import star ratings assigned to photos using Canon's ImageBrowser (5.8.0.10) software into Aperture? I've tried importing a few photos with various ratings into Aperture 2.1 trial but they appear unrated in Aperture. (Neither

  • Consolidating songs under one Album Cover

    When importing a CD Album into iTunes, iTunes will create several album covers then spread different songs under each cover. How do I consolidate these spread-out song under on album cover? Currently I have an album, under library, that show 5 album

  • Running db_migratecatalog crashes with SYSERROR -9400 AK Cachedirectory ful

    I'd like to upgrade our main instance from 7.6.05.09 to 7.7.06.09. I tried to test the process on a test system where I installed 7.6.05.09 and restored our main instance from a full backup. So far it looked fine and a db check showed no errors. Now