Package not seen

y wont this code work, Paycalc.class is compiled and in a dir called epcpackage, along with an Employee class. The epcpackage is imported into the Epc class that tries to use this code. Paycalc receives a string and an int, and should give back a double value:
EPC CLASS CODE, PACKAGE CLASS UTILISATION:
payamount = Paycalc(empid, hours); //return a double value
I have this at bottom of Paycalc to return a "payrate * Hours" double value:
return hrs*payratenum2;

im new at this, so please bear with me
my classes in my package have a main method, i thought
that any values would be caught by the constructor,
then passed to the main method of each class?
Usually only one class in an Application has a main method and that is the one that is called to run the Application. All other classes (and the one with the main in it) have constructors that can be called by any cless that wants to. The constructor returns to the calling class an instance of the class just constructed using 'new'.
You better post some code (more than before) for me to help more.
If you post code please put \[code\] .... your code .... \[code\] around it. Note: Don't put the '\' in they are there to force this post to show them.
Finally, if I understand what you mean there is no way that a value will be caught by the constructor of a class and then passed to the main method. The:
  public static void main(String[] args) is called from the command line when you run the program. So if Paycalc has a line in it like the one above then on the command line you can type:
java.exe yourpackage.Paycalc
This will call the static main method in Paycalc which in turn then can do whatever it likes.

