Import MyClass; ... not in 1.4?

I ran across this problem today.
I am using an external group of classes that are not packaged. Everything seemed to be fine in 1.3, but now I get error compiling with an import statement, and of course if I get rid of the import and just use it I get an error also.
Also, it seems to be fine with my 1.3 compiled code (using 1.4 interpreter)...
Is this some bonus feature I have yet to hear of?
Also, is there a workaround for this, since I do not control the source?
tia
kevin

oh please, and when you're puting lotsa Applets on one web page, then how do you expect intepretter to handle all those MyApplet's? it shouldn't be to hard with one MyApplet per package, but when you're having all those Applets in one ...
hey, you cannot put many classes with same name into one package, nor in unnamed package.
maybe this applet thing is badd excample, but have you not seen any other programmer have also HelloWorld.class, HelloW.class, Hello.class or HW.class?
that's why production code should be in packages... snipets, ok, these may be as well in unanamed package.
BTW: there are some tools available that help you automagically migrate class from one package to another.
so if anyone has some set of classes that need to be moved into package, then looking for such tool might be well worth of effort.

Similar Messages

  • Import myclass; Not Work in JDK1.4 Why?

    Dear friends
    I make one Bean in which i import one class
    import EnquiryPK;
    This statement works fine in JDK1.3 but Now i shifted to jdk1.4 So during compilation i got following error
    EnquiryBean.java [10:1] '.' expected
    import EnquiryPK;
    So can u give me soution to avoid this error
    Thanks
    Mausam
    [email protected]

    Hi
    Thanks For Ur Reply Actually I develop one Entity Bean with Primary Key Class . The Return type of ejbCreate is Primary Key Class
    lets
    Entity Bean is EnquiryBean
    Primary Key class is EnquiryPK
    and in Enquiry Bean I my code is
    import EnquiryPK;
    public EnquiryPK ejbCreate(...)
    This code Compile and run with Jdk1.3 but in Jdk1.4 it gives me error
    I am not using any package Still my Pk class and Bean class file in same folder
    Regards
    Mausam

  • Import is not available all other actions are active but not import help?

    Import is not available all other actions are active but not import help? I wish to import bookmarks from internet explorer, I am using windows 7

    Make sure that you do not run Firefox in permanent Private Browsing mode.
    *https://support.mozilla.com/kb/Private+Browsing
    *You enter Private Browsing mode if you select: Tools > Options > Privacy > History: Firefox will: "Never Remember History"
    *To see all History and Cookie settings, choose: Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    * Deselect: [ ] "Permanent Private Browsing mode"

  • All the CD's I have imported will not play. The only music that will play is cd's I have purchased from itunes. How can I get all my albums to play, please??

    All the CD's I have imported will not play. The only music that will play is cd's I have purchased from itunes. How can I get all my albums to play, please??

    iTunes Store- Transferring purchases from iOS device or iPod to a computer
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    How to dowload purchased music

  • Audio CD import is not working the cd is ejected before itunes can read it

    audio CD import is not working the cd is ejected before itunes can read it. Does anyone know how to fix this?
    Lainey

    Does this happen with all cd's or one in particular?
    Reset the SMC http://support.apple.com/kb/HT3964
    Reset the PRAM http://support.apple.com/kb/HT1379
    Try a cleaning disc. You can get them at places like Radio Shack.
    If nothing helps your optical drive has probably failed. You can replace it or purchase an inexpensive external drive. Don't buy the Apple SuperDrive as it won't work with macs that have a built in drive.

  • Import steps not specific to Transport Request

    Hi all,
    I need to move 5 Released Transport Request as "Local Change Requests" to another SAP installation.
    I followed two guides to do this:
    SAP BASIS / ABAP - How to Export and Import an External Change Request - YouTube
    How to copy Repository Objects between non-connected SAP systems - ABAP Development - SCN Wiki
    However I have problems creating the Change Request that contains all my requests: if I generate it as Local Change Request it is not available on cofiles and data folders.
    So I created a new Virtual System called M02 and I created a standard consolidation transport link between my original system M01 and the virtual system M02.
    Then I created a new TRANSPORT OF COPIES Transport Request and I selected as target system M02. All objects are correctly added to the new request and the validation is correctly performed.
    However when I release the request on the SOURCE server I get the following error:
    M01#######            My Request Name
    M01        System M01
                 Checks at Operating System Level         05.03.2014 16:48:34    (0) Successfully Completed
                 Pre-Export Methods                       05.03.2014 16:48:37    (0) Successfully Completed
                 Export                                   05.03.2014 16:48:47    (0) Successfully Completed
          Import steps not specific to transport request
      M02        Virtual System
                 Selection for Import                     05.03.2014 16:48:47    (0) Successfully Completed
          Import steps not specific to transport request
    "Import steps not specific to transport request" expanded as:
      Feedback after export or import 05.03.2014 16:48:48    (0) Successfully Completed
    I get this message even if I generate the new Change Request from a single Change Request (the first one that we released).
    The cofiles and data files are correctly generated, however the IMPORT on the TARGET server returns an error (invalid data package)
    My question is: is the "Import steps not specific to transport request" message correct, or should I modify something? Why am I getting this message?
    Thank you

    Hi Chinna,
    Its a warning message you can ignore that... if you want to see what exactly the reason for warning  in SE09 --> select the released request --> click the Transport Log Ikon --> select the warning message and click the spects Ikon --> go on expanding you can find the warnings of Objects  in Yellow...
    Hope this helps,
    Sudhakar.

  • How do I get iphoto to import videos from my iphone 3s? It only imports photos, not videos. My iPhoto is v. 4.0.3.

    How do I get iphoto to import videos from my iphone 3s? It only imports photos, not videos. My iPhoto is v. 4.0.3.

    My iPhoto is v. 4.0.3.
    Is your QuickTime up to date?
    Video importing requires QuickTime 7.6.2 or later.
    http://support.apple.com/kb/HT4083

  • My imports are not showing up in Photos or Events

    My imports are not showing up in Photos or Events.  The only place I can see them is in the "Last Import" folder.  When I try to re-import them it pops up the Duplicate warning which means they are in the library but not showing up.  Any ideas?

    If they are in last import then they should be there - check the date on one of the photos in last import and look for that date in your library - last import, photos and events are simply different ways of viewing the same photos - if they are there in one view they are there in all views - somewhere
    Select a pic in Last Import and Right-Click on it. Choose 'Show Event' from the menu. This will bring you to the Event containing the photo.
    If the photo is in Last Import, then the photo is in the Library somewhere,  just not where you expect it to be. Usual causes: the date on your camera is wrong, and so the date on the photo is wrong, or the sorting of the Events has changed (View Menu -> Sort Events)
    LN

  • Photos won't import images from my Canon camera.  When connected, program sees the images, tells me it will import the new ones, then freezes once import starts, not allowing any other operation to happen.  MacbookPro 15" 2012, OSX Yosemite 10.10.3.

    Photos won't import images from my Canon camera.  When connected, program sees the images, tells me it will import the new ones, then freezes once import starts, not allowing any other operation to happen.  MacbookPro 15" 2012, OSX Yosemite 10.10.3.  Any suggestions?

    Solution discovered.  Faulty connector cable.  Tried a different one and it worked.

  • HT1660 My itunes library has automatically started to list my songs alphabetically.  I do not want this.  How do I change it so that when albums come up, the songs are listed in the order of the imported album, NOT alphabetically.

    My itunes library has automatically started to list my songs alphabetically.  I do not want this.  How do I change it so that when albums come up, the songs are listed in the order of the imported album, NOT alphabetically.

    For the missing Artists on your iPod, make sure their tracks in iTunes are not marked as "Part of a compilation" in iTunes. You can do this by highlighting the track, right->clicking on them and choosing "Get Info" from the shortcut menu. When the window pops up, head over to the Info tab and make sure there is NO tick mark next to this option in the lower right hand corner. Lastly, sync the updated changes to your iPod.
    B-rock

  • Compilation Error for import classes not found in generated Proxy Class

    Hi,
    We are generating java classes for the COM dll using JCOM com2java compiler.
    We are getting a compilation error for import class not found when compiling the
    generated Proxy java source code. It can't find the com.bea.jcom.Dispatch class that
    the generated Proxy java source code extends. It also can't find com.bea.jcom.Variant
    or com.bea.jcom.Param. These are interfaces or data types or classes used by COM
    library.
    I added weblogic.jar to my class path and the only Dispatch class i found inside
    the weblogic.jar is com.linar.jintegra.Dispatch;
    We have com objects for which we want to develop an EJB client to interface with
    the COM object using JCOM with Native Mode disabled.
    Any help on the compilation error..I tried changing the extends for Dispatch to com.linar.jintegra.Dispatch
    but the other errors are still there.
    To begin with, I think the generated code should not refer to any of the COM data
    types.
    Any help please.
    Thank you in advance,
    Regards,
    Rahul Srivastava
    [email protected]

    Hi,
    I resolved the other errors by changing all references from com.bea.jcom.Variant
    etc to com.linar.jintegra.class name..all were present under the com.linar.jintegra
    package.
    Thank you all anyways,
    Regards,
    rahul
    "Rahul Srivastava" <[email protected]> wrote:
    >
    Hi,
    We are generating java classes for the COM dll using JCOM com2java compiler.
    We are getting a compilation error for import class not found when compiling
    the
    generated Proxy java source code. It can't find the com.bea.jcom.Dispatch
    class that
    the generated Proxy java source code extends. It also can't find com.bea.jcom.Variant
    or com.bea.jcom.Param. These are interfaces or data types or classes used
    by COM
    library.
    I added weblogic.jar to my class path and the only Dispatch class i found
    inside
    the weblogic.jar is com.linar.jintegra.Dispatch;
    We have com objects for which we want to develop an EJB client to interface
    with
    the COM object using JCOM with Native Mode disabled.
    Any help on the compilation error..I tried changing the extends for Dispatch
    to com.linar.jintegra.Dispatch
    but the other errors are still there.
    To begin with, I think the generated code should not refer to any of the
    COM data
    types.
    Any help please.
    Thank you in advance,
    Regards,
    Rahul Srivastava
    [email protected]

  • Import Server not picking up the file

    Hello,
    I have 2 repositories running on the same server. Import server picks up file for one repository, but not for the other. What could be the reason? Also, for the repository, import server not picking up the file, workflow also does not send an email notification.
    Please help
    Subhash

    Hi Subhash,
    Hope you are not using the same Import Server for both the MDM Servers. If yes then you need to mention the MDM Sevrer name in the MDM Server parameter of MDIS.ini. Check the parameter list of MDIS.ini file.
    If your repository has password for Admin user then you need to specify the same in MDIS.ini file under your repository section for User = Admin and Passowrd = [Admin password]. Remove the E from the PAsswordE and give the password for Admin user. Once done restart the Import Server and check again, parameter Password would have converted to PasswordE.
    For Email Notification two things you need to check:
    1. You should have specified the mail server address in MDS.ini file under your repository section for parameter Mail Server.
    2. Workflow owner should have entry in Email address field of the user. Check this in Console under Admin -> Users.
    Regards,
    Jitesh Talreja

  • ARQ: Role Import does not show roles in the preview

    Dear All,
    Recently I upgraded our system to SP#14. Now when I try to import roles from NWBC->AM->Role Mass Maintenance->Role Import, it does not show roles in preview. Also, it does not import the roles specified. (either a range or full name of the role). It does not even give any error message.
    I implemented SAP note#1897975 Role import does not show roles in the preview.
    Still facing the same problem. Has any one faced this problem? Please suggest.
    Regards,
    Faisal

    HI Faisal,
    This note(1897975) you have to implement in Plug-in System, try to check the same once and let me know if it resolves our issue.
    Regards,
    Neeraj Agarwal

  • Can no longer save edited photos. get messages - "Nothing was imported" "The file or folders selected to import did not contain supported file type.

    Can someone help. I use Photoshop Elements 13. I can no longer save edited photos. get messages - "Nothing was imported" "The file or folders selected to import did not contain supported file type. It started this a couple of weeks ago and I had a friend come fix it just 2 days ago. It took him several hours and I lost all tags I had on over 10,000 pictures. Now it has done it again. I'm so upset. I lost a lot of stuff. I don't want to keep bothering him with this. Please Help.

    How did you import the files to your computer?
    What model  number camera?

  • Flash Builder 4.5 the import could not be found

    I just upgraded from Flash Builder 4 to 4.5 and have imported  one of my FB 4 projects.  I am now seeing an orange question mark in  the gutter next to all of my import statements that are importing local  classes (as well as everywhere the said class methods are used) and an  orange underline appears under the import statement.  When I hover over  the underline it says that the import could not be found. 
    The class files do in fact exist and the project compiles and runs without a problem (I use ANT to build this project).
    If I open one of the class files in question then change something  (i.e press space bar) and hit save then go back to the file importing it  the orange question mark is gone for that import, I get the code assist  and CTL+Click links me to the class file.  However, if I close that  file and reopen it again cannot find the class file.
    The classes in question are stored under my project's src dir as:
    - src
      +---com
          +---myappname
              +---services
              +---utils
              etc...
    and my import statements look like:
    import com.myappname.utils.*;
    import com.myappname.services.remoteService;
    Any ideas?  Is this a FB 4.5 "enhancement"?  I've tried deleting and  re-importing the project, refreshing the project and am now kind of at a  loss of what to do.  It's annoying enough that I may need to downgrade  to 4.

    Thanks for the reply srvikram13, I really appreciate it.
    Unfortunately this did not solve my problem.  The application was developed in Flex sdk 4.1 and I have installed the 4.1 sdk and told the Flex Compiler to use that specific sdk to no avail (I even re-tried per your post, but no success).  The fact is that the project compiles fine with either 4.1 or 4.5 sdk, it just has issues finding the imorted classes until I manually open the class files.
    Further debugging and info:
    I actually thought I had it fixed for a second.  I renamed my "com" directory and right clicked on "src" and chose "New" > "Package" then repeated that for each directory under "com".  I then closed FB and in windows explorer copied my original com directories into the new one created by FB.  When I launched FB and opened the main file all my imports were recognized!  I then closed FB and re-opened again to see if it was truly fixed and ... epic fail.  The squiggly underlines are back and FB doesn't recognize any reference to them.
    I also found that even if I navigate to the class files in the Package Explorer then right click on the file and choose properties, then click cancel (never opening or changing anything) the reference to that specific file is now valid... at least until I close and reopen FB.
    Any other ideas?

  • Short Slo Mo video imported to Aperture or iPhoto via cable (Air Drop not supported on my iMac): only the SloMo section imports. Not the rest. Any fixes?

    Short Slo Mo video imported to Aperture or iPhoto via cable (Air Drop not supported on my iMac): only the SloMo section imports. Not the rest. Any fixes?

    Okay, as I'm working through this I see that I have to add the "Admin" account to each file with "read only" permission.  Simply changing the "everyone" account access does nothing. 
    So how do I change the permissions settings in iPhoto or Aperture to give each exported file the desired permissions?  I cannot locate a setting in the iPhoto or Aperture applications.
    Also, I added a password to the user account.  It did not change how files are output.

Maybe you are looking for

  • TS3899 All of a sudden, I can't open links in my emails.  Not just yahoo, but others as well.

    For the last 2 or 3 weeks, I haven't been able to open links in my emails.  This includes personal & business accounts.  One is Yahoo & the other is Outlook Exchange.  I've never had any problem before.  It's only on the IPad.  I have 2 other tablets

  • Apple Mail No longer working

    My email has been working just fine until a couple of months ago.  I gave up however I do miss receiving email on my MacBook Pro.  I'm receiving my emails using my iPhone and if I log in to yahoo! however it stopped working with Apple Mail.  I have n

  • IPod Mounting Problems

    I've seen an issue similar to this here in the forum, but this appears to be a little bit different. I'll explain: This weekend bought a new MacBook Pro. Got it home and installed all the software updates for it, including iTunes updates. Then, conne

  • Disk Not Showing Up in Startup Disk

    I have a mid-2011 MacBook Pro with two partitions on the internal hard drive. One has 10.8.5. One has 10.6.8. When I boot from the 10.6.8 Snow Leopard disk the partition with 10.8.5 no longer shows up as a bootable volume in System Preferences>Startu

  • Restoring after hard reset time machine?

    Is there a way to restore after a hard reset (eg button down to long)