Is this bug or just me? HELP PLEASE!!!!!!!!!

hi all, i have 3 very simple class it just calling a method from Layout class. they are all from different package. class path are fine because i can create Layout but i cant call it methods from package ROSServer with package ROSGui.sharedGui it is fine. i dont kno what kinda error or bug this is
have never come across one even a simple class like this :(
this is kinda urgen, please help me!!!!!!!!!
thanks in advance <3
this class can compile just fine no problem
package Domain;
import java.util.*;
* This Class Create a Layout Object
public class Layout{
     /** Create an empty Layout */
     public Layout(){
     public String getName(){return name;}
     public String name;
this class can compile just fine no problem
package ROSGui.sharedGui;
import Domain.*;
public class SharedToolBar{
     public SharedToolBar(Layout l){
          Layout layout = l;
          layout.getName();
// Variables declaration
// End of variables declaration
this class can not compile error "cannot resolve symbol"
package ROSServer;
import Domain.*;
* This Class contains all SQL methods required to modify database and getting Connection
* from DBConnect
final class ServerHandler{
     ServerHandler(Layout l){
          Layout layout = l;
          layout.getName();
// Variables declaration
// End of variables declaration
}

It's an easy problem:
Do yourself a favor and post the actual error next time. Or, better yet, read the error yourself, think about what it's telling you, BELIEVE WHAT IT SAYS, and act on it. There's no reason why anybody should be posting compilation errors to a forum.
You can only have one package statement in a .java source file, and it's got to be the first statement in the file.
Put each class in its own file and make them all public. Recompile. When I did that, they all compiled just fine.

Similar Messages

  • Disappointed with IOS7, i had organized my music library as per the Genre and now im unable to hear all the songs of the same genre like in the earlier versions. The options of "all albums" and "all songs" are missing in this version of IOS. Help Please..

    Disappointed with IOS7, i had organized my music library as per the Genre and now im unable to hear all the songs of the same genre like in the earlier versions. The options of "all albums" and "all songs" are missing in this version of IOS. Help Please..

    It would be nice if you told others the steps you've tried and/or how you used to have your setup.
    Anyway have you tried tapping MORE this will then bring you to
    the selection-list of Audiobooks, Genres, Compilations & Composers.
    Selecting Genres gives you a list of all your music split into genres which was set within the Music downloaded via iTunes or uploaded from CD or which you may have set yourself.
    Then you just select the Genre you want:
    If certent songs are not correctly gategorised you may need to go into iTunes and reselect via Get-info
    >Info>Genre and change it there. That way you should end up with all songs of Jazz or other in 1 place.

  • I am trying to download itunes onto my computer, and every time i try it tells me it is succesfully installed, but when i look there is no shortcut or any sign of it at all. this is getting really frustrating, help please?

    i am trying to download itunes onto my computer, and every time i try it tells me it is succesfully installed, but when i look there is no shortcut or any sign of it at all. this is getting really frustrating, help please?

    Hi there,
    You may want to take a look at the troubleshooting steps found in the article below.
    Trouble installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/ht1926
    -Griff W.

  • My iMac 27 2010 vintage goes to sleep and won't wake up...I have to push the on off button and hold till it shuts down and then re start...This is not good..Help please

    My mac iMac 27 2010 vintage goes to sleep and won't wake up till I hold the on off power button....Then I have to restart as it is locked up....This it intermittent..
    Help Please
    Jim

    Ops I replied to myself in error.....
    Tom:
    I performed the steps indicated but this morning when I clicked the mouse and hit the space key and clicked the track pad again as before nothing happens.
    I hold the power button for a few seconds and the screen fills as if the computer was normally awakened but it is locked up.
    Then I have to shut it down with the power button  and then power it up as a reboot.
    Not good...SMC reset didn't work....Throughout the day yesterday I put the computer to sleep and woke it up normally.  It seems to be a overnight problem.
    Am I going to have to shut it down everynight?
    Jim

  • Im an unable to view "about this Mac". Can someone help please

    Im an unable to view "about this Mac". Can someone help please. I am running a new iMac but can't see the spec because i cannot open the relevant window

    dominic23 wrote:
    A new Mac comes with 90 days of free tech support from AppleCare.
    And one-year free repair service. Three years or more for tech support and repair if you bought the AppleCare Protection Plan, which is the best warranty policy available for desktop machines. Get it if you don't have it before contacting Apple.
    27" i7 iMac (Mid 2011) refurb, OS X Yo (10.10.1), Mavs, ML & SL, G4 450 MP w/10.5 & 9.2.2

  • My Game Center account won't let me add friends on this device. Can anyone help please?

    My Game Center account won't let me add friends on this device. Can anyone help please?

    What's more, it's absolutely ridiculous that there's no direct way of contacting Apple about this. In fact, as far as Game Center is concerned, there's no support network at all.
    It's either sheer idiocy or arrogance in action, here. Products go wrong - even yours, Apple.

  • HT201302 I have a 4S Iphone and wish to transfer my photoes to my Windows 7 PC, but It wont work. I go to "computer" click on "import pictures and videos" but a window opens stating " No pictures or videos were found on this device". Need your help please

    Just to add that my iphone is connected to my PC, the "Autoplay" box is seen, but again when I click on "import pictures and videos, using Windows" a window opens saying "No pictures or videos were found on this device".

    Thank you Peter, I had already tried this link before asking for help. I followed the steps, and when I clicked on " import pictures and videos " , a window poped up saying " No pictures or videos were found on this device". Any helps !

  • I receive messages on my IPhone but not on my iPad. Why is this.? Can anyone help please?

    I receive messages from my iPhone but not on my iPad. Why is this? Can anyone help please?

    Settings>Messages>iMessage>On

  • My iphone 4 turned off yesterday very randomly. I had 88% battery when it turned off. I plugged it into the wall and it said i had no battery, then the apple came up as if it was turning on. It went black again and this keeps repeating. Any help please ?

    My iphone 4 turned off yesterday very randomly. I had 88% battery when it turned off. I plugged it into the wall and it said i had no battery, then the apple came up as if it was turning on. It went black again and this keeps repeating over and over. Any help please ?

    Battery could be at EOL. Try getting it replaced.

  • Just got a new printer and i,m new to all this and i need some help please

    Hello everyone since i,m new here and i,m trying to fined out how to fined how to get the printer claim code for my new printer as this is my first time useing 1 please could someone help me fined it as its doing my head in.
    My printer is a HP Deskjet 1510 All-in-one series . Thank you

    Hi,
    Is this the one ?
        http://h10025.www1.hp.com/ewfrf/wc/document?cc=au&​lc=en&docname=c03775352#N132
    No, it doesn't have claim code. Only printers with ePrint enable/ready have claim codes.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • What is wrong with this code; i just dot understand , please help

    <html>
    <head>
    <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
    <META HTTP-EQUIV="PRAGMAS" CONTENT="NO-CACHE">
    <META HTTP-EQUIV="EXPIRES" CONTENT="0">
    </head>
    <%@ page language="java" contentType="text/html" %>
    <%-- Import the necessary Java classes --%>
    <%@ page import="javax.servlet.*" %>
    <%@ page import="javax.servlet.http.*" %>
    <%@ page import="java.sql.*" %>
    <%@ page import="java.awt.*" %>
    <%@ page import="java.net.*" %>
    <%@ page import="java.io.*" %>
    <%@ page import="java.util.*" %>
    <%
         String queryText = "insert into User values('";
              queryText = queryText.concat((String)request.getParameter("title"));
              queryText = queryText.concat("','");
              queryText = queryText.concat(request.getParameter("firstname"));
              queryText = queryText.concat("','");
              queryText = queryText.concat(request.getParameter("surname"));
              queryText = queryText.concat("','");
              queryText = queryText.concat(request.getParameter("email1"));
              queryText = queryText.concat("','");
              queryText = queryText.concat(request.getParameter("password2"));
              queryText = queryText.concat("','");
              queryText = queryText.concat(request.getParameter("security_question"));
              queryText = queryText.concat("','");
              queryText = queryText.concat(request.getParameter("security_answer"));
              queryText = queryText.concat("')");
         Statement stmt = null;
        ResultSet rs = null;
         try     {
                   //load the ODBC JDBC driver
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   //open a connection to the "gugis" database
                   Connection con = DriverManager.getConnection("jdbc:odbc:gugis","","");
                   //create a statement object for sending SQL queries
                   stmt = con.createStatement();
                   // Insert data into table using staement's method
                rs = stmt.executeQuery(queryText);          
                   //clean up all objects
                   stmt.close();
                   con.close();
                   response.sendRedirect("Reg_Success.html");
              catch (ClassNotFoundException err)
                   out.println("Data can't be inserted into our database...");
                   response.sendRedirect("Error.jsp");
    %>
    </html>error msg comes when i try to submit
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: An exception occurred processing JSP page /gugis.co.uk/adduser.jsp at line 49
    46:                stmt = con.createStatement();
    47:                               
    48:                // Insert data into table using staement's method
    49:             rs = stmt.executeQuery(queryText);          
    50:
    51:                //clean up all objects
    52:                stmt.close();
    Stacktrace:
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    javax.servlet.ServletException: java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Number of query values and destination fields are not the same.
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:850)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
         org.apache.jsp.gugis_co_uk.adduser_jsp._jspService(adduser_jsp.java:130)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Number of query values and destination fields are not the same.
         sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6957)
         sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7114)
         sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(JdbcOdbc.java:3110)
         sun.jdbc.odbc.JdbcOdbcStatement.execute(JdbcOdbcStatement.java:338)
         sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(JdbcOdbcStatement.java:253)
         org.apache.jsp.gugis_co_uk.adduser_jsp._jspService(adduser_jsp.java:108)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    note The full stack trace of the root cause is available in the Apache Tomcat/6.0.16 logs.
    Apache Tomcat/6.0.16i am working on this for the last three hour but no luck
    please help
    Regards
    Gugi

    String queryText = "insert into User (Title, First_Name, Surname, Email, Password, Security_Question, Security_Answer) values('";
              queryText = queryText.concat((String)request.getParameter("title"));
              queryText = queryText.concat("','");
              queryText = queryText.concat(request.getParameter("firstname"));
              queryText = queryText.concat("','");
              queryText = queryText.concat(request.getParameter("surname"));
              queryText = queryText.concat("','");
              queryText = queryText.concat(request.getParameter("email1"));
              queryText = queryText.concat("','");
              queryText = queryText.concat(request.getParameter("password2"));
              queryText = queryText.concat("','");
              queryText = queryText.concat(request.getParameter("security_question"));
              queryText = queryText.concat("','");
              queryText = queryText.concat(request.getParameter("security_answer"));
              queryText = queryText.concat("')");i m using the above code instead of the other sql
    now i m getting the following
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: javax.servlet.ServletException: java.sql.SQLException: No ResultSet was produced
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    javax.servlet.ServletException: java.sql.SQLException: No ResultSet was produced
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:850)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
         org.apache.jsp.gugis_co_uk.adduser_jsp._jspService(adduser_jsp.java:145)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    java.sql.SQLException: No ResultSet was produced
         sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(JdbcOdbcStatement.java:259)
         org.apache.jsp.gugis_co_uk.adduser_jsp._jspService(adduser_jsp.java:108)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    note The full stack trace of the root cause is available in the Apache Tomcat/6.0.16 logs.
    Apache Tomcat/6.0.16help plz
    regards
    gugi

  • I thought this was wireless?? Help please..

    As I'm holding for tech support, I thought that perhaps someone here could help me. I just purchased my Linksys Wireless-G Broadband Router, Model WRT54GS. From what I understood the router would completely eliminate wires with the exception of the ethernet cable going from the modem to the router. The instructions are stating that I will have a cable going from the modem to the router and one going from the router to my computer? If so, that completely defeats the purpose of me purchasing a WIRELESS router, and I will be returning it promptly. Is this true? Please help...

    Once you configure your router, you remove the cable.
    Greetings from Northern Ontario, Canada

  • Keyboard & Mousepad Just Freeze - HELP PLEASE

    Hey all,
    Well, maybe it's a known issue but still I couldn't find any solution for this. I have a MacBook Pro 2.53 Core 2 Duo, 4GB. Running Leopard OSX. During working around with the mac and internet, the keyboard & mousepad just freezes - sometimes I wait a while (30-40 seconds I guess) and it comes right back, but sometimes (and lately most of the time) it freezes and doesn't come back no matter how long i wait for it, up to a point where I have no choice but to restart by holding the power button long enough. Besides the fact that this is very unhealthy, any work I got is just lost (if unsaved ofcourse).
    ANY help would be great.
    Thank's alot.

    Hi
    Have you had a little spill recently? One you may not know about perhaps? It's also possible the Top Case has developed a fault? Or at least the trackpad and keypboard parts of it has.
    Something you could quickly try is create another admin account. :ogin with it and see if the problems remains. If it goes away login with your account and create an untitled folder on the desktop. Navigate to your /Users/Home/Library/Preferences folder select all the files except for com.apple.mail.plist and com.apple.dock.plist and put them into the newly created Untitled folder. Restart the mac. If any application or utility thereafter moans about a missing preference file/.plist you can easily pop it back in.
    If there has been no spill and if the problem persists and if the laptop is still under warranty take it to your nearest Apple Repair Specialist. They should be able to diagnose and troubleshoot it further for you as well as replacing the parts.
    Tony

  • Why did I buy this iPod!!! Help Please!

    So I bought an iPod, recieved today, about a week ago I tried to install iTunes to get all my music organized for it and have not gotten anything accomplished in a week.
    My Situation:
    1. Tried every fix I could on this forum, short of re-installing Win Xp Pro all together, this includes...
    a. Setting the appropriate admin rights.
    b. doing every step of the "all-steps in one" post
    c. trying to trick my comp. doing the "run as.." trick
    d. trying to install standalones of quictime, itunes, bonjour
    e. now I have an iPod set-up CD, still get the same problem
    I always get a silent exit at Publishing Product Info on Quicktime, iTunes, iPod Setup, and Bonjour
    I have done everything short of what will be my final step which is burning all my music onto a couple of DVDs and reformatting my HD and re-installing windows. This would take another week. Someone please put a light at the end of my tunnel before I put this iPod back on ebay where I got it from.

    Well it is complete!!! YAY!!
    B, I did try zahni's(sp?) approach... no luck.
    Toonz, I had the same issue witht he stand alone of Quicktime, and I am running the current ole32.dll that was mentioned in previous posts.
    But all that aside, I have successfully installed both Quictime 7 and Itunes 5.0.1, unfortunately it took me about 5-6 hours to do so, LOL.
    I have sdone almost everything in this forum and finally decided to give up and uninstall SP@, and it WORKED. Everything is installed and working and wonderful. WARNING: Hopefully it stays that way I have not yet re-installed SP2. That aside I am running iTunes 5.0.1 on XP Pro without, yes without, SP2. Technically that shouldn't work I don't think, because I thought iTunes for windows required SP2. Anyway, I have a iPod and a working software interface for it so I am happy for now...
    On to re-installing SP2 with my fingers crossed.
    Once again thanks for all you guys help and tons of it. So guinea pig or not, uninstalling SP2 worked for me.
    Cheers

  • Well last night after I had got off the phone it had froze up (never happened before) and then it it went blank. I would call it from my house phone and it would ring and vibrate but nothing showed up on the screen. I just need help please :(

    Well last night after I had got off the phone it had froze up (never happened before) and then it it went blank. I would call it from my house phone and it would ring and vibrate but nothing showed up on the screen. I don't know where to go from here I just need desperate help. Please and thank you!

    Try doing a hard reset, Hold the "Home & Power Buttons" down at same time, until you see the Apple Icon appear. Then let go of the buttons.

Maybe you are looking for