I belive this is simple.

Hi. Couldn't figure this out by myself, but I belive this should be simple one...
I store couple of variables in to an Object array for a while...
String something = "something";
boolean in = true;
Object[] temp = {new String(something), new Boolean(in)};
...and then I want to return them back to variables...
something = (String)temp[0]; // This is ok, but...
in = ... temp[1]; // This is the problem. I don't know what to put here!?
What do I need to do for that object so that it can be used again as boolean??? I tried some parsing, but it didn't work.

in = ((Boolean)temp[1]).booleanValue();
Noah

Similar Messages

  • Audition says mic in use, but it's not - surely this is simple?

    Connect Mic to Mbox
    Connect MBox to Macbook via USB
    No open programs on Mac
    Open Audition, go to Preferences, Audio Hardware, and choose Digidesign HW (Mbox) from Default Input and press OK.
    Get the message below.
    Surely this is simple stuff?  I can't think of which of the very small number of background processes on the mac could be using the mic??

    So, with my MBox 2 Pro, I can see the following information in the System Profiler:
    In the Audio/MIDI Setup, I can see entries for my MBox 2 Pro unlike your screenshots with the MBox
    Finally, in the System Preferences, there's items specific to the Digidesign Hardware, where I can change things like clock source:
    Without having the same setup as you, the only thing I can think of right now is that <warning=entering foggy memory area> when running Pro Tools 7 itself, you can set certain options for the original MBox from within that Software.  Make sure that the clock settings are internal and not something squirrely like SPDIF in.  If I remember correctly, those settings can have affect how other applications talk to the Digi Hardware.</warning>

  • Why does this impossibly simple CIN crash?

    I've been struggling for a few days trying to get this other CIN of mine to work. I decided to give up for now, start from scratch, and see why nothing's working. I created the attached VI and C File, and gave it a try.
    I'm using LabVIEW 7.0 on Windows 2000, compiling with Visual C++ .NET 2003. I don't think I could be more up to date. I'm certain the compiler environment is set up correctly.
    The CIN really couldn't be more simple unless I deleted the single line of code (besides the re
    turn line). All it does is take an input string, and change the first character to an 'A'. But it crashes every time with the following error:
    The instruction at "0x10011265" referenced memory at "0x0000000a". The memory could not be "written".
    I get this error (or one very similar) whenever I try to access any part of a LabVIEW data type (specifically interacting with struct members or using any of the Handle functions). This makes it imposible to return any information to LabVIEW so I'm kind of at a loss. I need to write a few CINs for a program I'm working on, but if I can't return anything they're useless. Will someone PLEASE tell me what's wrong with my configuration. Is there some windows setting I need to fix? Something in LabVIEW? The compiler? I need help badly!
    Attachments:
    Test.vi ‏47 KB
    stringtest.c ‏1 KB

    If you click my link to my other CIN forum post, there's an answer there that solves this problem.
    My reply:
    'I tested it again, and LV 7.0 DEFINATELY generated function headers with pointer parameters. However, on a different computer in my office, we have 6.1i installed, and we tested it there, and it did not generate a header with pointers. This leads me to believe that this is a bug with 7.0, and it should be addressed immediately.'

  • I just signed up for Netlix...they offered in the "opt out" privacy settings, for me to download, for Firefox users, the Network Advertising Initiative, NAI,..how do I uninstall this, in simple directions please. use my email naumoff@email.unc.edu

    The NAI came to me while in privacy opt out setting signing up for Netflix...I need to uninstall it...I can't find where to do that on my computer. Need simple directions. use email: [email protected] as NAI is strangling my computer and takes forever even on your site, to load a page.

    Attached is Dennis Linam’s Audition – “Log File” and “Log – Last File”
    Contact information Dennis [email protected]
    Previous contact information with your organization (DURIM):
    Dennis - i just finished my audition trial and bought the subscription the 2014 version.
    created by durin in Audition CS5.5, CS6 & CC - View the full discussion 
    DURIM - Okay.  I would expect the "Cache Warning" message because your default directories would not be the same as the ones in the settings file I generated.
    If you go back to the "7.0" directory and open the "Logs" folder, can you copy the "Audition Log.txt" file and send it as an attachment to [email protected]?  We'll take a look in that logfile and see if it gives us more information about why this is failing now.
    Also, do you have any other Adobe applications installed on this machine, such as Premiere Pro?  If so, do they launch as expected or fail as well?
    I do have the trial Pro version of Adobe reader, but I have not activated it, because I fear the same thing will happen did it. I cannot afford to activate the subscription for that product and take the chance of it not working either. I depend on those two programs religiously. Here is the files that you requested. I appreciate any help you can give me to get this audition program started
    Audition Log- file
    Ticks = 16       C:\Program Files (x86)\Common Files\Adobe\dynamiclink\7.0\dynamiclinkmanager.exe
    Sent from Windows Mail

  • Ava Web Service, Help me please with this really simple project

    Hi,
    I', using Tomcat 557 jdk 1.5.0.0_01, axis 1.2, and i have to build simple web service. The project is a list of students (their name, surname) and it has to do as the following:
    -adding new student
    -deleting existing student
    -changing existing student (not a must)
    -dispaying all students list
    -searching student by id
    And it has to operate with simple text file (the database is too complicated in my situation)
    In C:\Java\jakarta-tomcat-5.5.7\webapps\axis i have student.jws file:
    import java.util.*;
    public class students{
                    private Map dane = new TreeMap();
         public students() {
              dane.put(new Integer(1), new Students("Adam", "Alt"));
              dane.put(new Integer(2), new Students("Claudia", "Shift"));
         dane.put(new Integer(4), new Students("Gregor", "Tab"));
              dane.put(new Integer(3), new Students("Robert", "Enter"));
         public void new(String name, String surname){
         public int[] list() {
              Set klucze = dane.keySet();
              int[] list = new int[klucze.size()];
              int i = 0;
              for (Iterator it = klucze.iterator(); it.hasNext(); ) {
                   list[i++] = ((Integer) it.next()).intValue();
              return list;
         public Student student (int nr) {
              Student u = (Student ) dane.get(new Integer(nr));
              return u;
    }And in C:\Java\jakarta-tomcat-5.5.7\webapps\axis\WEB-INF\classes i have the Student.java file:
    public class Student{
         private String name;
         private String surname;
         public Student() {
         public Student(String name, String surname) {
              this.name= name;
              this.surname= surname;
         public String getName() {
              return name;
         public void setName(String name) {
              this.name= name;
         public String getSurname() {
              return surname;
         public void setSurname(String surname) {
              this.surname= surname;
    }And in IE http://localhost:8080/axis/students.jws?method=list
    Shows the list of students.
    The thing is, that it should work with at least simple text file (i don't even know the methods for connecting the database) and it should do the things, that i've already mentioned:
    -adding new student
    -deleting existing student
    -changing existing student (not a must)
    -dispaying all students list
    -searching student by id
    Could somebody add some code to this simple service? I know, that for you it's not any problem, you know java and it's a matter of life and death for me. Only if somebody help me, i will be able to finish current year of my studies. Normally i don't ask for such things, but now i don't have any choice - i have very important exam on monday, and i also have to present this project in this day.[/code                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    And in IE http://localhost:8080/axis/students.jws?method=list
    Shows the list of students.
    The thing is, that it should work with at least simple text file (i don't even know the methods for connecting the database) and it should do the things, that i've already mentioned:
    -adding new student
    -deleting existing student
    -changing existing student (not a must)
    -dispaying all students list
    -searching student by id
    Could somebody add some code to this simple service? I know, that for you it's not any problem, you know java and it's a matter of life and death for me. Only if somebody help me, i will be able to finish current year of my studies. Normally i don't ask for such things, but now i don't have any choice - i have very important exam on monday, and i also have to present this project in this day.

  • Port 8080: I know this is simple, I just can't get it to work.

    I'm trying something that I'm sure is relatively simple. But I just can't get it to work. I have OSX Server 10.4.10. I currently have my company site (www.example.com) hosted on it. But I'm trying to get another site hosted on it at port 8080. When I enter my company domain, www.example.com:8080, the page can't be displayed. But when I enter the IP address, such as 192.168.xxx.xxx:8080 from within my network, the correct site shows up. How can I get a website displayed at port 8080 from outside my network? I'm running DD-WRT on my router and have ports 80 and 8080 directed to the IP address of my server.
    Thanks in advance for any help.

    Hi WiFiNetGuy-
    I am a tad confused, which isn't new, but I need to get a grasp on exactly what it is that you are trying to do.
    Do you have both websites (i.e. www.example1.com and www.example2.com) both pointed at the same ip address? How many unique domain names and ip addresses are we talking about?
    From what you describe it sounds like a routing issue but I need more info (:>)
    Luck-
    -DaddyPaycheck

  • Please help can't fix this spry - simple solution??

    Hi there here is code - looks good in preview but when upload there is no luvk
    here is the code still not working can anyone tell me why
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    <!--
    body {
              font: 100% Verdana, Arial, Helvetica, sans-serif;
              background: #666666;
              margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
              padding: 0;
              text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
              color: #000000;
    /* Tips for Elastic layouts
    1. Since the elastic layouts overall sizing is based on the user's default fonts size, they are more unpredictable. Used correctly, they are also more accessible for those that need larger fonts size since the line length remains proportionate.
    2. Sizing of divs in this layout are based on the 100% font size in the body element. If you decrease the text size overall by using a font-size: 80% on the body element or the #container, remember that the entire layout will downsize proportionately. You may want to increase the widths of the various divs to compensate for this.
    3. If font sizing is changed in differing amounts on each div instead of on the overall design (ie: #sidebar1 is given a 70% font size and #mainContent is given an 85% font size), this will proportionately change each of the divs overall size. You may want to adjust based on your final font sizing.
    .oneColElsCtrHdr #container {
              width: 46em;  /* this width will create a container that will fit in an 800px browser window if text is left at browser default font sizes */
              background: #FFFFFF;
              margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
              border: 1px solid #000000;
              text-align: left; /* this overrides the text-align: center on the body element. */
    .oneColElsCtrHdr #header {
              background: #DDDDDD;
              padding: 0 10px 0 20px;  /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
    .oneColElsCtrHdr #header h1 {
              margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
              padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
    .oneColElsCtrHdr #mainContent {
              padding: 0 20px; /* remember that padding is the space inside the div box and margin is the space outside the div box */
              background: #FFFFFF;
    .oneColElsCtrHdr #footer {
              padding: 0 10px; /* this padding matches the left alignment of the elements in the divs that appear above it. */
              background:#DDDDDD;
    .oneColElsCtrHdr #footer p {
              margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
              padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
    -->
    </style>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    </head>
    <body class="oneColElsCtrHdr">
    <div id="container">
      <div id="header">
        <h1>Header</h1>
      <!-- end #header --></div>
      <div id="mainContent">
        <ul id="MenuBar1" class="MenuBarHorizontal">
          <li><a class="MenuBarItemSubmenu" href="#">Item 1</a>
            <ul>
              <li><a href="#">Item 1.1</a></li>
              <li><a href="#">Item 1.2</a></li>
              <li><a href="#">Item 1.3</a></li>
            </ul>
          </li>
          <li><a href="#">Item 2</a></li>
          <li><a class="MenuBarItemSubmenu" href="#">Item 3</a>
            <ul>
              <li><a class="MenuBarItemSubmenu" href="#">Item 3.1</a>
                <ul>
                  <li><a href="#">Item 3.1.1</a></li>
                  <li><a href="#">Item 3.1.2</a></li>
                </ul>
              </li>
              <li><a href="#">Item 3.2</a></li>
              <li><a href="#">Item 3.3</a></li>
            </ul>
          </li>
          <li><a href="#">Item 4</a></li>
        </ul>
        <h1> </h1>
        <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam,  justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam  ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo  porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis  ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean  sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at,  odio. Donec et ipsum et sapien vehicula nonummy. Suspendisse potenti. Fusce  varius urna id quam. Sed neque mi, varius eget, tincidunt nec, suscipit id,  libero. In eget purus. Vestibulum ut nisl. Donec eu mi sed turpis feugiat  feugiat. Integer turpis arcu, pellentesque eget, cursus et, fermentum ut,  sapien. Fusce metus mi, eleifend sollicitudin, molestie id, varius et, nibh.  Donec nec libero.</p>
        <h2>H2 level heading </h2>
        <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam,  justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam  ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo  porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis  ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean  sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at, odio.</p>
      <!-- end #mainContent --></div>
      <div id="footer">
        <p>Footer</p>
      <!-- end #footer --></div>
    <!-- end #container --></div>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    </html>

    thanks for your help gramps ; sorry about my inexperience but trying my best.
    ]let me go though where i am clear and where i am not !!
    This is what I am doing : First I set up a folder on the desktop eg Wesbitefiles : then put another folder in there for images then I open DW and go to manage my site and choose this as my root folder. (Websitefiles) as root folder. Then I insert spry : as you say below
    The Spry support files are supposed to reside in a subdirectory/subfolder called SpryAssets.
    If you look closely at your local directory/folder structure you will see the subdirectory and the files that are contained within the subdirectory/subfolder.
    I understand this bit ; when I insert the spry menu bar in dreamweaver they automatically create a spry asset folder. I can see this as pictured below\
    Now the bother seems to be what I do next.
    I open my server and I get this view
    first i upload my index file see like this
    next I make create a spry directory or folder on the server like this
    after that I upload the spry files one by one from the spry folder on my computer
    that is what i do this is my server view here then
    so as far as I can see I am following the steps by creating a spry assets folder on local and then on remote but still not working
    here is code by the way
    The Spry support files are supposed to reside in a subdirectory/subfolder called SpryAssets.
    If you look closely at your local directory/folder structure you will see the subdirectory and the files that are contained within the subdirectory/subfolder.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    <!--
    body {
              font: 100%/1.4 Verdana, Arial, Helvetica, sans-serif;
              background: #4E5869;
              margin: 0;
              padding: 0;
              color: #000;
    /* ~~ Element/tag selectors ~~ */
    ul, ol, dl { /* Due to variations between browsers, it's best practices to zero padding and margin on lists. For consistency, you can either specify the amounts you want here, or on the list items (LI, DT, DD) they contain. Remember that what you do here will cascade to the .nav list unless you write a more specific selector. */
              padding: 0;
              margin: 0;
    h1, h2, h3, h4, h5, h6, p {
              margin-top: 0;           /* removing the top margin gets around an issue where margins can escape from their containing div. The remaining bottom margin will hold it away from any elements that follow. */
              padding-right: 15px;
              padding-left: 15px; /* adding the padding to the sides of the elements within the divs, instead of the divs themselves, gets rid of any box model math. A nested div with side padding can also be used as an alternate method. */
    a img { /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */
              border: none;
    /* ~~ Styling for your site's links must remain in this order - including the group of selectors that create the hover effect. ~~ */
    a:link {
              color:#414958;
              text-decoration: underline; /* unless you style your links to look extremely unique, it's best to provide underlines for quick visual identification */
    a:visited {
              color: #4E5869;
              text-decoration: underline;
    a:hover, a:active, a:focus { /* this group of selectors will give a keyboard navigator the same hover experience as the person using a mouse. */
              text-decoration: none;
    /* ~~ this container surrounds all other divs giving them their percentage-based width ~~ */
    .container {
              width: 80%;
              max-width: 1260px;/* a max-width may be desirable to keep this layout from getting too wide on a large monitor. This keeps line length more readable. IE6 does not respect this declaration. */
              min-width: 780px;/* a min-width may be desirable to keep this layout from getting too narrow. This keeps line length more readable in the side columns. IE6 does not respect this declaration. */
              background: #FFF;
              margin: 0 auto; /* the auto value on the sides, coupled with the width, centers the layout. It is not needed if you set the .container's width to 100%. */
    /* ~~the header is not given a width. It will extend the full width of your layout. It contains an image placeholder that should be replaced with your own linked logo~~ */
    .header {
              background: #6F7D94;
    /* ~~ This is the layout information. ~~
    1) Padding is only placed on the top and/or bottom of the div. The elements within this div have padding on their sides. This saves you from any "box model math". Keep in mind, if you add any side padding or border to the div itself, it will be added to the width you define to create the *total* width. You may also choose to remove the padding on the element in the div and place a second div within it with no width and the padding necessary for your design.
    .content {
              padding: 10px 0;
    /* ~~ This grouped selector gives the lists in the .content area space ~~ */
    .content ul, .content ol {
              padding: 0 15px 15px 40px; /* this padding mirrors the right padding in the headings and paragraph rule above. Padding was placed on the bottom for space between other elements on the lists and on the left to create the indention. These may be adjusted as you wish. */
    /* ~~ The footer ~~ */
    .footer {
              padding: 10px 0;
              background: #6F7D94;
    /* ~~ miscellaneous float/clear classes ~~ */
    .fltrt {  /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
              float: right;
              margin-left: 8px;
    .fltlft { /* this class can be used to float an element left in your page. The floated element must precede the element it should be next to on the page. */
              float: left;
              margin-right: 8px;
    .clearfloat { /* this class can be placed on a <br /> or empty div as the final element following the last floated div (within the #container) if the #footer is removed or taken out of the #container */
              clear:both;
              height:0;
              font-size: 1px;
              line-height: 0px;
    -->
    </style>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div class="container">
      <div class="header">
        <p><a href="#">hubn f</a></p>
        <ul id="MenuBar1" class="MenuBarHorizontal">
          <li><a class="MenuBarItemSubmenu" href="#">Item 1</a>
            <ul>
              <li><a href="#">Item 1.1</a></li>
              <li><a href="#">Item 1.2</a></li>
              <li><a href="#">Item 1.3</a></li>
            </ul>
          </li>
          <li><a href="#">Item 2</a></li>
          <li><a class="MenuBarItemSubmenu" href="#">Item 3</a>
            <ul>
              <li><a class="MenuBarItemSubmenu" href="#">Item 3.1</a>
                <ul>
                  <li><a href="#">Item 3.1.1</a></li>
                  <li><a href="#">Item 3.1.2</a></li>
                </ul>
              </li>
              <li><a href="#">Item 3.2</a></li>
              <li><a href="#">Item 3.3</a></li>
            </ul>
          </li>
          <li><a href="#">Item 4</a></li>
        </ul>
        <p><a href="#">il s</a>
          <!-- end .header --></p>
        <p> </p>
      </div>
      <div class="content">
        <h1>InstructionsBe aware that the CSS for these layouts is heavily commented. If you do most of your work in Design view, have a peek at the code to get tips on working with the CSS for the liquid layouts. You can remove these comments before you launch your site. To learn more about the techniques used in these CSS Layouts, read this article at Adobe's Developer Center - <a href="http://www.adobe.com/go/adc_css_layouts">http://www.adobe.com/go/adc_css_layouts</a>.</h1>
    <h2>Layout</h2>
        <p>Since this is a one-column layout, the .content is not floated. </p>
        <h3>Logo Replacement</h3>
        <p>An image placeholder was used in this layout in the .header where you'll likely want to place  a logo. It is recommended that you remove the placeholder and replace it with your own linked logo. </p>
        <p> Be aware that if you use the Property inspector to navigate to your logo image using the SRC field (instead of removing and replacing the placeholder), you should remove the inline background and display properties. These inline styles are only used to make the logo placeholder show up in browsers for demonstration purposes. </p>
        <p>To remove the inline styles, make sure your CSS Styles panel is set to Current. Select the image, and in the Properties pane of the CSS Styles panel, right click and delete the display and background properties. (Of course, you can always go directly into the code and delete the inline styles from the image or placeholder there.)</p>
      <!-- end .content --></div>
      <div class="footer">
        <p>Footer</p>
        <!-- end .footer --></div>
      <!-- end .container --></div>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    </html>

  • HT5557 Can I share books on local network with other authorized family users? This was simple when my books were in iTunes.

    Before using iBooks, members of my family were able to share their books through "Shared Devices" in iTunes. Once I moved my library to iBooks, books are not available to other members of my family. Is there a means to share books on local networks with other authorized users?

    Thanks for the link.  I looked at this and tried it and it sync'd my wife's iBook with my account, so she now had my Apple ID logged into her iBook.  I'd like to be able to share my iBooks with her, but add them to her library as we were able to do with Home Sharing in iTunes.  I want her to be able to use her Apple ID with iBooks, but be able to read some of the books I buy on my account.  Does that make sense?
    Thank you.

  • Plz help me on this very simple error

    hello everybody...i'm very new to java programming...i'm unable to execute my program though it has been compiled...my coding is something like this and is very easy>>
    class abc
    public static void main(String [] args)
    System.out.println("hello");
    and at the time of execution...this error is shown up>>
    C:\Documents and Settings\Ishan\Desktop>java abc
    Exception in thread "main" java.lang.NoClassDefFoundError: abc
    Caused by: java.lang.ClassNotFoundException: abc
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Could not find the main class: abc. Program will exit.
    plz help me on this. thanks.

    Follow the instructions in this tutorial:
    http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html
    See problem solutions here:
    http://java.sun.com/docs/books/tutorial/getStarted/problems/index.html

  • I'm sure this is simple--

    I just updated to OS X Mavericks and my old version of MS Word won't work. Is there a plug in or something that will fix this?!

    Oh my gosh. I just tried to do the back up thing. It said "your backup system disk could not be found." what does that mean?!!
    Are my files safe? They seem to all BE here I just can't get to them.
    Okay then, is there a way to upgrade to MS 2011 for free? I imagine not but maybe it's so out of date by now...?

  • How can I write this short/simple bit of php so it will work?

    Hello!
    I have this code in template.php...
    <?php @ require_once ("$pagename.php"); ?>
    ...to bring content into the template.
    I've got a folder called 'news' for all the news articles so
    how could I edit the code to say 'look for files in the news folder
    as well as the current folder'?
    I guess I would need something like:
    <?php @ require_once ("$pagename.php" or
    "news/$pagename.php"); ?>
    ...but that doesn't work. How would I change it to work?
    Thank you very much and hope to hear from you.
    Mark

    You would need to use the "or" operator in PHP. I'm not too
    sure if that
    will work or not but you can give it a go - I'm currently at
    work now, so I
    can't really test anything at this moment in time.
    This is the operator for "or" in PHP: ||
    Shane H
    [email protected]
    http://www.avenuedesigners.com
    ===============================
    Proud GAWDS Member
    http://www.gawds.org
    Delivering accessible websites to all...
    ===============================
    "Spindrift" <[email protected]> wrote in
    message
    news:e5fhh5$sgv$[email protected]..
    > Hello!
    >
    > I have this code in template.php...
    >
    > <?php @ require_once ("$pagename.php"); ?>
    >
    > ...to bring content into the template.
    >
    > I've got a folder called 'news' for all the news
    articles so how could I
    > edit
    > the code to say 'look for files in the news folder as
    well as the current
    > folder'?
    >
    > I guess I would need something like:
    >
    > <?php @ require_once ("$pagename.php" or
    "news/$pagename.php"); ?>
    >
    > ...but that doesn't work. How would I change it to work?
    >
    > Thank you very much and hope to hear from you.
    >
    > Mark
    >

  • Hello, I am stuck as to what to do from here in this hopefully simple prog

    I am trying to write a program that the user can enter any number in any unit of these (seconds, minutes, hours, centihours, or years). Then it should ask what to convert it into then the user could choose to convert it to seconds, minutes,hours, centihours, or years.
    Any ideas?
    This is what I have so far but I am stuck as to what to do from here:
    import javax.swing.JOptionPane;
    public class converttime{
    public static void main (String[] args){
    double inputNum = Double.parseDouble(JOptionPane.showInputDialog(null,"Enter a number: "));
    Sring unit = JOptionPane.showInputDialog(null,"What unit is the number entered in? ");
    String convert = JOptionPane.showInputDialog(null, "Do you want this converted into seconds, minutes, hours, centihours, or years?");
    }

    The least complicated way IMO is to write a series of if/elses. Something like this (pseudocode):
    if (unit is seconds) {
        if (convert is minutes) {
            apply second-minutes conversion factor
        else if (convert is hours) {
            apply second-hours conversion factor
        etc...
    else if (unit is minutes) {
        if (convert is seconds) {
            apply minutes-seconds conversion factor
        else if (convert is hours) {
            apply minutes-hours conversion factor
        etc...
    etc...You should define the conversion factors as constants, and use the String.equals(String) method to compare Strings.
    There are more clever ways to do it, but if you're a beginner, this may be easiest.

  • Recently my iPhone 5 cannot get service for some reason is this a simple update fix or will I have to go in the apple shop to get repaired??

    About a week ago my iPhone 5 just lost service and simply says no service I turned the phone off back on and no change is this a update fix or will Apple have to repair it ??

    First, go through this:
    http://support.apple.com/kb/ts4429
    If nothing helps, then make an appointment at any Apple store.

  • ST01 question (sorry if this is simple but I'm stuck)

    Hi
    We've been told that SM51 is a basis tcode and has been removed from the security role. I think I need this to swap servers. My usual process to set up a trace is AL08 find the ID find the server and use SM51 to swap server and enable the trace.
    Is there an alternative except for changing the logon pad to show server and switch to another server of my current session?
    Cheers
    David RR006141911VU <<< see - what the hell is this?
    Apologies for all the edits as predictive text iPhone is pants
    Edited by: David Berry on Nov 24, 2010 10:59 PM
    Edited by: David Berry on Nov 24, 2010 11:00 PM
    Edited by: David Berry on Nov 24, 2010 11:01 PM
    Edited by: David Berry on Nov 24, 2010 11:05 PM

    Actually, although I have access to SM51 I find the report mentioned above with a variant for each app server faster, but you will need SM59 tcode to execute the report (it checks it).
    Otherwise, there are still a few other options...
    -  Start report RSM51000 which shows the app servers --> place your cursor on the one you want --> then click on "remote logon".
    -  Start transaction STMS --> click on System Overview --> Menu "Environment" --> Drop down "SAP servers"
    -  Start transaction ST20 --> type "SM51" into the ok-code command window --> hit enter.
    - Start transaction SM04 --> type "REMS" into the ok-code command window --> choose the server --> hit enter.
    - Start transaction S_ALR_87101258 --> type "SM51" into the ok-code --> hit enter.
    - Start tcode SU3 and maintain the parameter ID "BAM_SERVER" to the target you want --> start report PPMON020 and wait 1 second.
    - Logoff and logon again until you are load balanced onto that server and charge double for the time wasted...
    If something is critical, you should not rely on transaction codes to protect it! That switching servers is not centrally protected means it is not really critical so I see no harm in finding other ways to do the same.
    Cheers,
    Julius
    Edited by: Julius Bussche on Nov 25, 2010 9:04 PM

  • In Photos, Why Cant this be simple,but how do I Export a organized backup for my photos to a external hard drive.  I tried exporting them, but now I have to go through thousands of pics

    Ok, I need to reboot my Mac, want to back up my photos to a external drive  in new Photos.  I tried exporting them, but its thousands of pics that I have to go through.  Want them to be in specific folders.  Very time consuming.  Do I try making albums ? is there a software?

    You can go about this in two ways:s
    1 - copy the Photos Library to an external HD that is formatted OS X Extended (journaled) or use Time Machine or one of the backup apps that Larry mentioned.
    2 - Click on the All Photos album in the sidebar, select all of the photos by typing Command+A and exporting the to the EHD using the File ➙ Export Unmodified Original... menu option with the following settings:
    This will give you a folder for each Moment (like iPhoto's Events) with the name of the Moment as a folder title which will be the date of that Moment:
    The first method as described buy Larry is the better one as it will keep your organizational efforts, keywords, titles, projects, etc., intact.

Maybe you are looking for

  • Reinstall itunes after system recovery

    computer crashed,did a non-destructive disk recovery;itunes was affected.Tried reinstalling the software,both from the disk and under the add/remove programs, and all I get is "this action is valid only for programs that are currently installed." Ipo

  • Burner is in use by another application?

    Oh, so now I cannot burn CD from my iTunes playlist...I Force Quit everything else that was active. But for some reason it will not let me burn a CD. Any suggestions?

  • Ipod / itunes tv show crashing

    For the last month, (see my other posts)Ive had nothing but problems with my new ipod. The first ipod was working fine with tv shows and podcasts, and games. Then all of a sudden the hard drive went on it. Im on my 3rd new ipod and I noticed some of

  • R12 - Compile Invalid objects (Fast Formula, Package Body and View) Urgent

    Invalid objects about 43, in this Fast Formula 2 AP Package object, and 1 view OWNER     OBJECT_TYPE     COUNT(*) APPS     PACKAGE BODY     37.00 APPS     PROCEDURE     1.00 SCOTT     PACKAGE BODY     1.00 APPS     VIEW     1.00 APPS     FUNCTION    

  • TS1424 Cannot connect to iTunes - fromhome

    I have an iPad 3 and a 4S iPhone but i am unable to connect the iPad to iTunes at home via btinternet wifi (the message is 'Cannot connect to iTunes Store'). It works fine in the Apple store so they cant help! My iPhone connects with no problem and m