Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Something wrong with my programming, please help

  1. #1
    Junior Member
    Join Date
    Apr 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Lightbulb Something wrong with my programming, please help

    Hello everyone, I am new here and would paste this code using the proper format, but I already have it pasted on codepaste.net and its pretty long. So I have a few classes including a main class for a Video Store application in java. It must meet special requirements and in doing so require alot of different classes. The GUI is pretty extent so I am using the NetBeans development environment to create this beast. The idea behind the program is to pretty much be a client that sends information to a server and then the server sends the information to the client accessing the database of customers and videos.

    The problem is, even if a class is public its not pulling any variables or ANY information out of the other classes, I am getting a " cannot find symbol " error. I have been programming for a while but I am not very good at this stuff, it could be something minor that I am doing, but it is my first time using netbeans. Most of the code in the VideoStoreView class is autogenerated for the GUI and there are no errors there, nor are there any errors in the VideoStoreApp class. I posted these so you could see what I am doing. The problems exist in VideoOptions and VideoInventory. Is there a way I could grab those variables and information out of main to use in other classes? I have changed some of them to public instead of private and I am STILL getting the same red underlined errors.

    I would REALLY appreciate the help. I am new here, but if you help me, I will stay here forever and try to help the best I could. Thanks. I am not even half way done with this code, but I can't go any further until I get this fixed.

    -----------------------------------------------------------------------------------
    here are all of the classes that I have so far;

    CodePaste.NET - VideoStoreApp.java no errors here
    http://codepaste.net/jsh4h5
    CodePaste.NET - VideoOptions.java full of errors (cannot find symbol)
    CodePaste.NET - VideoInventory.java cannot find symbol error


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: Something wrong with my programming, please help

    If you want help with code, you'll have to provide an SSCCE that demonstrates the problem.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Junior Member
    Join Date
    Apr 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Something wrong with my programming, please help

    Sorry, I am unsure how I can simplify this question. Thats about as simple as I can make it without leaving anything out. Just getting the same error everywhere. "cannot find symbol" in any of the variables in my classes.

  4. #4
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Something wrong with my programming, please help

    Breaking down the problem into a simplified SSCCE for is part of the process of debugging, and helps us pinpoint the issue when the problem isn't obvious to you. That being said the error is typically the result of not importing the necessary classes or packages....make sure if you are using classes within packages outside the current package itself or the java.lang package, you include them by using the import (see Using Package Members (The Java™ Tutorials > Learning the Java Language > Packages) )

Similar Threads

  1. Socket programming something gone wrong
    By ambika.th in forum Java Networking
    Replies: 1
    Last Post: March 6th, 2011, 11:47 AM
  2. Not sure what is wrong with this
    By jwb4291 in forum What's Wrong With My Code?
    Replies: 7
    Last Post: June 29th, 2010, 02:23 PM
  3. don't know what's wrong
    By james in forum What's Wrong With My Code?
    Replies: 4
    Last Post: February 15th, 2010, 07:37 PM
  4. Where am I going wrong? :)
    By KevinGreen in forum What's Wrong With My Code?
    Replies: 9
    Last Post: October 18th, 2009, 12:03 AM

Tags for this Thread