Package can not resolve

Hi I have this import package
import java.util.regex.*;
Now this package is only in 1.4 api not 1.3 api.
I am using websphere 5.1 with follwoing jre
IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v5\java\jre.
but error message is coming import can not be resolved.
now at installation time websphere uses 1.3 but i changed wverywhere from 1.3 to 1.4 but problem still persisting
thanxs and regards

use base_v51 not base_v5.
solved

Similar Messages

  • HT204416 My Safari is no longer working with many sites.  However Chrome and Firefox work fine.  I would like to re-install Safari in an effort to clear up the problem I can not resolve.

    My Safari is no longer working with many sites.  However Chrome and Firefox work fine.  I would like to re-install Safari in an effort to clear up the problem I can not resolve.

    1. From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Extensions
    Turn all extensions OFF and test. If the problem is resolved, turn extensions back ON and then disable them one or a few at a time until you find the culprit.
    2. Select
              Safari ▹ Preferences... ▹ Privacy ▹ Remove All Website Data...
    and confirm. Test.
    3. If the above steps don't resolve the problem, please describe it in more detail.

  • When i go to unistall i get, this pack package can not be open.Verify that the pack package exists a

    When i go to unistall i get, this pack package can not be open.Verify
    that the pack package exists and that u can acess it.Or contact the application
    vendor, to verify that this is a valid windows installer patch package.

    I am using a new hp laptop that is running windows 7

  • Hello when i try to down load itunes if says "This installation package can not be opened. Verify that the package exist and that can access it.  or contact provider" what do i do LOST

    ello when i try to down load itunes if says "This installation package can not be opened. Verify that the package exist and that can access it.  or contact provider" what do i do LOST

    Hi MrJavonte15,
    If you are having issues installing iTunes on your Windows machine, you may want to take a look at the following article:
    Apple Support: Trouble installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/ht1926
    If you have previously installed iTunes and continue to have issues, you may want to remove and reinstall iTunes:
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    http://support.apple.com/kb/ht1925
    Cheers,
    - Brenden

  • Service 'Apple Mobile Device' failed to start. Verify that you have sufficient services. i have followed all fixes and can not resolve this problem?

    I can not get apple mobile device to activate. When reinstalling itunes it still comes up with, Service 'Apple Mobile Device' failed to start. Verify that you have sufficient services. I have followed all fixes and can not resolve this problem?

    Thanks to the suggestion of Doehunter the problem has been resolved

  • Error in Hashtable put method-Can not resolve symbol

    Hi there!I am new to using java.util.Hashtable.
    I am using it for a command line instant messaging program for holding the list of clients and list of client names currently connected to the server.
    However when I compile my server with the command javac server.java it seems to give errors can not resolve symbol method put (java.lang.object,int).
    Here is my code for my server:
    * @(#)server.java
    * @author
    * @version 1.00 2008/3/22
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.io.PrintWriter;
    import java.net.ServerSocket;
    import java.net.Socket;
    import java.util.*;
    public class server {
              static int key1=0;
              static Hashtable nameHolder=new Hashtable();
              //static ArrayList nameHolder=new ArrayList();
              //static ArrayList clientsConnected =new ArrayList();
              static Hashtable clientsConnected =new Hashtable();
         public static void main(String[] args) throws IOException {
              //nameHolder.add("controlelement");
              Socket connect=null;
              String name =null;
              PrintWriter out=null;
              BufferedReader in =null;
              String machinename;
              int port=0;
         ServerSocket serverSocket = null;
         serverSocket = new ServerSocket(2222);
         boolean listeningports = true;
         try {
                   if(args.length > 0)
                   port = Integer.parseInt(args[0]);
                   System.out.println(port);
                   else
                        System.out.println("You must enter port number");
                        System.exit(1);
                   while(true)
                             System.out.println("Hakan");
                             connect=serverSocket.accept();
                   in = new BufferedReader(new InputStreamReader(connect.getInputStream()));
                        System.out.println("Hakan");
                   String girdi = in.readLine();
                   StringTokenizer nameAl=new StringTokenizer(girdi);
                   String ad=null;
                   String host=null;
                   int portofclient=0;
                   int m=0;
                   while(nameAl.hasMoreTokens())
                        if(m==0)
                             ad=nameAl.nextToken();
                             System.out.println("Adim"+ad);
                        else if(m==1)
                             host=nameAl.nextToken();
                             System.out.println("Hostum"+host);
                        else if(m==2)
                             portofclient = Integer.parseInt(nameAl.nextToken());
                             System.out.println("Listening portum"+portofclient);
                             break;
                        m++;
                   out = new PrintWriter(connect.getOutputStream(), true);
                   System.out.println("Haso");
                   if(!isUsed(ad))
                        System.out.println(girdi);
                        System.out.println("H�so");
                        //Object fason=(Object)ad;
                        nameHolder.put(key1,ad);
    //The error seems to occur here
                        client myclient=new client(ad,host,portofclient);
                        //Object garson=(Object)myclient;
                        clientsConnected.put(key1,myclient);
                        key1++;
                        //clientInfoHolder.add(girdi);
                        out.println("Kullanımda");
                        System.out.println("Haso");
                        new MultiClientManager(connect).start();
                   else
                        //System.out.println("kulanilmaz");
                        out.println("Kullanim disi");
         catch(Exception e)
              System.out.println("You did not specify port number");
              System.out.println("Or connection was not established due to specifying invalid or used port");
              e.printStackTrace();
         public static boolean isUsed( String name )
                   if( nameHolder.containsValue(name) )
                        return true;
                   return false;
         public static client Ask(String name)
              ArrayList lombak=(ArrayList) clientsConnected.values();
              for(int i=0;i<lombak.size();i++)
                   client semsi = (client)lombak.get(i);
                   if(semsi.nickname.compareTo(name)==0)
                        return semsi;
              return null;
         public static int returnkeyoffromclients(String name)
              ArrayList lombak=(ArrayList)clientsConnected.values();
              for(int i=0;i<lombak.size();i++)
                   client semsi = (client)lombak.get(i);
                   if(semsi.nickname.compareTo(name)==0)
                        return i;
              return 0;
         public static int returnkeyoffromnames(String name)
              ArrayList lombak=(ArrayList)nameHolder.values();
              for(int i=0;i<lombak.size();i++)
                   String semsi = lombak.get(i).toString();
                   if(semsi.compareTo(name)==0)
                        return i;
              return 0;
    }

    Excuse me for not putting my code between tags. I am just sleepless.
    I am sending it again.
    * @(#)server.java
    * @author
    * @version 1.00 2008/3/22
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.io.PrintWriter;
    import java.net.ServerSocket;
    import java.net.Socket;
    import java.util.*;
    public class server  {
              static int key1=0;
              static Hashtable nameHolder=new Hashtable();
              //static ArrayList nameHolder=new ArrayList();
              //static ArrayList clientsConnected =new ArrayList();
              static Hashtable clientsConnected =new Hashtable();
             public static void main(String[] args) throws IOException {
                  //nameHolder.add("controlelement");
                  Socket connect=null;
                  String name =null;
                  PrintWriter out=null;
                  BufferedReader in =null;
                  String machinename;
                  int port=0;
                 ServerSocket serverSocket = null;
                 serverSocket = new ServerSocket(2222);
                 boolean listeningports = true;
                 try {
                        if(args.length > 0)
                             port = Integer.parseInt(args[0]);
                             System.out.println(port);
                        else
                             System.out.println("You must enter port number");
                             System.exit(1);
                        while(true)
                                  System.out.println("Hakan");
                                   connect=serverSocket.accept();
                             in = new BufferedReader(new InputStreamReader(connect.getInputStream()));
                                  System.out.println("Hakan");
                             String girdi = in.readLine();
                             StringTokenizer nameAl=new StringTokenizer(girdi);
                             String ad=null;
                             String host=null;
                             int portofclient=0;
                             int m=0;
                             while(nameAl.hasMoreTokens())
                                  if(m==0)
                                       ad=nameAl.nextToken();
                                       System.out.println("Adim"+ad);
                                  else if(m==1)
                                       host=nameAl.nextToken();
                                       System.out.println("Hostum"+host);
                                  else if(m==2)
                                       portofclient = Integer.parseInt(nameAl.nextToken());
                                       System.out.println("Listening portum"+portofclient);
                                       break;
                                  m++;
                             out = new PrintWriter(connect.getOutputStream(), true);
                             System.out.println("Haso");
                             if(!isUsed(ad))
                                  System.out.println(girdi);
                                  System.out.println("H�so");
                                  //Object fason=(Object)ad;
                                  nameHolder.put(key1,ad);
                                  client myclient=new client(ad,host,portofclient);
                                  //Object garson=(Object)myclient;
                                  clientsConnected.put(key1,myclient);
                                  key1++;
                                  //clientInfoHolder.add(girdi);
                                  out.println("Kullan&#305;mda");
                                  System.out.println("Haso");
                                  new MultiClientManager(connect).start();
                             else
                                  //System.out.println("kulanilmaz");
                                  out.println("Kullanim disi");
                 catch(Exception e)
                      System.out.println("You did not specify port number");
                      System.out.println("Or connection was not established due to specifying invalid or used port");
                      e.printStackTrace();
             public static boolean isUsed( String name )
                       if( nameHolder.containsValue(name) )
                            return true;
                       return false;
             public static client Ask(String name)
                  ArrayList  lombak=(ArrayList) clientsConnected.values();
                  for(int i=0;i<lombak.size();i++)
                       client semsi = (client)lombak.get(i);
                       if(semsi.nickname.compareTo(name)==0)
                            return semsi;
                  return null;
             public static int returnkeyoffromclients(String name)
                  ArrayList lombak=(ArrayList)clientsConnected.values();
                  for(int i=0;i<lombak.size();i++)
                       client semsi = (client)lombak.get(i);
                       if(semsi.nickname.compareTo(name)==0)
                            return i;
                  return 0;
             public static int returnkeyoffromnames(String name)
                  ArrayList lombak=(ArrayList)nameHolder.values();
                  for(int i=0;i<lombak.size();i++)
                       String semsi = lombak.get(i).toString();
                       if(semsi.compareTo(name)==0)
                            return i;
                  return 0;
         These are the lines that are responsible from the error.
    nameHolder.put(key1,ad);
    client myclient=new client(ad,host,portofclient);
    //Object garson=(Object)myclient;
    clientsConnected.put(key1,myclient);

  • OPA 10.4.1 on JBoss 6.1 - can not resolve path: plugins

    Having difficulties in deploying my web-determinations.war to JBoss 6.1.
    Same thing works well in OPM (Build and Debug).
    PS: Getting the same error when deploying the examples provided in the OPA Java Runtime.
    Any suggestions ?
    Error Log:
    2012-09-21 16:35:40,657 INFO [STDOUT] (ResourceContainer.invoker.nonDaemon-6) 0 [ResourceContainer.invoker.nonDaemon-6] WARN com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext - Plugin directory could not be initialised. No plugins will be loaded
    2012-09-21 16:35:40,657 INFO [STDOUT] (ResourceContainer.invoker.nonDaemon-6) java.lang.IllegalArgumentException: can not resolve path: plugins
    2012-09-21 16:35:40,657 INFO [STDOUT] (ResourceContainer.invoker.nonDaemon-6)      at com.oracle.util.plugins.PluginRegistry.addPluginsFromDir(PluginRegistry.java:118)
    2012-09-21 16:35:40,657 INFO [STDOUT] (ResourceContainer.invoker.nonDaemon-6)      at com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext.init(WebDeterminationsServletContext.java:159)
    2012-09-21 16:35:40,658 INFO [STDOUT] (ResourceContainer.invoker.nonDaemon-6)      at com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext.<init>(WebDeterminationsServletContext.java:116)
    2012-09-21 16:35:40,658 INFO [STDOUT] (ResourceContainer.invoker.nonDaemon-6)      at com.oracle.determinations.web.platform.servlet.WebDeterminationsServlet.init(WebDeterminationsServlet.java:73)
    2012-09-21 16:35:40,658 INFO [STDOUT] (ResourceContainer.invoker.nonDaemon-6)      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1208)
    2012-09-21 16:35:40,659 INFO [STDOUT] (ResourceContainer.invoker.nonDaemon-6)      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1108)
    2012-09-21 16:35:40,659 INFO [STDOUT] (ResourceContainer.invoker.nonDaemon-6)      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3628)
    Edited by: 960661 on Sep 21, 2012 1:43 PM

    Its working now, I assumed it wasn't working by looking at the logs. Accessing the rulebase "/JBossPOC/startsession/JBossPOC/" - i could see that plugin is working.
    Do i need to make any other changes to remove the following warnings ?
    12:12:52,522 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "JBossPOC.war"
    12:12:55,346 WARN [com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext] (MSC service thread 1-4) Plugin directory could not be initialised. No plugins will be loaded: java.lang.IllegalArgumentException: can not resolve path: plugins
         at com.oracle.util.plugins.PluginRegistry.addPluginsFromDir(PluginRegistry.java:118) [determinations-utilities.jar:]
         at com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext.init(WebDeterminationsServletContext.java:159) [web-determinations.jar:]
         at com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext.<init>(WebDeterminationsServletContext.java:116) [web-determinations.jar:]
         at com.oracle.determinations.web.platform.servlet.WebDeterminationsServlet.init(WebDeterminationsServlet.java:73) [web-determinations.jar:]
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202) [jbossweb-7.0.13.Final.jar:]
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102) [jbossweb-7.0.13.Final.jar:]
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655) [jbossweb-7.0.13.Final.jar:]
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873) [jbossweb-7.0.13.Final.jar:]
         at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
         at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
         at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_07]
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_07]
         at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_07]

  • I can not resolve my billing problem with iTunes store in India

    I can not resolve my billing problem with iTunes store in India

    Hi there puttockjuan,
    You may find the troubleshooting steps in the article below helpful.
    iPod not recognized in My Computer and in iTunes for Windows
    http://support.apple.com/kb/ts1369
    -Griff W. 

  • Package can not be compiled

    Hello Friends, Our environment is SERVER : ORACLE 10G , OS : WINDOWS 2003. I am preparing a test database for training purposes by export full database by FULL =Y. All functions are working fine except an job is not able to run. I found the package called by the job is invalid. I am trying to recompile, it can not. its showing
    PLS-00201 : identifier 'v$INSTANCE' must be declared. Please note that, this package having a procedure that is loading a text files rows to table. Its using UTL_FILE package.
    And directories are used to load the data. I created the directories in the TEST database and create the physical directory in the TEST database host machine.
    Kinldy help me to resolve it.

    Hi,
    PLS-00201 : identifier 'v$INSTANCE' must be declared. Please note that, this package having a procedure that is loading a text files rows to table. Its using UTL_FILE package.
    And directories are used to load the data. I created the directories in the TEST database and create the physical directory in the TEST database host machine. 1. when issuue was raised from pl/sql - have you check the code ?
    2. Have you tested code independently - instead of executing from job. ?
    3. Forget about production system for a while, try to check the pre-requisites required for the things to run. ?
    4. what is the pacakge code dependent on v$instance error - have you checked across ?
    5. Have you tried to debug the code or not ?
    - Pavan Kumar N

  • I can not resolve a plugin-container.exe error while processing payroll through ADP &have been unable to find the right fix for this. I can send error report.

    I have been receiving this error now for a few weeks and have been through multiple layers of IT help trying to resolve it with ADP/Chase Payroll services. When I go to print pay vouchers I get the plugin-container.exe error and I can not print the vouchers. I can provide screen shots if this would help. Can you please advise on how to proceed to resolve this?

    This is an issue with that plugin crashing, which isn't something we can really resolve for you. Try to disable it, find a replacement, update it, or contact their support

  • [SOLVED] bundle from ruby package can not install gems

    Hello, I was stuck with 'bundle' for hours, I do not know anything about Ruby, and even looking at the code won't get my anywhere. kindda don't like it... (guilty). Anyway, I'm gonna post it here to save someone else's time.
    What I was trying to do:
      I was trying to run this command, as developing an omega sub-theme for Drupal requires this. This command will read GemFile and install all GEM dependencies.
    bundle install
    What happened? What's the problem?
      this happened:
    Fetching gem metadata from https://rubygems.org/............
    Fetching additional metadata from https://rubygems.org/..
    Resolving dependencies...
    Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
    /home/MY_USER/.rvm/rubies/ruby-2.1.2/bin/ruby extconf.rb
    *** extconf.rb failed ***
    Could not create Makefile due to some reason, probably lack of necessary
    libraries and/or headers. Check the mkmf.log file for more details. You may
    need configuration options.
    Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/home/MY_USER/.rvm/rubies/ruby-2.1.2/bin/ruby
    --with-ffi_c-dir
    --without-ffi_c-dir
    --with-ffi_c-include
    --without-ffi_c-include=${ffi_c-dir}/include
    --with-ffi_c-lib
    --without-ffi_c-lib=${ffi_c-dir}/lib
    --with-libffi-config
    --without-libffi-config
    --with-pkg-config
    --without-pkg-config
    /home/MY_USER/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
    You have to install development tools first.
    from /home/MY_USER/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:541:in `try_link0'
    from /home/MY_USER/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:556:in `try_link'
    from /home/MY_USER/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:642:in `block in try_ldflags'
    from /home/MY_USER/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:635:in `with_ldflags'
    from /home/MY_USER/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:641:in `try_ldflags'
    from /home/MY_USER/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:1762:in `pkg_config'
    from extconf.rb:15:in `<main>'
    extconf failed, exit code 1
    Gem files will remain installed in /home/MY_USER/.rvm/gems/ruby-2.1.2/gems/ffi-1.9.3 for inspection.
    Results logged to /home/MY_USER/.rvm/gems/ruby-2.1.2/extensions/x86_64-linux/2.1.0/ffi-1.9.3/gem_make.out
    An error occurred while installing ffi (1.9.3), and Bundler cannot continue.
    Make sure that `gem install ffi -v '1.9.3'` succeeds before bundling.
    What was tried?
      Everything: cloning eventmachine directly from github which produced same result, removing gems depending on eventmachine however other packages produced the same result, ...
      The error message says: You have to install development tools first. however it was installed:
    sudo pacman --needed -S base-devel
    What was the problem? What's the solution then?
      Well, I had previously enabled multilib in pacman.com which resulted in gcc-multilib and gcc-libs-multilib being installed however these multilib packages does NOT work, gcc and gcc-libs needs to be installed instead. I do not know what is the proper solution for having these multilib packages and compiling ruby gems? (maybe adding multilib back to pacman.conf!) but it finally worked for me.
    I would create a wiki article but I don't know if it deserve's one + I'm not very good english writer + not sure if the solution is 100% right. probably this should be added to ruby page: in order to compile ruby gems you have to install gcc and gcc-libs instead of gcc-multilib and gcc-libs-multilib since multilib packages wont work because of...?
    Last edited by loolooyyyy (2014-06-19 17:33:08)

    Don't have the 7100 board , but some of theese issues are common .
    Enter BIOS in the following submenus :
    Advanced BIOS Features:
    -HD-Boot order - Make sure your SATA drive where you install OS is first in the list .
    (always check this one when altering HD's and connections of drives/usb-drives/card readers etc)
    Set normal boot order
    1'st boot device : CDROM
    2'nd boot device :Harddisk
    3'rd boot device : Harddisk (just to have something there)
    or if having floppy
    1'st boot device : Floppy
    2'nd boot device : CDROM
    3'rd boot device : Harddisk
    Boot other device : disabled
    Disconnect all USB cables coming from case or multicard dreader device etc. terminated on the motherboards JUSB1/JUSB2 .. headers .
    Enter Advanced Chipset features
    Integrated pheripherals
    Ide function setup ->
    Onchip IDE channel 0 : Disabled
    Onchip IDE channel 1 : Disabled
    SATA 1/2 : Enabled
    SATA 3/4 : Enabled
    Onboard device->
    OnBoard Sil3132 RAID : disabled
    OnBoard Sil3132 Mode :SATA
    Also recommend setting
    USB KB/Storage Support : Disabled
    (and connect the keyboard to PS2 via the delivered USB/PS2 adapter )
    Boot once , and enter bios again to verify the HDbootorder
    BTW: Having only 2.5GB for is not gonna cut it as OS partition is not enough as pagefile written under install is 1.5 times installed memory
    and the install will halt .
    Windows updates and other stuff as mail storage , my documents , user prifiles and registry hives need space and grow some over time .
    Primary OS partition workes best having altleast a minimum 20% free space all the time for housekeeping tasks lige changing layout ini , prefetch data
    defragmenting etc.
    Don't use anything less than 15GB to have peace of mind . ( I usually make it 30GB or more to avoid having lack of space later on , as that is a bitch )
     

  • Two seperate class files can not resolve (pls help me) THANKS!

    When i compile UseMusic.java i get the following:
    i can't figure it out..
    Thank You for Time!
    D:\java\cENG310\Ass2>javac UseMusic.java
    UseMusic.java:29: cannot resolve symbol
    symbol  : variable middlec
    location: class UseMusic
                       mm.caldis(middlec);  // compute freqs
                                 ^
    UseMusic.java:42: cannot resolve symbol
    symbol  : variable middlec
    location: class UseMusic
             mm.setzero(middlec); // reset middlec to zero
                        ^
    UseMusic.java:56: caldis(java.lang.String[],double[],double) in Music cannot be appli
                      mm.caldis(middlec);  // compute freqs
                        ^
    UseMusic.java:81: checkvaild(java.lang.String[],java.lang.String) in Music cannot be
    a.lang.String)
                boolean cv = mm.checkvaild(strkey);
                               ^
    UseMusic.java:86: getfreq(java.lang.String[],java.lang.String) in Music cannot be app
    ang.String)
                   int index = mm.getfreq(strkey);
                                 ^
    5 errors
    *  Filename    : UseMusic.java
    import iopack.Io;
    import java.text.DecimalFormat;
    * UseMusic this class is
    public class UseMusic {
          public static void main(String[] args) {
             Music mm = new Music();
                   DecimalFormat fmt = new DecimalFormat("0.###"); // round output to 3 decimals places
             boolean newmidc = false;
             boolean notelookup = false;  
             System.out.println("\n\tMusical Scales");
             System.out.println("\t---------------");     // display the title and instructions
             System.out.println("\n\tDefault note values are:");  
                 mm.caldis(middlec);  // compute freqs
             System.out.println("\n\t************************");
             System.out.println("\t* Notes  *  Frequency  *");
             System.out.println("\t************************"); 
             // print old results
             for (int i = 0; i < mm.noteName.length; i ++) {
                        // display values onto screen
                System.out.println("\t* " + mm.noteName[i] + "\n");
                System.out.println("      " + mm.noteFreq[i] + " Hz *\n");     
             mm.setzero(middlec); // reset middlec to zero
             // prompt user for value of midddle c
             while (!newmidc) {
                   //read value new value for middle c
                   double middlec = Io.readDouble("\n\tEnter value for Middle C [Between 250 - 265] (Hz)");
                   // vaildate value for middlec
                   // vaild if valeu for middle is between 250-265
                   if ((middlec > 250) && (middlec < 265)) {
                      System.out.println("\n\tNew note values");
                      System.out.println("\n\t----------------\n");
                      mm.caldis(middlec);  // compute freqs
                      System.out.println("\n\t************************");
                      System.out.println("\t* Notes  *  Frequency  *");
                      System.out.println("\t************************"); 
                      // print old results
                      for (int i = 0; i < mm.noteName.length; i ++) {
                            // display values onto screen
                            System.out.println("\t* " + mm.noteName[i] + "\n");
                            System.out.println("      " + mm.noteFreq[i] + " Hz *\n");     
                      break;   // get out of while
                   else {
                         System.out.println("\nError Invaild Input!\nValue must be between 250 Hz to 265 Hz.");         
                   } //end of else
             } // end of while for newmidc
             // prompt user for note
             while (!notelookup) {
                //read value new value for
                String strkey = Io.readString("\n\tEnter note value");
                boolean cv = mm.checkvaild(strkey);
                // vaildate value for middlec
                // vaild if valeu for middle is between 250-265
                if (cv == true) {
                   int index = mm.getfreq(strkey);
                   System.out.println("\nNote " + mm.getnoteName(index) + "has frequency of" + mm.getnoteFreq(index) + " Hz");
                   break;   // get out of while
                else {
                   System.out.println("Invaild note!, please try again.");          
                } //end of else
             } //end of while    
          }// end of static main
    } // end of Class UseMusic
    *  Filename    : Music.java
    import java.*;
    public class Music
       static int MAXSIZE = 12;                  // max # of elements (13 elements)
       static double INITALMIDDLEC = 256;     // set default value of middle c to 256
       double middlec;          // user value for middlec
       String[] noteName;   // array stores name of notes
       double[] noteFreq;     // array stores freq of notes
      boolean vaildstr;     // track whether entered string is vaild
       char replay;               // user's reponse to continue prompt
       boolean uContinue;     // whether or not to continue
       int sub;                         // index of searched string
       // Default Constructor
       Music () {
          String[] noteName = {"C","C#","D","D#","E","F","F#","G","G#","A","A#","B","C'"};
          double[] noteFreq = new double[noteName.length];
          middlec = INITALMIDDLEC; // default value of middlec to 256
              vaildstr = false;        // signify whether user entered value
          sub = 0;
       void caldis(String[] noteName, double[] noteFreq, double middlec) {
          // calculate the values based upon middlec
          double temp = 0; // dummy used to store value
          double semitone = (double)Math.pow(2,(1/12));
          temp = middlec;   //set the value of the first element to middlec   
          // fill noteFreq with values wrt middlec
          // no magic #s - noteName since noteFreq has # of elements
          for (int i = 0; i < noteName.length; i++) {
             temp = noteFreq[i-1]; // save value of previous elements 
             noteFreq[i] = temp + (temp * semitone);
          } //end of for
       double getmiddlec(double middlec) {
          return middlec;   // Returns the value of middlec
       int getfreq(String[] noteName, String strkey) {     
          for (int i = 0 ; i < noteName.length ; i++) {        
             if (strkey.compareTo(noteName) == 0) {           
    sub = i;
    return sub;
         double setzero(double middlec) {
              middlec = 0;
              return middlec;
    String getnoteName(int index) {
    return noteName[index];
    double getnoteFreq(int index) {
    return noteFreq[index];
    boolean checkvaild(String[] noteName, String strkey) {
    vaildstr = noteName.equals(strkey);
    return vaildstr;
    } //end of Class Music

    >
    What part can't you figure out? The compiler is
    telling you that it can't resolve "middlec", which it
    can't, because you apparently didn't define it
    anywhere. Actually he did define it, but he defined it after he passed it to those methods. If that's not simply an oversight on his part, I can't begin to understand what he was thinking.

  • NokiA Lumi 1520 (Cyan package) can not change APN

    Hi,
    I am Lumia user.
    I bought No Lumia 1520 in VN 2 month ago. It work properly until the day i came to Japan, and update my fone to Lumia Cyan.
    Now, i can not use internet with my simcard's data plan (Jp Docomo).
    I tried to add new APN, but i couldnt. I couldnt find anyhing related to APN in my phone even i went to Cellular+Sim/ Sim Setting. There are no Add APN button.
    Please help me to check. I will provide my phone info., if need.
    My email: *******@gmail.com
    I appriciate your help.
    Best regards,
    Huy
    Moderator's Note: This post has been edited. You personal information has been removed for security purposes.
    Solved!
    Go to Solution.

    In the Nokia Software Recovery Tool, what is your 7-letter code (Nokia Product Code)? No Windows computer or USB: The same code is printed on your phone. That code determines your firmware variant which determines your current version. We can check together whether you have the correct variant, only with that code. Furthermore, please, post your software version of Windows Phone 8.1.

  • Can not resolve symbol in method showMessageDialog

    I tried to dispaly a mesg using JOptionPane, it gives error mesg like
    HWS.java:27: cannot resolve symbol
    symbol : method showMessageDialog (<anonymous java.awt.event.ActionListener>,j
    ava.lang.String,java.lang.String,int)
    location: class javax.swing.JOptionPane
    JOptionPane.showMessageDialog (this, "The","Exit", JOptionPane.INFORMATION_M
    ESSAGE);
    ^
    pls help.
    Sabarish
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class HWS extends JFrame{
    public HWS() {
    super("Learning...");
    setSize(300,300);
    JLabel label2 = new JLabel("Jegan Rao");
    JButton button = new JButton("Click here");
    Container pane = getContentPane();
    pane.setLayout(new FlowLayout());
    pane.add(button);
    pane.add(label2);
    ActionListener al = new ActionListener(){
    public void actionPerformed (ActionEvent ae){
    JOptionPane.showMessageDialog (this, "The","Exit", JOptionPane.INFORMATION_MESSAGE);
    button.setHorizontalAlignment(JButton.CENTER);
    button.addActionListener(al);
    button.setVerticalAlignment(JButton.CENTER);
    label2.setHorizontalAlignment(JLabel.CENTER);
    label2.setVerticalAlignment(JLabel.CENTER);
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    pack();
    setVisible(true);
    public static void main(String [] args){
    HWS h = new HWS();
    }

    Please post code using the code tags. There is a code button when you enter text for your message. Click on it then paste your code between the tags.
    All of the JOptionPane showMessageDialog() methods require a Component as the first object argument. Your code calls showMessageDialog from inside an actionPerformed() method, which is inside an ActionListener. So 'this' is an ActionListener, not a JFrame or other Component.
    Are you sure you want to call up a dialog in an actionPerformed() method? This method is called from the event thread, and blocks this thread until the dialog completes. This means no events can occur until the dialog completes, but it may require an event to complete the dialog.

  • Can not resolve symbol? what is the problem with this braclet?

    Hi to all!
    I've got a problem understanding the output of javac. Here's the code and below the javac message.
    class ExtComboBoxUI extends BasicComboBoxUI
    private Object sourceBase;
    ExtComboBoxUI(Object source)
    --> {
    sourceBase = source;
    ExtComboBoxUI.java:28: cannot resolve symbol
    symbol : constructor BasicComboBoxUI ()
    location: class BasicComboBoxUI
    Could someone please give me an idea why javac cannot resolve this braclet?
    I am helpless - I really don't know how to get rid of this bug.
    Regards,
    LeaH

    Hi Leah,
    Please check whether you had included all the packages required for your program/application and also check that the packages has been set to the classpath.
    Specify the classpath and check once again.
    Regards,
    Anil.
    Technical Support Engineer.

Maybe you are looking for

  • How to replace special characters in Purchase order item text in ECC 6.0

    Hi All, Now i am working in ECC environment. I am unable to replace the special characters in the PO short text for example take the following text. Job#Burst Fire 3930-00092#Heater Control here i want to replace # symbol with space. i used  replace

  • Cant restore my macbook with Disk utility and my .dmg image

    My macbook would not boot anymore. Stuck on gray screen with apple logo, spinning wheel and a loading bar for a while after shutting off. I was able to get to Disk Utility in the recovery mode and, after a while, was able to make an image of my files

  • IPod Touch Screen Doesn't Respond

    I've Had my ipod touch 3g for about 6 days now. Everything was going well but after i synced my ipod touch, my screen just stop respond. I've tried restoring it many times and its just fail. What should i do? Could i go to the Apple store and get a n

  • In case someone has a login loop with Mac Lion

    Yesterday I had a login loop on my Mac Lion. I spent about 10 hours reading forums and interpretating the system logs, but nothing. Tried to log-in, then grey screen for a second, then back to the log-in screen. So, in this scenario I managed to have

  • Loading metadata via iptc core using Bridge

    I've noticed that after loading metadata into photos opened in PS (cs5) that when checking the "file info" for that photo, the metadata isn't showing up. Wonder what I should do differently?