Having issues with Importing packages

Hi
Can someone help me with the behaviour i am noticing with jdk1.3.1
Say i have a directory by name test in c:\
so i have c:\test
say i have Add.java Test.java files in it.
The contents of these files are as follows
/** Add.java file */
package mypackage;
public class Add
public Add() { }
/** Test.java */
import mypackage.*;
public class Test
public Test() { }
public static void main(String[] args)
Add testAdd = new Add();
Now being in c:\test directory i perform the following steps
javac -d . Add.java
It compiles fine and it created a directory called mypackage within c:\test. thus i have
Add.class file in c:\test\mypackage directory
Then i did
javac Test.java
Now i get compiler errors saying
Test.java:8 : cannot resolve symbol
symbol : constructor Add ()
location: class Add
Add testAdd = new Add();
^
1 error
Pls help
Thanks

I'm not smart enough to answer why. My guess: the compiler always looks around for .java files that it might need to compile. Most of the time, this is a good thing because the compiler will automatically compile .java files instead of the user typing in all files. In your case, it appears that the compiler looks for a class named Add and finds the Add.java file before it looks thru the mypackage import so it tries to compile the file. The file contains mypackage.Add instead of a no package Add class so you get an error.

Similar Messages

  • Anyone having issues with importing CR2 files into lightroom 5 as error message comes up saying "Some import operations were not performed". please advise what is a solution please

    Urgent please
    anyone having issues with importing CR2 files into lightroom 5 as error message comes up saying "Some import operations were not performed". please advise what is a solution please

    Sounds like the folder Write permissions issue described here with a solution:
    "Some import operations were not performed" from camera import

  • Is anyone else having issues with importing files into FCP X

    Trying to import .mov files from older system into FCP X on a new iMac with Lion OSX.  Anyone else having similar issues?

    What kind of files are they?
    You may open them in Quicktime Player, and do a "Get Info" on them, and post that information here.
    It may be that they use some codec that FCP X can't handle.
    If that is the case, use the excellent and free program MPEG Streamclip to save them to Quicktime format using the ProRes codec.

  • Still Having issues with importing videos into imovie..

    OK, having heard that Apple took care of all the issues in Imove 08, I shelled out the money and I am still having the same **** problems. I now have a canon Vixia avc video camera. If i pull the card out after taking vids, imovie will import them. Now, the problem. For a year, I would just copy the stream folder containing the mts files. Imovie will not import them. I have even tried making the folder structure and then making a .dmg and mounting it. I also tried putting the .mts files onto a card that had the structure. Still no luck. I also used Toast Titanium 10 to convert the files to .movs and .mp4. It still will not import. How in the **** is this software supposed to be this user friendly if you cant even get the videos into it to work on them. hopefully someone has some answers.
    Thanks in advance
    Robert

    I had certain formats not working for me either. I may not be getting the jist of your importing problems but as long as you can get the files onto your computer, I would use the free software "Mpeg Streamclip" to convert everything. Once I used that I had instant success. Also make sure Perian (the free plugin you can get on apple's site) installed.
    Good luck!

  • Having issues with importing a FLV from Adobe Connect. Either the file is too large to import, the file corrupt or the sound will not play. In the Flash Pro 5.5 version it can only be viewed with sound but will not import so it cannot be converted, the ne

    Anyone have a clue how I can open or convert the Adobe Connect FLV file?

    I'm searching for an answer to almost the same exact problem, using almost the same exact hardware and software. Has an answer been found?
    The files that I'm trying to burn come from eMusic, and they are formatted mp3. Recently, (after the iTunes update to 9.2.3?,) they would not drag and drop from iTunes into Toast. From several different discussions I've tried working around this by dragging to the desktop first then dragging and dropping to Toast, going to Toast from a programmer's homemade help window, " iToons," and today, after talking with Apple support, going directly to Toast from my eMusic folder. Alas, all recordings do not perform like they use to. Sometimes they play and sometimes not. There is one I managed, that is listenable, but sometimes I have to put it in my car stereo over and over again as it gets ejected with an error code, sometimes, finally it takes it... Some of the recordings on other disks I've burned are not clean - they have white-noise sounds creeping in... I use to have none of these problems. One time as I was listening to a CD that managed to play, and it just stopped playing... Is there an answer out there to get back to how it use to be? Thanks for you help.

  • Having Issues with iTunes 10.5.3 and uninstalled. Cannot reinstall without upgrading to newest Snow Leopard? Using MacBook Pro running 10.5.8.

    Running OS X Leopard 10.5.8 and was having issues with my version of iTunes 10.5.3 (freezing and getting rainbow spinny wheel, not allowing me to do anything, while importing music from a different folder into the iTunes). Anyway, so I uninstalled iTunes and went to download the newest version (10.7 i believe) and after downloading and attempting to install, i was alerted that I cannot install and run this application without having the newest version of OS X 10.6 i believe. So, what I'm ultimately trying to figure out is if I need to spend $130(that i do not have) on Amazon to get the Snow Leopard 10.6.3 then pay another $20 in the App Store to upgrade to Mountain Lion as well? I need to have iTunes on this laptop due to having an iPhone 4 that needs to be able to be synced on this computer. Bottom Line is, I don't have really have $150 to upgrade all this at the current moment just to get iTunes back on my system. Any suggestions or am I basically having to drop the $150 just to get iTunes back so I can sync my iPhone 4 again? Ugh, this *****, really wish i hadn't uninstalled that version of iTunes..HELP!!! thanks in advance..

    Click here and install the software. If you decide to upgrade to 10.6 at some future point, phone the online Apple Store.
    (70951)

  • Mac Pro 6,1 STILL having issues with Open CL (4K scaling and SpeedGrade direct link grades)

    I've seen the staff responses to the issues of the new Mac Pro GPU saying that 10.9.4 fixes everything. For me, it has fixed my export issues, so I'm glad. I'm no longer getting lines and artifacts on my renders.
    That's great.
    However, I'm still having several issues, and they seem to be linked to Adobe and Open CL.
    Here's a video that shows what's going on:
    mac pro issues july 7 - YouTube
    Issue #1
    Like most of you probably, I'm doing 1080p exports of most things I'm working on. The first project shows a 1080p timeline with a mix of 4k, 5k, and 720p footage. Because zooming in so much on a 720p file in a 4k timeline looks so crappy, I'm doing 1080p timelines and scaling everything to the size it needs to be. I started in a 4k timeline then switched to 1080p because the 720p footage looked so terrible. However, in the 4k timeline, I didn't have any of the issues I'm showing in this first part of the video.
    When I switched to the 1080p timeline, I discovered a weird quirk: When I resize the 4k (or 5k) footage to the size it needs to be (which varies based on the frame I want), it goes back to the 100% view when I'm scrubbing through it. When I pause, the size of the video goes back to the way I set it. I show this in the video. Then I show what was my working solution for the time being: "scale to frame size", which brings all the videos to the size of the sequence frame size and works fine. Later, I turn off OpenCL in premiere and when I scrub through the video, it doesn't zoom back in or only stay at the size I set when stopped. For some reason all of these issues only happen at 50% scale or smaller. It doesn't happen at, say, 60%.
    I've tested this with raw R3D files and other 4K (or 5K) clips (even clips exported from After Effects) and the same thing happens. It doesn't seem to happen with 2.5k footage or 1080p footage.
    Issue #2
    This is the second project you'll see in the video.
    After grading in speedgrade (through direct link) I open my project back up in premiere and start playing it back. The video plays back with delays and frame drops. Now normally, this would be expected. But this is 1080p pro res footage, and this is just an effect added, and the yellow bar appears indicating that open CL should be accelerating the playback and it should do so smoothly.
    Maybe I was just wrong in assuming that a simple grade from speedgrade would be able to playback smoothly. I turn off the grade, and it plays normally.
    But then, when I turn off open cl and leave the grade on, the video plays back without ANY issues.
    So to me, it seems I'm still having issues with Open CL and adobe. I've found fixes that make it work temporarily, I don't need that kind of answer. However, I would like this to work. Is there something I'm doing wrong? Something I need to do to get this to work?
    Here are my specs:
    Mac Pro 6,1 (Late 2013)
    3 GHz 8-Core Intel Xeon E5
    64 GB 1867 MHz DDR3 ECC
    AMD FirePro D700 6144 MB (x2)
    OSX 10.9.4
    Firmware: 2.20f18
    What you're seeing is latest version of Premiere (CC 2014, v8.0.0 [169] Build)
    Everything here is ProRes 422, running from a Promise Pegasus2 R4 RAID (drives: 4x Seagate Desktop HDD 4 TB SATA 6Gb/s NCQ 64MB Cache 3.5-Inch Internal Bare Drive ST4000DM000) (that's thunderbolt 2).
    I've done everything: I've restarted my computer hundreds of times, I've reset NVRAM and PRAM and done power cycles.
    This isn't just some issue that started with 10.9.3 of OSX, the 4k issues happened when I first switched to a 1080p sequence back in February (2014) or so, which means it was an issue even with 10.9.2 and the previous firmware release.
    I've reported this issue to adobe.

    That crash appears to be casued by the Facebook plug-in.
    Create a new account (systempreferences -> accounts or Users & Groups on 10.7 and 10.8), make a new Library in that account, import some shots  and see if the problem is repeated there. If it is, then a re-install of the app might be indicated. If it's not, then it's likely the app is okay and the problem is something in the main account.

  • Issues with Custom Package in Lightroom 3...please help

    I am having issues with the custom package in lightroom 3. I am selecting diferent cell sizes (with different aspect ratios) and placing multiple images in these cells.
    On screen everything looks good, but when it actually prints some of these cells are coming out stretched!! For example, the 6x4 cell comes out fine (same aspect ratio as the original capture), but i have 2 x 1.5 inch cell whose image comes out stretched??
    The first thing I thought of was the "zoom to fit" option, but this is not present in picture package.
    Then I thought it perhaps it was something to do with the my print settins, but cannot find anything there.

    I am having the same issue.  I used a Matt Kloskowski print grid and when I printed it, or printed to file, some of the images in the 15 that were created in the template were distorted.  Some the faces became wider and some narrower.  Not just zoomed to fit.  On screen it all looks correct.  Many others on the forum where the template was posted don't seem to have this issue.  I created a template myself just in case that was it but I got the same problem as walenahs.  I tried to figure out what he had done but I didn't get it.
    I have attached the two images.  You can see the distortion in the second image on the top row (too narrow), and on the second row, the second in and second down, black and white (too wide).
    Thanks

  • JDev 10.1.3.3 - issues with imported Business Components

    Hi,
    I have got some issues with importing Business Components in JDev 10.1.3.3.
    I cannot discover/use the imported components.
    What I did is the folowing:
    1. In a existing project I extended the default base-classes to create our own layer
    2. created a project called ModelShared
    2a. configured the project to use the base-classes I created in step 1
    2b. created an entitybased-viewobject (RefCodesByDomain)
    2c. created bc deployment-descriptors
    3. created a project called RelatieModel in the same workspace as ModelShared
    3a. added dependencies to the deployment-descriptors as well as the project created in step 2
    3b. configured the project to use the base-classes I created in step 1
    3c. imported business components
    Although I did not recieve any errors during the import of business components, I am unable to add the vo (RefCodesByDomain) to a service.
    I do see the package which contains the vo but is has no entries.
    Importing the business components to a new BC Project in a seperate workspace did succeed (I could reuse the vo).
    I tested a little further and the folowing occurred:
    4. I created a new vo in the ModelShared Project
    5. I deployed the ModelShared
    6. Restarted JDeveloper
    7. Got the folowing error message in the console window when expanding a service in my datacontrol pallette:
    INFO: oracle.adf.share.config.ADFConfigFactory No META-INF/adf-config.xml found
    1-sep-2008 13:23:27 oracle.adf.dt.controls.DataControlsTreeWillExpandListener treeWillExpand
    FINER: THROW
    java.lang.NullPointerException
            at oracle.adf.dt.objects.JUDTViewReferenceAccessorDefinition.init(JUDTViewReferenceAccessorDefinition.java:108)
            at oracle.adf.dt.objects.JUDTViewReferenceAccessorDefinition.<init>(JUDTViewReferenceAccessorDefinition.java:98)
            at oracle.adfdt.internal.meta.bc4j.BC4JDataControlDefinition.createViewObjectDefinition(BC4JDataControlDefinition.java:228)
            at oracle.adfdt.internal.meta.bc4j.BC4JDataControlDefinition.addViewObjects(BC4JDataControlDefinition.java:208)
            at oracle.adfdt.internal.meta.bc4j.BC4JDataControlDefinition.loadStructure(BC4JDataControlDefinition.java:110)
            at oracle.adfdt.internal.meta.bc4j.BC4JDataControlDefinition.getStructure(BC4JDataControlDefinition.java:407)
            at oracle.adf.dt.controls.treemodel.jsr227.JSR227DataControlTreeNode.loadChildNodes(JSR227DataControlTreeNode.java:129)
    8. In my other "fresh" bc project I was able to use the newly created vo.
    9. When I added a VO to my shared project, all projects that are refering to the shared project loose their vo's in the data-controlpannel
    Do you have any suggestions?
    Regards,
    Romano

    Hi,
    since this appears to be a WebCenter related issue, I suggest to try the Webcenter forum WebCenter Portal or to log a bug
    Frank

  • TS1702 Renewed my subscription with the Sun app, was charged £0.69 but app won't load seem that I am not the only one having issue with this app. How can I claim my money back?

    Renewed my subscription with the Sun app, was charged £0.69 but app won't load seem that I am not the only one having issue with this app. How can I claim my money back?

    It sounds like you may have multiple problems, but none of them are likely to be caused by malware.
    First, the internet-related issues may be related to adware or a network compromise. I tend to lean more towards the latter, based on your description of the problem. See:
    http://www.adwaremedic.com/kb/baddns.php
    http://www.adwaremedic.com/kb/hackedrouter.php
    If investigation shows that this is not a network-specific issue, then it's probably adware. See my Adware Removal Guide for help finding and removing it. Note that you mention AdBlock as if it should have prevented this, but it's important to understand that ad blockers do not protect you against adware in any way. Neither would any kind of anti-virus software, which often doesn't detect adware.
    As for the other issues, it sounds like you've got some serious corruption. I would be inclined to say it sounds like a failing drive, except it sounds like you just got it replaced. How did you get all your files back after the new drive was installed?
    (Fair disclosure: I may receive compensation from links to my sites, TheSafeMac.com and AdwareMedic.com, in the form of buttons allowing for donations. Donations are not required to use my site or software.)

  • HT204406 Has iTunes Match been flaky for anyone else lately. I have been having issues with some of my songs.

    Has iTunes Match been flaky for anyone else lately. I have been having issues with some of my songs. Some of the songs play, some skip.

    Either import your Songs into a new clean library, or rebuild your existing library - it would appear your current library is corrupt.

  • I am having issues with my computer recognizing my phone when attached. I am trying to transfer pictures to my computer but it doesn't even see the phone.

    I am having issues with my computer recognizing my phone when attached. I am trying to transfer pictures to my computer but it doesn't even see the phone.

    skinaked101,
    Look no further help is here! I can understand the importance of being able to keep your pictures safe on your computer.
    Have you tried using different USB ports on your computer, as your fellow community member suggested?
    Visit http://www.verizonwireless.com/support/knowledge-base-97259/ for complete steps to transfer the pictures from your phone to computer.
    JohnB_VZW
    Follow us on Twitter @VZWSupport
    If my response answered your question please click the �Correct Answer� button under my response. This ensures others can benefit from our conversation. Thanks in advance for your help with this!!

  • Having issues with profile manager on 10.9 loosing users/device assignments.

    I'm having issues with profile manager on 10.9 loosing users/device assignments. Luckly I only have arround 70 devices added so far. The first time it happened I thought it was just a freak thing, but it has just happened again. What I find weird is nothing on the server was changed, no devices added. So when this happens my users phones lose access to email, because I'm using variables, which rely on the user being assigned to the device. Anyone know how to fix this, and if not. Does anyone know how to backup and restore just profile manager in 10.9. Thanks.

    I enabled all users in my AD "Domain Users" group access to "Profile Manager". I had also initially enabled "Profile Manager" access for a few individual users. Those users did not loss the device assignments. I'm not absolutely sure why/if allowing access for a group is causing this issue. Enabling access for each person would be very time consuming.... Maybe adding access to the individual users is importing that user into OD?

  • I'm having issues with iCloud backup with comcast since iO6 update

    I'm having issues with iCloud backup with comcast since iO6 update.  I'm able to back via work wifi but not at home.  Any ideas?

    Hi BmoreHunter.
         As far as using the bridge mode method you'd need to see what CLJDOhas to say, as that user is the only one that I see in this thread who used this method. The method that worked for me is different. I went out and bought a new modem. This made the most sense to me since the firmware in the unit that comcast gave me had issues and I am paying to rent the thing, I figured that I'll save some money if I just buy my own.
         I ended up purchasing a motorola SURFboard eXtreme (model SB6121) for $70 (happened to be on sale) from my local Target. For another $7 I was able to secure a 2yr warranty against failure, which was my only hesitation in buying vs renting.
         This modem should work just fine for you since you are a comcast customer. If you decide to go with a different modem, the important thing is to make sure that you purchase a modem that is compatible with the technology that your ISP (in this case comcast) uses. Also DOCSIS 3.0 is the "flavor" of cable modem you want as it will give you better performace than DOCSIS 2.0 devices (such as an older Motorola SURFboard).
         Once you buy the modem you will have to call comcast and have them add the modem to your account. They'll ask for the MAC address of the modem, then send a re-set signal to it, so make sure you are home when you call and can connect/disconnect the modem as needed. After your modem is added to your account and up and running you can then connect your new AirPort Express to the modem (via ethernet cable) and you should be all set!

  • Having issues with putting purchased music back into iTunes after reinstall

    I have been having issues with iTunes closing itself out right after I open it. I deleted the program, then re-installed it, which fixed the problems with quitting. However, I cannot copy my previous library back into iTunes. I saved the iTunes music file and the .xml file to my desktop before uninstalling the program. When I tried to add the music back into iTunes, I keep getting this message: Attempting to copy the disk "Macintosh HD" failed. The disk could not be read from or written to. It does not appear on all songs that I tried to add back, but it happened for quite a few of my purchased songs. Is there any way to fix the files or do I need to download the songs again? I tried running the Disk Utility to repair Permissions, but that has not helped with anything.
    I am running iTunes on a MacBook with Mac OS X 10. 4. 11, if that will help with anything.

    jjdevney wrote:
    I had to reinstall Windows XP, erasing everything on the hard disk. I had saved the music files with backup software, so I now have them back. But iTunes won't add them to my library. I tried importing songs from a new CD to see where iTunes put those files, and then copying an album folder into the same location. But Windows wouldn't copy the files inside the foder. Nearly all the songs were originally taken from CDs in my collection, and the songs are still on my iPod Nano.
    Wow,
    Wonder why XP won't let you copy files?, perhaps you used a different user name?
    Or these are the old DRM versions of the songs? You should be able to log into your iTunes account and authorize the computer and iTunes should recognize the songs.
    Well since you have the iPod Nano, you can head over to iLounge and ask them what current third party software works to move your iPod Nano music back to iTunes.
    Hope that works out for you

Maybe you are looking for

  • How to find out the source of an event fired by button in a table in WD?

    Hi experts, I'm new to Web Dynpro and I need to know how to find out the source of an event (IWDCustomEvent) fired by a button in a table? I need to know which one is the clicked button (on which row)? Help will be appreciated Regards

  • Create vendor in ERP R/3 with internal number range

    HI, When I create a new vendor from MDM in R/3 with internal number range ADRMAS is processed OK but CREMDM is in status 51 because of missing address data. According to sap note  1052964 (se below) ADRMAS must be the first IDOC and it should contain

  • How do I trim the file size?

    All of a sudden I went from 400MB for a 2.5 minute movie to over 1GB with a 3.5M movie. Are there any tricks to trimming the file size so I can upload to websites? I am @ 104GB and need to shave 5GB off the file size, which should be 750GB. Any help

  • Error in process chain pushing step

    Hi Experts, We encountered an error in process chain pushing step. The error is "Process ZXXXX, variant 4UBK25S73O99DNLFQ0Q55EBTY, ended with invalid status". Data is pushing from OHD to PI/XI system. Unable to trace error and even not able to see th

  • Count multiple nodes in XML using xPath

    Hi', How to count the CUSTSERIAL node in the below XML using xPath. <missingICCRec> <MissingField xmlns="http://www.Google.com/MissingFields/v1.0"> <CUSTSERIAL xmlns="http://Google.com/InboundService">23809002RN</CUSTSERIAL> <CUSTSERIAL xmlns="http:/