Problem in compiling this java need help

package test;
public class simpleTest{
     public simpleTest(){
          int a =0;
import test.*;
public class testPackage{
     public static void main(String [] args){
          simpleTest sT=new simpleTest();
          System.out.println("Package from Test A value = "+a);
}error got when compile this codes.
--------------------Configuration: <Default>--------------------
C:\Notes\testPackage.java:4: cannot access simpleTest
bad class file: C:\Notes\simpleTest.java
file does not contain class simpleTest
Please remove or make sure it appears in the correct subdirectory of the classpath.
simpleTest sT=new simpleTest();
^
1 error
Process completed.

package test;
public class simpleTest{
private int a;
     public simpleTest(int a){
          // int a =0;
this.a = a;
public int getA() {
return a;
=============== 2 diff files===================
import test.*;
public class testPackage{
     public static void main(String [] args){
          simpleTest sT=new simpleTest();
System.out.println("Package from Test A value =
= "+st.getA());
}- Saishu can compile the java package?

Similar Messages

  • I am new to this but need help. Lion and iCloud have never worked on my desk top or MacBook Pro.  Slow or Stop!  Is there any way to fix the problem?

    I am new to this but need help. Lion and iCloud have never worked on my desk top or MacBook Pro.  Slow or Stop!  Is there any way to fix the problem?

    We need more information. I'm not sure what you mean by both Lion and iCloud have never worked.

  • See if this problem sounds familiar, cause I need HELP!

    Ive had my Ipod since about June and everything has worked fine on it, but Ive sinced moved and unhooked my computer for awhile..I was using tthe Ipod at work and home on other computers and everything worked great, now I set up the computer again, go to add a song and I get this error:
    "Ipod cannot be updated because the required folder is missing"...Also, when I try using the Ipod updater download I had previously used (for it to get the Nike+ software to work) it says its outdated and i need to use iTunes to update it, only iTunes says its already up to date!!
    Before it was doing this I restored it after i got an error message for error -48. I'm at a lose I have no idea what else to do, and this is the 4th Ipod of gone through because of issues, 2 never even got used because they were corrupt, and Im sick of all this so if anyone can help that would be great.
    Custom Built   Windows XP  

    Hey law43!
    Here's a method that works for some users that get the message: "iPod cannot update. The required folder could not be found".
    Try deleting the "iPod Photo Cache" folder, eject your iPod, reconnect it, then try syncing your iPod again.
    For directions on this, read this knowledge base article on it -> Photo Sync creates iPod photo Cache
    -Kylene
    If any post helps or solves your problem, please click the "Solved" or "Helpful" buttons on top of that post. Thank you for helping the boards!
    -Kylene

  • Problem with Quicktime...need help...

    I used to visit "VirusRadio.com" frequently and listen to old Opie and Anthony shows online, and never had a problem. Here lately (after installing XP Pro, I've noticed) I've been totally unable to stream content off this website. When I had Home Edition, I just downloaded quicktime and this site loaded perfectly, yet this isn't so on XP Pro. Maybe some of my firewall/Internet settings aren't correct, or maybe it's a quicktime issue...but I need help. I'm losing my mind trying to figure this out. Any help would be much appreciated. Thanks!

    These software conflicts could be due to some inconsistency the Leopard upgrade caused in the System folder. Doing a clean "Archive & Install" of Leopard will probably fix your problems.

  • Problem with changing flash content - Need help

    I need help in changing  the flash content. Here is my proble,
    1) I bought a flash template (I will call this Original) from a website and paid some money to customize my menu,logo and background color.
    2) After they finished it they sent me several files. Like 1) index.html, .swf, psd, .fla. In all the files .html,.swf (the video) and .psd I am seeing my customize changes (logo,menu and background color). But the .fla file they sent me is still shows everything from original template. It doesn't have my logo, menu or background color.
    3) I asked their technical support and they walk me through. a) Open the .fla file in flash pro. b) Change the content c) Hit Ctrl+Enter and it will export the new .swf file to the flash folder. d) Make sure I delete the video from flash folder and replace the name with the one I created.
         I did all these steps. But the problem is the .SWF that i generated is showing everything from the orignal template. It did change the content but I don't see any of my customize request. (Menu, logo or color)
    4) Then I open the index.html and I DID NOT see any of the changes in the content.
    My feeling is they did not provide me the correct .FLA file. I really need your help.
    My confusion is a) Have they provide me the correct .FLA file or I am doing something wrong. b) When I generated the new .swf video and renamed it properly why it didn't reflect in the index.html file.
    I am really going back and forth with them since last 15 days and its not going anywhere. I really appreciate any help.
    Thanks,
    Jessy

    Unfortunately, if you have not enough knowledge about using Flash, and do not want to pay to have this done for you, the folks who did this for you are likely going to be the only ones who can help you resolve it.  They should be able to provide the edited fla and the new swf if they are in any way a credible/reliable business.... which at this point sounds like they are not.

  • Gps problem with 5.0.1 NEED HELP

    Hello everyone.
    My Iphone 3gs New bootrom is updated to ios 5.0.1And now my gps has hugh problems.
    if i start navigon of tom tom he find me for a sec then iam gone and he cant find it.
    tried reinstalling it, network reinstalled, ios 5.0.1 reinstalled jailbreaked it and unjailbreak it.
    Nothing works, when i cal my carrier t-mobile they say send it to us and you pay fore the cost but iam not going to pay fore something i dindt broke right?
    read it in several forums and its a world wide problem. So called apple in holland the just say cal your carrier. Apple this stinks so what are you going to do?
    what can i do ??
    NEED HELP

    I think your iPad is a candidate for restoring via recovery mode. Read this article for instructions.
    http://support.apple.com/kb/ht1808

  • Newbie at this and need help

    Hello,
    I am a complete newbie at this Itunes stuff and I have some very basic questions. If somebody would be willing to help me out I would appreciate it. So I have loaded Itunes on my PC. I then put in a cd that my friend burned a ton of songs on for me thinking that the CD would automatically appear in Itunes where then I could move it to my Itunes library. However the CD doesn't appear in Itunes and the only way I can play it is just through Windows Media. Any idea on how to get this to my Itunes library?
    In addition, sometimes when I try to play a song in Itunes it says that it can't find the file and asks if I want to locate it. I saved the burned CD in the Itunes folder on my computer but it still didn't seem to work. Any suggestions?
    Thanks for any help you can give.
    Chris

    I don't know much about CD not working problems, someone else will probably chip in.
    As a workaround while you are sorting it out, you can import tracks with Windows Media Player. You need to set the format to MP3 in the WMP options. On the latest version you have to click on Rip to find it. I don't remember where it is on the earlier version.
    Once you have imported the tracks find the name of the folder they are in, then open iTunes and click:
    File>Add folder to library
    Before you do this, you need to decide if you are happy to leave the tracks where they are or if you want to make a copy of them in the iTunes Music folder. You can set this in
    Edit>Preferences>Advanced>general
    There is a check box labled "Copy files to iTunes Music folder when adding to library.
    iTunes will work OK either way.
    On the CD thing - you should find "Run CD diagnostics" on the help menu - you could post the result here.
    (I am using Version 6.0.5 so things may not be quite the same on your version)

  • Hi, i'm new to java. need help setting the path in win XP

    hi all,
    i'm new to java technology. i've just downloaded the JDK and ran my first java program (hello world). i love it. java's gr8. i need help. i run win XP and how can i setup the path sothat i can execute my programs from the root dir??? any help in this direction will be greatly appreciated. please email me @ [email protected]
    Best regards
    Mrinal

    Go to Start menu and select Control Panel. In the Control Panel, double click on System. In the System dialogue, choose the Advanced tab. Then click on Environmental Variables. Select Path and Edit. Put ;c:\j2sdk1.4.0\bin at the end of the Path (or c:\j2sdk1.4.0\bin;) at the start of the Path. That's it.

  • I have a iPod touch 4th Generation and its not wanting to start it stays on the apple logo and when i connect it to the computer it keeps beeping and the apple logo starts to flash but it wont start and i dont know how to fix this I need help!?

    I need help to be able to see if I can fix this or something.

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • Problem posting comments to websites, need help

    Hello. I am using Safari 5.1.7 and OSX 10.6.8 and everything appears up to date. When reading a story on ESPN.com for example and i scroll down to the comments i click on 'add comments' and there is nothing there to allow me to add comments Also when i click 'view all comments' again there is nothing there. Can anyone help? Maybe a java issue, although like i said, all appears up to date. Thanks. Oh, I tried it on my daughter's macbook pro with lion and it was fine.
    i posted this in the snow leopard area as well...

    hi again.. in January it was a facebook problem.. there were no lightroom updates.. same now.. so you can go to facebook and fill in that form That Paul Diming talks about in a previous post
    I have reported this problem to Facebook using their own problem reporting mechanism.
    It would help if everyone who is having this issue should do the same.  Here is the process:
    1. Click on the pull down on the far upper right of the screen.
    2. Click "Report a Problem"
    3. Click "Something Isn't Working"
    4. Select Pages on the pull down.
    5. Explain the problem.
    6. Upload a screen image. I captured an image of trying to create a new published collection with the pull down showing no Page Albums listed.
    It might help for Facebook to know that it isn't just me having the problem.

  • Why i am unable to compile this .java

    Hi
    I get the Error messages
    C:\kk>javac BICDownloader.java
    BICDownloader.java:61: cannot find symbol
    symbol : method openConnection()
    location: class java.lang.String
    URLConnection urlc = url.openConnection();
    ^
    BICDownloader.java:64: cannot find symbol
    symbol : class SSLTunnelSocketFactory
    location: class BICDownloader
    (new SSLTunnelSocketFactory(proxyHost,proxyPort));
    ^
    Note: BICDownloader.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    2 errors
    When trying to compile
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.FileOutputStream;
    import java.io.FileInputStream;
    import java.util.StringTokenizer;
    import java.util.Properties;
    import java.net.*;
    import java.io.*;
    import java.security.*;
    import javax.net.*;
    import javax.net.ssl.*;
    import javax.net.SocketFactory;
    import javax.net.ssl.SSLSocketFactory;
    import org.apache.commons.httpclient.DefaultHttpMethodRetryHandler;
    import org.apache.commons.httpclient.HttpClient;
    import org.apache.commons.httpclient.Header;
    import org.apache.commons.httpclient.HttpException;
    import org.apache.commons.httpclient.HttpStatus;
    import org.apache.commons.httpclient.methods.GetMethod;
    import org.apache.commons.httpclient.params.HttpMethodParams;
    import org.apache.commons.httpclient.UsernamePasswordCredentials;
    import org.apache.commons.httpclient.auth.AuthScope;
    * Created on Mar 2, 2007
    * S.W.I.F.T. s.c.r.l.
    public class BICDownloader {
    private final static String proxyHost = "isln616";
    private final static String proxyPort = "9090";
         public static void main(String[] args) throws Exception {
              int exitcode = 0;
              int statusCode;
       String url = "https://www2.swift.com/bicdownload/bicdownloader?"
                              + "action=getfile&productline=bicdir&product=bicdb&content=delta&format=txt";
    HttpClient client = new HttpClient();
             GetMethod method = new GetMethod(url);
             // Provide custom retry handler if required
             method.getParams().setParameter(HttpMethodParams.RETRY_HANDLER,
                                              new DefaultHttpMethodRetryHandler(3, false));
         System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");
          //System.setProperty("https.proxyHost",proxyHost);
          //System.setProperty("https.proxyPort",proxyPort);
                   URLConnection urlc = url.openConnection();
          if(urlc instanceof com.sun.net.ssl.HttpsURLConnection){
                        ((com.sun.net.ssl.HttpsURLConnection)urlc).setSSLSocketFactory
                             (new SSLTunnelSocketFactory(proxyHost,proxyPort));
             try {
                  // We strongly recommend obfuscation of password  and restricted access to its storage
                  Properties prop = new Properties();
                  InputStream fis = (InputStream)new FileInputStream("c:/KK/bicdownload.prop");
                  prop.load(fis);
                  // Set Credentials
                  UsernamePasswordCredentials credentials;
                  credentials = new UsernamePasswordCredentials(prop.getProperty("username"),
                                                                  prop.getProperty("password"));
                  client.getState().setCredentials(new AuthScope("www2.swift.com", 443), credentials);
                  // Executing the method.
                  statusCode = client.executeMethod(method);
                  if (statusCode != HttpStatus.SC_OK) {
                       // Handling HTTP error 404 and 500 not covered in this example
                       // All http error cause in this example exit with status 1.
                       System.err.println("Method failed: " + method.getStatusLine()+ "\n" +
                                         method.getResponseBodyAsString());
                       System.out.println(method.getRequestCharSet() + "\n" + method.getRequestHeader("").toString());
                       exitcode = 1;
                  else {
                       //Get the file size from the response body and do something with it
                       Header[] contlen = method.getResponseHeaders("Content-Length");
                       if (contlen.length != 0) {
                            StringTokenizer stone = new StringTokenizer(contlen[0].getValue(), "=");
                            int size = new Integer(stone.nextToken()).intValue();
                            // Do something with the file size
                            System.out.println("File size is: " + size);
                       // Get the filename from the response body.
                       InputStream is = method.getResponseBodyAsStream();
                       Header[] contdisp = method.getResponseHeaders("Content-Disposition");
                       String filename = null;
                       StringTokenizer sttwo = new StringTokenizer(contdisp[0].getValue(), "=");
                       while (sttwo.hasMoreTokens()) filename = sttwo.nextToken();
                       // Hardcoded disk and directory path are indicative
                       FileOutputStream fos = new FileOutputStream("c:/kk/" + filename);
                       byte[] buffer = new byte[4096];
                       int count = is.read(buffer);
                       while (count != -1) {
                            fos.write(buffer, 0, count);
                            count = is.read(buffer);
                       fos.flush();
                       fos.close();
                       is.close();
             } catch (HttpException e) {
                  exitcode = 2;
                  System.err.println("Fatal HTTP Error: " + e.getMessage());
                  e.printStackTrace();
             } catch (IOException e) {
                  exitcode = 3;
                  System.err.println("Fatal I/O error: " + e.getMessage());
                  e.printStackTrace();
             } finally {
                  // Release the connection.
                  method.releaseConnection();
                  System.exit(exitcode);
             System.out.println("Dowload done");
    }

    Look at the Classnames it's complaining about, then look at your import list.
    That is the reason, of course.
    Edit: The second error has to do with the Classes. The first one, is as pointed out below,
    is because how you declared and defined your "url" variable, which should be URL and not String.

  • Having been trying this forever need help

    Ok so I need help and this may sound like a stupid question but I am beyond trying to figure this out.
    So trying to set up a new webpage how do you go about setting it so it opens on anyones computer the same size?  I have used the html templates in dreamweaver...and thats great but I am trying to expand my experience and try more things....
    I am using CS4 and I really need some good help...
    Thanks

    You do it with CSS code.
    For a Liquid Layout that fills browser viewport.
    body {
    width: 100%;
    For a Semi-Liquid layout that fills viewport with restrictions to keep the layout from looking ridiculous on ultra wide or ultra small displays.
    body {
    width: 100%;
    min-width: 800px;
    max-width: 1280px;
    Fixed-width and centered on all displays greater than 990px.
    body {
    width: 990px;
    margin: 0 auto;
    Adjust numbers to match your target audience.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Problem with My photo stream need help.

    Hi.I just use my photo stream with icloud control panel.First it's work,my pictures upload automatically to my pc but now when I take new photos,they are not sent.
    It was happened after I had deleted all my photo stream but my setting still same. I don't know the reason and need help.Thank regards.

    In my iPhone,at first my photo stream still uploaded but now when I took a photos,it didn't upload to my photo stream.

  • New to java(need help on access specifier)

    hi! i am new to java.plzzzzz help me i have to make a project on access specifier's i know all theroy.but
    i am unable to understand how i can define all specifiers practicly.i mean in a program.
    thanks.plzzzzzzzz help me

    the most common project i can think of is a payroll system..
    you can have real implementation of all the access specifiers
    good luck

  • HT5538 I dont really get this i need help setting some things up on my Ipod.Can you help?

    I need help setting up my Imessage and FaceTime.I have tryed and its not working.

    iOS: Using FaceTime
    iOS: About Messages
    iOS: Troubleshooting FaceTime and iMessage activation
    iOS: Troubleshooting Messages
    iOS: Troubleshooting FaceTime

Maybe you are looking for

  • Error whil creating Service Line item in ME51N using BAPI_PR_CREATE

    Hi Experts,             Am able to create PR number using BAPI_PR_CREATE, but when am trying to create Service line item am getting acc assignment error please check my code and solve my issue. ..its very adj  please help me . DATA : t_bapimereqitemi

  • PCO 2.2 - OPC and IP21

    Hi,   We are looking at connecting to IP21 via PCO OPC DA connector.   Can PCo only poll the IP21 OPC server for eventing or can one set up the IP21 OPC server to advise PCO on data changes for   eventing purposes ? Also what is required on the serve

  • Counting Columns in a Structure or Table?

    HI, can any one tell me the best way to count the number of Columns a structure or internal table has. Thanks C

  • Help with viewing mail...

    I'm having a very annoying problem viewing mail on my new macbook pro. On my old macbook ( 4 years old ) the messages were viewed differently; I could see the sender on half the inbox window and the image or body details underneath without opening a

  • Adobe 8 Standard problem

    Today my adobe 8 standard started corrupting the documents I scanned. I thought I could re-install it but don't know how.