Similar Messages

  • Package not seen under user sys!

    hello;
    I view packages under sys user;
    but not our package seen under sys; I create it with user sys
    any idea
    regrads
    siyavus

    11g R1
    11.1.0.7
    create or replace procedure SYS.mailserver_acl(
    aacl varchar2,
    acomment varchar2,
    aprincipal varchar2,
    aisgrant boolean,
    aprivilege varchar2,
    aserver varchar2,
    aport number)
    is
    begin
    DBMS_NETWORK_ACL_ADMIN.DROP_ACL(aacl);
    dbms_output.put_line(‘ACL dropped…..’);
    exception
    when others then
    dbms_output.put_line(‘Error dropping ACL: ‘||aacl);
    dbms_output.put_line(sqlerrm);
    end;
    begin
    DBMS_NETWORK_ACL_ADMIN.CREATE_ACL(aacl,acomment,aprincipal,aisgrant,aprivilege);
    dbms_output.put_line(‘ACL created…..’);
    exception
    when others then
    dbms_output.put_line(‘Error creating ACL: ‘||aacl);
    dbms_output.put_line(sqlerrm);
    end;
    begin
    DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL(aacl,aserver,aport);
    dbms_output.put_line(‘ACL assigned…..’);
    exception
    when others then
    dbms_output.put_line(‘Error assigning ACL: ‘||aacl);
    dbms_output.put_line(sqlerrm);
    end;
    commit;
    dbms_output.put_line(‘ACL commited…..’);
    end;
    Edited by: sak on Jul 1, 2010 4:36 PM

  • Solution ID 201056033 implemented but changes to signin.html still not seen

    Customer have implemented solution id 201056033 in WebLogic 9.2 MP3 patch 2 with PT 8.49.12.
    However, when they change signin.html for a web site the change is not seen. Browser cache has been purged.
    Yes, the web server were brought down and back up.
    Yes, the solution is implemented. It does not work as documented.
    Problem being:
    Able to change static HTML and have it seen by the user's
    browser. The web server is still caching the static HTML page even
    though the Solution ID says that doing what is documented in the
    solution will solve the problem.
    I need an answer to why the Solution ID is not working. I need
    to be able to change statuc HTML and have the web server serve it
    out to the browser.
    weblogic.xml has been updated as solution 201056033, that is to add
    '<resource-reload-check-secs>0</resource-reload-check-secs>':
    <container-descriptor>
    <servlet-reload-check-secs>-1</servlet-reload-check-secs>
    <session-monitoring-enabled>true</session-monitoring-enabled>
    <resource-reload-check-secs>0</resource-reload-check-secs>
    </container-descriptor>
    Implemented 201056033 . It does not solve the problem. Why does it not
    solve the problem?
    Any thoughts , pls help.
    Thanks

    It's not working because this change only causes the server side to reload the resource. The browser still has it cached, so it ignores it.
    What you have to do is send HTTP headers along with the response that convinces the browser not to cache the resource. One way to do this is to implement a servlet filter that injects the appropriate HTTP headers to cause this.
    The code for the class could look like this (I haven't declared it in a package, but you should):
    import java.io.IOException;
    import javax.servlet.Filter;
    import javax.servlet.FilterChain;
    import javax.servlet.FilterConfig;
    import javax.servlet.ServletException;
    import javax.servlet.ServletRequest;
    import javax.servlet.ServletResponse;
    import javax.servlet.http.HttpServletResponse;
    public class NoCachingFilter implements Filter
         private FilterConfig filterConfig = null;
         public void destroy()
              this.filterConfig = null;
         public void init(FilterConfig arg0) throws ServletException
              this.filterConfig = filterConfig;
         public void doFilter(ServletRequest request,
                                  ServletResponse response,
                                  FilterChain chain)
         throws IOException, ServletException
         HttpServletResponse httpResponse = (HttpServletResponse) response;
         httpResponse.setHeader("Cache-Control", "no-cache");
         httpResponse.setDateHeader("Expires", 0);
         httpResponse.setHeader("Pragma", "No-cache");
         chain.doFilter(request, response);
    You would declare this filter in your web.xml like this:
    <filter>
    <filter-name>No Caching Filter</filter-name>
    <filter-class>carousel.NoCachingFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>No Caching Filter</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>
    --------------------------

  • My pictures folder for iphoto is not seen anywhere..

    my pictures are not seen anywhere on my computer. it seems to be missing in a folder or the folder was deleted i am not too sure. when i go to my name computer and go to pictures the only option is the iphoto recovered photos library and not the iphoto library itself. i hope not to have to redownload this since i have over 5,000 photos in my library. hope you can help

    This one's more up to date - and pretty pictures too...
    With iPhoto 7 (iLife 08) the old iPhoto Library Folder is now a Unix Style Package File. The change was made to the format of the iPhoto library because many users were inadvertently corrupting their library by browsing through it with other software or making changes in it themselves.
    There are many, many ways to access your files in iPhoto:
    For 10.5 users: You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Apple-Click for selecting multiple pics.
    Uploaded with plasq's Skitch!
    To upload to a site that does not have an iPhoto Export Plug-in the recommended way is to Select the Pic in the iPhoto Window and go File -> Export and export the pic to the desktop, then upload from there. After the upload you can trash the pic on the desktop. It's only a copy and your original is safe in iPhoto.
    This is also true for emailing with Web-based services. If you're using Gmail you can use THIS
    If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto. With 10.5 you can access the Library from the New Message Window in Mail:
    Uploaded with plasq's Skitch!
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    Or, if you want to access the files with iPhoto not running, then create a Media Browser using Automator (takes about 10 seconds) or use THIS
    Other options include:
    1. *Drag and Drop*: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    2. *File -> Export*: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    3. *Show File*: Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.
    You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.
    Regards
    TD

  • Ipod not seen by windows or itunes

    Hello, I'm totally frustrated and have been searching for hours. Please someone help.
    - Nano 8 gb
    - Windows xp
    Neither Windows (my computer) nor Itunes sees my ipod. Ipod is working fine: did the menu/select thing, cable is good.
    When I plug the ipod in the usb port I hear a bleep and I get a message bottom right "new hardware found ipod"and the icon is a usb cable. Ipod is not in My computer window. Ipod is not seen by Itunes
    Tried Device Manager/I see Ipod with a ? Yellow. If i right click on it and do update driver the ms computer management system crashes and sends error report.
    I tried dowloading the USB driver and placing it in the directory, but I got stuck because there is no windows/inf directory. I tried to update the usb driver with the same ms crash.
    I'm completely frustrated, please can someone help me.

    I was having the same problem the other day. I'm not sure what it was but I think it has something to do with the i tunes and i pod 1.2 update.
    What I did was:
    1. Uninstall i tunes
    2. Restart my computer
    3. pluged my ipod in a slow usb line
    4. waited until my pc recognized it in there. It took a little while.
    5. re installed i tunes from apple.com
    6. waited until i tunes recognized my ipod
    7. updated my i pod with my library it took a long time because i was in the slow usb plug.
    8. re plugged my ipod into a 2.0 usb line
    9. i tunes recognized it.
    10. I then updated my ipod to the new 1.2 version
    11. The problem started happening again
    12 I repeated what I did before and now it is working.
    It was very frustrating! I hope it works for you.1

  • 5th Gen IPOD - Won't Sync and Not Seen by Windows

    Help!!!
    Tried the 5 R's. I have the IPOD in Disk Mode but whilst it will happily charge, it still is not seen by ITunes or Windows Explorer (though is visible inDisk Defragmenter). I have already un-installed and re-installed ITunes etc.
    Prior to putting it into Disk Mode the IPOD still had my library on it and owuld happily work.

    Have you had a chance to look at these troubleshooting pages? They may be of some help:
    iPod missing in My Computer and in iTunes
    iPod is not recognized properly by computer when USB drivers are not installed properly or are out of date
    If you are using a laptop, this page might help: iPod not recognized when connected to Windows laptop over USB

  • IPod touch: Seen by XP, not seen on OSX.

    Strange one.
    1st Gen ipod Touch with latest software(think its 3.3), latest version of itunes.
    Its seen and works perfect with Windows XP.
    I plug it into my Mac Book Pro, running Lion and its not seen. nothing happens wihen i plug it in.
    I have reset, restored and wiped the ipod from the device itself and its still not seen.
    I also tried it on a Win 7 machine and its NOT seen either.
    Is this something crazy to do with 32bit architecture. Its seen on Win XP which is 32 but not by  64bit Lion and Win 7.
    Any suggestions?

    Have a Look Here
    Device Not Recognised
    For PC
    http://support.apple.com/kb/TS1538
    For Mac
    http://support.apple.com/kb/ts1591

  • HT4356 My iPad does not find the printer. I have tried the HP app and it works, but in any other app the printer is not seen. How do I get this printer visible to the iPad. All my other network computers find and print with out a problem.

    My iPad does not find the printer. I have tried the HP app and it works, but in any other app the printer is not seen. How do I get this printer visible to the iPad. All my other network computers find and print with out a problem.

    hi
    could you tell us what the other app is please

  • Delta package not fetching all records from Delta queue in r/3

    Hello,
    I have loaded Goods Movement Data using 2LIS_03_BF datasource into my BI system.
    The Delta has been initialized and everyday the delta is being moved from r/3.
    I observed that when I execute my delta package not all delta records are fetched into PSA from r/3.
    For Ex: Before starting my delta package I checked in SMQ1 of my R/3 system and see that there are around 1000 records.On executing the delta package I see that the record count is reduced from 1000 to 400 in SMQ1.On executing the delta package again I get the remaining 400 records into my PSA.
    Shouldn't the delta package get all records from the queue on single execution??
    Is there some setting to define the nr of records to be loaded?
    I'm confused with this behaviour.Please help me understand this behaviour.
    Thank You.

    Hello,
          First thing: the data is not transferred from the SMQ1 queue, rather the data is transfered to BW from the RSA7 Delta queue. You need to check the number of records present in the RSA7 queue.
    Since SMQ1 is involved, i think you are using the unserialized V3 update method. In this method, when data is first written to the application tables, it is first transferred to the SMQ1 update queue,then via a job to the LBWQ extractor queue and then to the RSA7 delta queue. So the number of entries that you see in the SMQ1 queue are not the number of entries that have to be transferred to BW but rather the records that are waiting to be transferred to the extractor queue in LBWQ. Similarly, in LBWQ, the number of entries displayed here are not the no of entries that are going to be transferred to BW, they are the no of entries that will be transferred to the delta queue RSA7 when the next v3 update job runs.
    If you want to check the number of records that will be transferred to BW, select the datasource in rsa7 and then click on the display data entries button.
    Hope this helps.
    Regards.

  • Attachments and history of my emails are not seen by Windows users

    attachments and history of my emails are not seen by Windows users

    Just guessing at what you mean, try this:
    In Mail, while composing a message, go to Mail's menu and click:
    Edit > Attachments > Always send Windows-friendly attachments

  • In my iPad mini some apps are not seen (voice recorder, calculator, compass etc)

    in my iPad mini some apps are not seen (voice recorder, calculator, compass etc)er

    Those apps aren't included in iOS on iPads
    iPad Mini built-in apps : http://www.apple.com/ipad-mini/built-in-apps/
    iPad manual (which has a chapter on each of the built-in apps) : http://support.apple.com/manuals/ipad/

  • Data of measure is not seen in  webi report when drill is disabled

    Hi
    i have created a hierarchy in universe on which i drill down in webi reports
    the problem is that  i have drilled my report till the last level and saved it
    the object  on which im drilling  is set as a section in the report
    so i have added a measure in the table under that section
    now the measure has different value at different level of drillings
    i.e for the last level of the drill i use one measure and after that as i drill up i use different  measure
    for all other level of drilling
    every thing is working fine but the problem  is
    when i open report in view mode
    the measure data is not seen
    only when i enable drill the measure data is seen
    i have done something like thi
    i have used drillfilters in webi reports for checking which level we are in drill mode so as to display the measure value based on drill level

    Seems like DrillFilters needs the drillmode to work fine..
    why don't save the report with the drill button enabled?

  • After upgrading to Mountain lion the hyperlink button is not seen in Preview.  Anyone knows ho to get it back?

    After upgrading to Mountain lion the hyperlink button is not seen in Preview.  Anyone knows ho to get it back?

    Augend wrote:
    After upgrading to Mountain lion the hyperlink button is not seen in Preview.  Anyone knows ho to get it back?
    There have been a few threads about this.  The feature seems to have gone missing in Mountain Lion even though the Help for Preview still mentions it.
    I've filed a bug report on it.
    Matt

  • The salesperson for my iphone 4 said on Christmas morning we could go to our online account, select my number, select to change my SIM card, and enter the ICCID number so that I'd be able to use my iphone 4 today. I have not seen any such steps. Help?

    The salesperson for my iphone 4 said on Christmas morning we could go to our online account, select my number, select to change my SIM card, and enter the ICCID number so that I'd be able to use my iphone 4 today instead of my old phone (not an iphone). I have not seen any such steps. Help?

    I suspect the salesperson that told you that meant your online account with your carrier...have you tried logging into your carrier account online? To do this will require the sim number on your sim card, as well as the phone's IMEI number...you get the sim number off the sim card & the IMEI number, for the phone, is printed on the box.

  • I have migrated a user's mysite in sharepoint 2013 from one domain to another.The issue is that old activtiy data i.e newsfeed data is not seen

    For eg :
    I had a user called domain1\user1 whose mysite was created as http://my/personal/user1.
    Now this user moves to another domain say domain2\user1.Since mysite is already present no new mysite will be created.
    Move-SPUser –Identity "domain1\user1" –NewAlias "domain2\user1"After executing the above query,user is migrated and is able to login to the mysite.But the newsfeed data is not seen.I can see it in the microfeed list but not in the newsfeed page.All other data like documents ,tags,people etc is present
    harsh damania

    it should move all the profile data alonwith, i would check the ULS logs for any clue.
    also make sure following timer jobs ran successfully
    User Profile service application name - User Profile to SharePoint Quick Synchronization
    User Profile service application name - Feed Cache Repopulation
    User Profile service application name - Activity Feed Job
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

Maybe you are looking for

  • Why is very long (about 30 seconds) to connect another distant computer using Screen Sharing under Yosemite ?

    Hello, Before Yosemite (under Mavericks and less), it was possible to connect immediately another distant computer (over internet) with Screen Sharing (using Command-K or on Finder Menu-Go and submenu Connect To The Server, and putting the address li

  • CS6 Bridge "Auto-Stack" question

    As a landscape photographer I shoot multiple exposures of the same image for use in HDR.  I recently used the Auto-Stack feature under Stacks in Bridge.  It did not work well, it grouped the images incorrectly.  Now I want to undo this and go back to

  • Applet jar file

    I have an applet embedded in a jsp as follows           <applet code="MyApplet.class" archive="client.jar" height="1" id="APface" name="APIface" width="1" mayscript="true"> </applet> Now as mentions MyApplet.class is archived in the client.jar file.

  • Agentry client default server list

    Hi Experts, How to maintain a list of default servers on the Windows Agentry client and ATE for SMP 3.0 Agentry application? We need to key-in server details every time we reset the client and connect to other servers. Thanks! Tags edited by: Michael

  • Goods Receipt Posting in Decentralized WMS

    Dear Friends I have a Decentralized WMS being implemented along with central SAP Retail system, Can anyone help me with below i understand that Inbound delivery is replicated in DWMS TO is created and confirmed. Now Do I need to post MIGO / GRN in DW