What does compiler error " import test; `.`expected" mean ?

Hi,
I have a compiler error for following lines. There is a file called Const.java and this file is located on the same directory with the file I intend to compile. However, it seems compiler looks for an import package...
What does "import test;" command mean ? What is missing in following source code ?
c:\test> javac -classpath ./ -d ./ *.java one/*.java
Error :
test2.java:1: '.' expected
import test;
^
Source :
(c:\test\test.java)
class test
     public static void main(String[] args)
          System.out.println("Hello World!");
(c:\test\one\test2.java)
package one;
import test;
class test2
     public static void main(String[] args)
          System.out.println("Hello World!");

Source :
(c:\test\test.java)
class test
     public static void main(String[] args)
          System.out.println("Hello World!");
Since you have no package statement in here, then it is said to reside in the default package. This means, (I believe) that you will not need to use an import statement to use this class. However, if I am wrong, which you can find out in testing, another solution would be to include all you classes in the same package, in this class have both source files start with the line :
package one;Hope this helped.
Ed

Similar Messages

  • HT1451 What does the error message 13005 really mean?!?

    It is now the second time that I got the 13005 error code. After I got it the first time nearly the whole content was out the library and I had to reimport it. Does anybody know how I  can prevent this in the future and what error code 13005 really means?!?

    I'm not certain exactly what the error means, but if the library database is corrupt you can normally restore with the method in Empty/corrupt library after upgrade/crash. Take a full backup for the future.
    tt2

  • What does "Ref Error: AGI_FB not defined" mean please?. It comes up every time on one of my favourite websites.

    When I log in to this website I get this message box "Ref Error: AGI_FB not defined" I have no idea what it means, or how to address it.

    Error 2000-2009 (2001, 2002, 2005, 2006, 2009, and so on): If you experience this issue on a Mac, disconnect third-party devices, hubs, spare cables, displays, reset the SMC, and then try to restore. If you are using a Windows computer, remove all USB devices and spare cables other than your keyboard, mouse, and the device, restart the computer, and try to restore. If that does not resolve the issue, try the USB issue-resolution steps and articles listed for Error 1604 above. If the issue persists, it may be related to conflicting security software.
    Above from:
    http://support.apple.com/kb/TS3694
    Are you talking about restoring?  A reset is:
    Reset iPod touch:  Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.

  • What does an error code "300 (LACQ_LICENSE_DENIED)" mean in the server?

    If the Adobe Access Reference Implementation License Server throws a 300 error code, the most likely issue is that the evaluation of the Adobe Access DRM policy failed during license issuance, and that the license server refused to issue a license.
    For example, if the policy specifies an end date that was in the past, the license server will see that the current time is beyond the validity date specified in the policy and reject the license request, recording an error code 300 in the Adobe Access license server's logfile.
    cheers,
    /Eric.

    I can't believe there is no answer to this question.
    after all day researching I've given up google and went back to basics
    OS X Server essentials book....
    and I found it ...
    So in Server.app left panel top... click on your server name and than Settings tab in the right one.
    make sure that Enable Apple push notifications are ticked
    Tha... tha... thats all folks

  • What does NSURLErrorDomain error -3001.)(102) mean?

    i am trying to download the apuratre, iphoto and safari update from the app store but i get this NSURLErrorDomain error -3001.)(102) everytime i do it.

    I tried using the solution (changing DNS servers) provided by this link (http://tidbits.com/article/13259) to a similar problem, but ofcourse without success.
    Seams to be a server problem however...
    And the -3001 part stands for: NSURLErrorCannotOpenFile = -3001,
    NSURLErrorCannotOpenFile
    Returned when NSURLDownload was unable to open the downloaded file on disk.
    Available in OS X v10.2 and later.
    Declared in NSURLError.h.

  • While importing a CD into my iTunes library I kept getting the following error message- iTunes library cannot be saved- An unknown error occurred (-54).  What does this error mean and what can I do about it??

    While importing a CD into my iTunes library I kept getting the following error message- iTunes cannot be saved- An unknown error occurred (-54).  what does this error mean and what can I do about it??

    The CD I imported (in the above post) is now not in my iTunes library. Any help would be appreciated .

  • What does this error message mean? "Systemflippers"

    SystemFlippers: didn't consume all data for DLOG ID 2002 (pBase = 0x858200, p = 0x85828c, pEnd = 0x85870e)
    I'm using old fashioned resources with DLOG and DITL, etc... but DLOG 2002 exists, so... I'm not sure what's up.
    ETA: After re-saving the resource file n times it didn't help. Re-saving the n+1th time, made the error go away.
    MAGIC!
    I'd still like to know what it was if anyone knows, for the next time it comes up.
    Message was edited by: Brian Postow

    Please point me to anything that google got that gave the answer? My google-fu is weak but not THAT weak.
    Ok, so "systemflippers" is a endianness thing in, where? the compiler? run-time? resource manager? and what does the error mean? Just knowing what systemflippers does (I sort of figured it was something like that) doesn't tell me what the error means.

  • What does this error message mean? disc recording not found

    What does this error message mean? disc recording not found

    Often it suggests issues with device filters in your registry. But it's probably best to check the situation more closely.
    Could you post your diagnostics for us please?
    In iTunes, go "Help > Run Diagnostics". Uncheck the boxes other than DVD/CD tests, as per the following screenshot:
    ... and click "Next".
    When you get through to the final screen:
    ... click the "Copy to Clipboard" button and paste the diagnostics into a reply here.

  • What does this error message when I try to do updates mean? And how can I fix it? Thanks.   The operation couldn't be completed. (NSURLErrorDomain error -1012.)

    What does this error message when I try to do updates mean? And how can I fix it? Thanks.   (The operation couldn’t be completed. (NSURLErrorDomain error -1012.)
    James
    maverick 10.9.1

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you boot, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, reboot as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • What does rendering error -50 mean? I'm trying to export to apple device from FC Pro

    What does "rendering error -50"  mean?  I'm trying to export to an apple device (Itunes) and I've done it this way before but now I just get the error message.  I'm not very technically savvy.

    I had a bunch of video clips which I took on a point and shoot camera.  They had been uploaded along with photos to Aperture, but putting the SD card directly  into my computer. Every year I take all the clips, edit out the junk, and make a DVD for the kids and grandkids to enjoy.  When in final cut, I just clicked on the camera to import from Aperture. 
    I also make DVD's though out the year of special events, using these same type of video clips taken with the point and shoot. I sometimes do slow motion set to music, etc. I have not had a problem before.  And all the bad files came from one trip in October.  All the files after it were fine as well.  I'm not sure what I did differently for that trip. 
    The little video clips say DSCN1783 (or some other file number) and are 1920x1080.  I try to "share" my project to a Master File on an external drive.

  • What does this error message mean?  MFMessageErrorDomain error 1028.

    What does this error message mean? 
    MFMessageErrorDomain error 1028.
    I can't seem to delete a message from my mailbox.  The above error message comes up every time and the message then reappears in my inbox.

    Back up all data. Rebuild the mailbox. Try to delete the message again. If you still can't, continue.
    From the Mail menu bar, select
    Mail > Preferences > Accounts > Advanced
    From the menu labeled
    Keep copies of messages for offline viewing
    choose
    Don't keep copies of any messages
    Close the window and save the change. Relaunch Mail and test.

  • What does this error mean? There was an error in the App Store. Please try again later. (100)

    what does this error mean? There was an error in the App Store. Please try again later. (100)

    I have the same problem and thought it might be related to moving to Denmark. My app store account was set up for USA and then the error number in parentasis was (13). After changing the profile to Denmark the number changed to (100), like yours

  • HT1491 Why do i keep getting the message 'Cannot connect to iTunes Store' when I have done every connection I can find? What does the error message (-1202) mean when I am on the iTunes site on my computer?

    Why do i keep getting the message 'Cannot connect to iTunes Store' when I have done every connection I can find? What does the error message (-1202) mean when I am on the iTunes site on my computer?

    Hi Velvalee,
    While there may not be specific information about that error, here is an article of steps for troubleshooting connectivity issues with the iTunes store:
    Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    If that article does not help, there is a link near the bottom for an additional article of advanced troubleshooting.
    Cheers!
    - Ari

  • What does the error "Unable to lock the following files:" mean?

    What does the error "Unable to lock the following files:" mean? After the colon in this error message, a path to the .icml file is listed. We are using InDesign CS6 with InCopy CS6 (Mac), assignment-based workflow, on a shared server.
    Thanks,
    Gita M

    Sounds like a permissions issue on that server.
    Bob

  • HT2433 what does the error message that says " You are logged out because another computer is using this IP address." mean?

    what does the error message that says " You are logged out because another computer is using this IP address." mean?

    Some other piece of network ghardware on your home LAN (Local Area Network) is using the IP address your Mac is trying to use.
    Reboot both your modem and router, or the Modem/Router combo box you have, and all pieces of networking equipment, computers and printers, you have connected to your LAN.
    If you continue to get that error then it is a bug in OS X or you have your Mac set to a Static IP address that is being handed out by the routers DHCP server to some other device.

Maybe you are looking for