Problems concerning Agilent 89410A programming

Hey!
I have a problem concerning Agilent 89410A signal analyzer programming.
The timeout error (-1073807339) and bundle error (-1074003951) pop up during the "Initialize.vi" execution. The time out error exist in the VISA Read part of the VI.
"The given session or object reference is invalid" error (-1073807346) pops up during "Application.vi" and "Close.vi" executions.
Agilent´s "analyzer address" is set to 16" Should I set something else to specific value?
What to do? I need a piece advice!
(please, step by step)

Hi,
The -1073807346 error shows that you may be using the wrong resource descriptor.
The first thing you need to do is determine if you are able to communicate with the instrument. Connec the instrument to the GPIB board and power on. In MAX, select "Scan for Instruments". If the instrument is detected (with the ID string) it means that the GPIB communication is working.
Next, open a interactive VISA session. In MAX right-click on the instrument entry and select "Open VISA session". The interactive VISA control will open. Click on the Basic I/O and see if you can perform a Basic read nad write. The control uses the exact same functions used by the instrument driver. If it work, then you'll need to look at your VI.
Use the instrument driver Ge
tting Started VI and see if you can run it. Make sure you are using the right resource descriptor. The resource descriptor should be GPIB::. id is the number that shows up in MAX for the different GPIB interfaces (GPIB0, GPIB1, etc).
Finally, if it doesn't work, troubleshoot the driver using LabVIEW's debugging facilities, such as highlight execution and NI Spy.
NI-Spy toturial
DiegoF
National Instruments

Similar Messages

  • Blackberry Desktop Software has stopped working. A problem has caused the program to stop...

    I have a Tour 9630 and just installed v6.0 and receiving an error window "Blackberry Desktop Software has stopped working. A problem as caused the program to stop working correctly.  Windows will close the program and notify you if a solution is available."  I have not received any message from Windows after 2 days.  Has anyone experienced this problem?  If so, I would appreciate any guidance.  I have Windows 7, if that matters. Thank you. in advance.

    Hi somewhatstock
    How far did you get with them? Did they have any ideas what might be causing the problem? Trying to work on it myself, so trying to eliminate what others might have tried. Curious why it works on my Desktop however. Losing tethering really causes problems as I rely on tethering with my laptop quite a lot.  
    Any information most welcome,
    regards,
    John

  • Problem in submiting standard program via job

    Hi Experts ,
       I have developed  programs for creating and posting return lots and payment lots for multiple incoming  files. For this i have submited standard  program of FPB3 and FPB5 transaction .  What happened is ,  if the child program fails due to some reason for one file , it is not coming back to the mother program and as a result other files remain unprocessed . So for this i tried with submiting the child program Via job so that if child program fails , only that job will fail and the mother program will not fail , so rest  files will be processed .
    But the problem is the child program (standard program of FPB3/FPB5 )  is not working by this i.e.  the lots are not getting created adn.
    Awaiting for any respone .

    Hi,
    If you are using Submit via Job, you need to use JOB_OPEN and JOB_CLOSE FM's.
    JOB_OPEN : Create a new job and return you the job number which you use in Submit
    JOB_CLOSE: Will set the release conditions of the job.
    Example:
    DATA: number TYPE tbtcjob-jobcount,
          name TYPE tbtcjob-jobname VALUE 'JOB_TEST',
          print_parameters TYPE pri_params.
    CALL FUNCTION 'JOB_OPEN'
      EXPORTING
        jobname          = name
      IMPORTING
        jobcount         = number
      EXCEPTIONS
        cant_create_job  = 1
        invalid_job_data = 2
        jobname_missing  = 3
        OTHERS           = 4.
    IF sy-subrc = 0.
      SUBMIT submitable TO SAP-SPOOL
                        SPOOL PARAMETERS print_parameters
                        WITHOUT SPOOL DYNPRO
                        VIA JOB name NUMBER number
                        AND RETURN.
      IF sy-subrc = 0.
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            jobcount             = number
            jobname              = name
            strtimmed            = 'X'
          EXCEPTIONS
            cant_start_immediate = 1
            invalid_startdate    = 2
            jobname_missing      = 3
            job_close_failed     = 4
            job_nosteps          = 5
            job_notex            = 6
            lock_failed          = 7
            OTHERS               = 8.
        IF sy-subrc <> 0.
        ENDIF.
      ENDIF.
    ENDIF.
    Regards,
    Jovito

  • Unable to Install Office 2013 Pro and I get returned message "Couldn't Install We're sorry, we had a problem installing your office programs"

    I purchased 40 licenses of Office 2013 Pro from a vendor in the US and received 40 product keys along with the URL to download the software - 1 for each pc activation codes.  I have done a few and were all successful.  I am now trying
    install on 2 other pcs and I am having real difficulty and getting error message each time I try to install.  I am able to download the installer and copied to my desktop and when I double click to execute it, it gives me the option to run on the next
    screen.  I click on run then it gives me the message " do you want to allow the program to make changes to this computer".  When I press YES, nothing happens and minutes later, I get the flwg message everytime, "Couldn't
    install"  "We're sorry, we had a problem installing your office programs.  Is your internet connection working?  Do you have enough free space on your main hard drive?  Please try installing again after you've checked the above. 
    Go online for additional help.
    I have lots of space and my pc is Win 7 64 bit new machine.  I have connection to internet and I was able to get the others done.  What is the problem here and I have been trying to work late night hours to try to install the program and I am unable
    to successfully get it to work.  I receive the same message every time and I followed all the recommended troubleshoot steps I found on the internet.  Someone please help.  I have to install all for all the PCs we have for our organization. 
    Please respond because I am really stuck.
    Gabe

    Hi Gabe,
    First, please check the suggestion above is helpful. I also suggest you removing all version of Office and re-install Office 2013.
    We can try to run the application as an administrator and check if it works.
     1. Right click the shortcut of the application or the main application.
     2. Select properties.
     3. Select compatibility tab and select "Run this program as an administrator."
    If there is anything I can do for you about this issue, don't hesitate to tell me.
    Best regards,
    Greta Ge
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Windows 8 - Photoshop CS5.1 crashes upon startup. Error message: "Adobe Photoshop CS5.1 has stopped working.A problem caused by the program to stop working correctly. Windows will close the program and notify you if a solution is available."

    Hello!
    I've had the student version of the Adobe Creative Suite 5.5 Design Premium software for several years now.
    When I received my Windows 8 computer I installed the software with no issue.
    Last week when I tried opening Photoshop I get the following error: "Adobe Photoshop CS5.1 has stopped working.A problem caused by the program to stop working correctly. Windows will close the program and notify you if a solution is available."
    I deactivated and uninstalled the entire Creative Suite then reinstalled it. I am able to open the other programs, but still receive the same message for Photoshop.
    What can I do?

    I found the issue was with the Nik Filters I was using. The filters were messing with Photoshop's initializing. I uninstalled and reinstalled the filters and now Photoshop works like a charm.
    It appears this forum is dead?!
    Thankfully, I was able to troubleshoot on my own and figured out the problem...

  • Hi, I have a Power Book G4 Tiger 10.4.11 and my problem concerns iTunes 9.2.1(5). I have changed my Apple ID and password recently. Since that, I am told when I try to buy something in iTunes Store that my "session has expired". Where does this come from?

    Hi, I have a Power Book G4 Tiger 10.4.11 and my problem concerns iTunes 9.2.1(5). I have changed my Apple ID and password recently. Since that, I am told, only when I try to buy something in iTunes Store, that my "session has expired". Where does this come from? What should I do to solve this problem ? I would greatly appreciate your help. Thank you in advance.

    Hi, I am khonthaï. I solved the problem thanks to JHdeVilliers's post on 4 Dec. 2011: I removed all cookies in Safari and it worked immediately !!!

  • ITunes keeps shutting down when I open it up.  The message says iTunes has stopped working.  A problem has caused the program to stop working correctly.  Windows will close the program and notify you if a solutions is found.

    iTunes keeps shutting down when I open it up.  The message says iTunes has stopped working.  A problem has caused the program to stop working correctly.  Windows will close the program and notify you if a solutions is found.

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    If you've already tried something like the above then try opening iTunes in safe mode (press and hold down CTRL+SHIFT as you start iTunes) then going to Edit > Preferences > Store and turning off Show iTunes in the Cloud Purchases. You may find that iTunes opens normally now.
    tt2

  • Problem in compiling a program

    i am using an API, and have a problem in executing a program which uses the API
    the source code is here
    import java.io.*;
    import org.apache.lucene.document.*;
    import org.apache.lucene.index.*;
    import org.apache.lucene.analysis.*;
    import org.apache.lucene.analysis.standard.*;
    import java.util.*;
    import java.io.IOException;
    public class Indexer {
    public static void main(String[] args) throws Exception {
    if (args.length != 2) {
    throw new Exception("Usage: java " + Indexer.class.getName()
    + " <index dir> <data dir>");
    File indexDir = new File(args[0]);
    File dataDir = new File(args[1]);
    long start = new Date().getTime();
    int numIndexed = index(indexDir, dataDir);
    long end = new Date().getTime();
    System.out.println("Indexing " + numIndexed + " files took "
    + (end - start) + " milliseconds");
    // open an index and start file directory traversal
    public static int index(File indexDir, File dataDir)
    throws IOException {
            if (!dataDir.exists() || !dataDir.isDirectory()) {
    throw new IOException(dataDir
    + " does not exist or is not a directory");
    IndexWriter writer = new IndexWriter(indexDir,
    new StandardAnalyzer(), true);
    writer.setUseCompoundFile(false);
    indexDirectory(writer, dataDir);
    int numIndexed = writer.docCount();
    writer.optimize();
    writer.close();
    return numIndexed;
    // recursive method that calls itself when it finds a directory
    private static void indexDirectory(IndexWriter writer, File dir)
    throws IOException {
    File[] files = dir.listFiles();
    for (int i = 0; i < files.length; i++) {
    File f = files;
    if (f.isDirectory()) {
    indexDirectory(writer, f);
    } else if (f.getName().endsWith(".txt")) {
    indexFile(writer, f);
    // method to actually index a file using Lucene
    private static void indexFile(IndexWriter writer, File f)
    throws IOException {
    if (f.isHidden() || !f.exists() || !f.canRead()) {
    return;
    System.out.println("Indexing " + f.getCanonicalPath());
    Document doc = new Document();
    doc.add(Field.Text("contents", new FileReader(f)));
    doc.add(Field.Keyword("filename", f.getCanonicalPath()));
    writer.addDocument(doc);
    and the errors are C:\Documents and Settings\Sumit\Desktop\db>javac Indexer.java
    Indexer.java:60: cannot find symbol
    symbol : method Text(java.lang.String,java.io.FileReader)
    location: class org.apache.lucene.document.Field
    doc.add(Field.Text("contents", new FileReader(f)));
    ^
    Indexer.java:61: cannot find symbol
    symbol : method Keyword(java.lang.String,java.lang.String)
    location: class org.apache.lucene.document.Field
    doc.add(Field.Keyword("filename", f.getCanonicalPath()));
    ^
    2 errors
    this program came with the API, but i dont know why it is not executing, ask me if you need any other file of API.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    ping.sumit wrote:
    i am using an API, and have a problem in executing a program which uses the API and you will likely need to find a forum or other source which supports this API. Much luck.

  • Problem with a wrapper program.

    Hi all,
    we are facing problem with a wrapper program,through which we are calling three different xml reports.
    when we independently submit these xml reports thorugh front end .
    All the three programs run successfully & gives the desired output.
    but when we run this through wrapper program.
    All ths three programs run successfully ,but don't give output,i.e. output file comes as blank.
    when I 'VIEW DETAILS" on the SRS window, the only difference between the independent program & the report through wrapper program is the 'UPON COMPLETION..'part.
    The 'UPON COMPLETION..'part. for the independent program shows the RTF Template Layout name ,while the program submitted through the wrapper program doesn't show the layout name.
    i have registered all the three reports as XML REPORTS,while the wrapper program as "package_name.procedure_name" & 'TEXT' as an output format.
    can anybody tell us , the problem??
    thanks.

    Wow, that's a lot of work. This isn't any different than PL/SQL in the real Oracle world. Parameters are named or positional. Named input uses the assignment operator of =>. Positional takes them in order per the procedure/function signature. In SQL*Plus, do a desc on fnd_request (owned by apps) and tell us what the "default" column represents.
    If you have been typing in all arguments, figure out how many times you've done that, how much time it took, multiply it by your hourly rate, and then tell your manager you owe your company that amount of money for having wasted so much time.
    function submit_request (
                     application IN varchar2 default NULL,
                     program     IN varchar2 default NULL,
                     description IN varchar2 default NULL,
                     start_time  IN varchar2 default NULL,
                     sub_request IN boolean  default FALSE,
                     argument1   IN varchar2 default CHR(0),
                     argument2   IN varchar2 default CHR(0),
                       argument3   IN varchar2 default CHR(0),
                     argument4   IN varchar2 default CHR(0),
                     argument5   IN varchar2 default CHR(0),
                     argument6   IN varchar2 default CHR(0),
                     argument7   IN varchar2 default CHR(0),
                     argument8   IN varchar2 default CHR(0),
                     argument9   IN varchar2 default CHR(0),
                     argument10  IN varchar2 default CHR(0),
                     argument11  IN varchar2 default CHR(0),
                     argument12  IN varchar2 default CHR(0),
                       argument13  IN varchar2 default CHR(0),
                     argument14  IN varchar2 default CHR(0),
                     argument15  IN varchar2 default CHR(0),
                     argument16  IN varchar2 default CHR(0),
                     argument17  IN varchar2 default CHR(0),
                     argument18  IN varchar2 default CHR(0),
                     argument19  IN varchar2 default CHR(0),
                     argument20  IN varchar2 default CHR(0),
                     argument21  IN varchar2 default CHR(0),
                     argument22  IN varchar2 default CHR(0),
                       argument23  IN varchar2 default CHR(0),
                     argument24  IN varchar2 default CHR(0),
                     argument25  IN varchar2 default CHR(0),
                     argument26  IN varchar2 default CHR(0),
                     argument27  IN varchar2 default CHR(0),
                     argument28  IN varchar2 default CHR(0),
                     argument29  IN varchar2 default CHR(0),
                     argument30  IN varchar2 default CHR(0),
                     argument31  IN varchar2 default CHR(0),
                     argument32  IN varchar2 default CHR(0),
                       argument33  IN varchar2 default CHR(0),
                     argument34  IN varchar2 default CHR(0),
                     argument35  IN varchar2 default CHR(0),
                     argument36  IN varchar2 default CHR(0),
                     argument37  IN varchar2 default CHR(0),
                       argument38  IN varchar2 default CHR(0),
                     argument39  IN varchar2 default CHR(0),
                     argument40  IN varchar2 default CHR(0),
                     argument41  IN varchar2 default CHR(0),
                       argument42  IN varchar2 default CHR(0),
                     argument43  IN varchar2 default CHR(0),
                     argument44  IN varchar2 default CHR(0),
                     argument45  IN varchar2 default CHR(0),
                     argument46  IN varchar2 default CHR(0),
                     argument47  IN varchar2 default CHR(0),
                       argument48  IN varchar2 default CHR(0),
                     argument49  IN varchar2 default CHR(0),
                     argument50  IN varchar2 default CHR(0),
                     argument51  IN varchar2 default CHR(0),
                       argument52  IN varchar2 default CHR(0),
                     argument53  IN varchar2 default CHR(0),
                     argument54  IN varchar2 default CHR(0),
                     argument55  IN varchar2 default CHR(0),
                     argument56  IN varchar2 default CHR(0),
                     argument57  IN varchar2 default CHR(0),
                     argument58  IN varchar2 default CHR(0),
                     argument59  IN varchar2 default CHR(0),
                     argument60  IN varchar2 default CHR(0),
                     argument61  IN varchar2 default CHR(0),
                     argument62  IN varchar2 default CHR(0),
                       argument63  IN varchar2 default CHR(0),
                     argument64  IN varchar2 default CHR(0),
                     argument65  IN varchar2 default CHR(0),
                     argument66  IN varchar2 default CHR(0),
                     argument67  IN varchar2 default CHR(0),
                     argument68  IN varchar2 default CHR(0),
                     argument69  IN varchar2 default CHR(0),
                     argument70  IN varchar2 default CHR(0),
                     argument71  IN varchar2 default CHR(0),
                     argument72  IN varchar2 default CHR(0),
                       argument73  IN varchar2 default CHR(0),
                     argument74  IN varchar2 default CHR(0),
                     argument75  IN varchar2 default CHR(0),
                     argument76  IN varchar2 default CHR(0),
                     argument77  IN varchar2 default CHR(0),
                     argument78  IN varchar2 default CHR(0),
                     argument79  IN varchar2 default CHR(0),
                     argument80  IN varchar2 default CHR(0),
                     argument81  IN varchar2 default CHR(0),
                     argument82  IN varchar2 default CHR(0),
                       argument83  IN varchar2 default CHR(0),
                     argument84  IN varchar2 default CHR(0),
                     argument85  IN varchar2 default CHR(0),
                     argument86  IN varchar2 default CHR(0),
                     argument87  IN varchar2 default CHR(0),
                     argument88  IN varchar2 default CHR(0),
                     argument89  IN varchar2 default CHR(0),
                     argument90  IN varchar2 default CHR(0),
                     argument91  IN varchar2 default CHR(0),
                     argument92  IN varchar2 default CHR(0),
                       argument93  IN varchar2 default CHR(0),
                     argument94  IN varchar2 default CHR(0),
                     argument95  IN varchar2 default CHR(0),
                     argument96  IN varchar2 default CHR(0),
                     argument97  IN varchar2 default CHR(0),
                     argument98  IN varchar2 default CHR(0),
                     argument99  IN varchar2 default CHR(0),
                     argument100  IN varchar2 default CHR(0))
                     return number;

  • After updating iTunes windows says problem exists and closes program

    I installed the new update 11.2 etc and now when I open iTunes a windows box pops upand says there is a problem and closes the
    program.  Now I can't even get to any of my music.  I am afraid to uninstall and re-install because I am not technically saavy.  I did
    go to the Programs listing and hit Repair and even after that it won't work.  What a mess.  I haven't been able to use the Burn Disc
    for quite a while now.  Should I just take my computer in for repair? PLEEEEEZE ANSWER.

    Hello, rachel a. 
    Thank you for visiting Apple Support Communities.
    Here are a couple troubleshooting articles that I would recommend going through.
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
    http://support.apple.com/kb/ts1717
    iTunes for Windows: Unable to install or open
    http://support.apple.com/kb/ts5376
    Cheers,
    Jason H.

  • Problem in Module Pool Program

    Hi All,
    I got one problem in Module pool program.Im using table control.when selected multiple coloms by table control option left top.
    when I want to de-select one by one,unable to de-select. Please suggest me.
    thank you,
    Anu.

    Thank You All.
    Solved my self.
    The coding as below.
    PROCESS BEFORE OUTPUT.
      CALL SUBSCREEN SUB INCLUDING SY-REPID '110'.
      LOOP AT GT_ITAB INTO WA WITH CONTROL VCONTROL.
        MODULE SET.
        MODULE STATUS_0100.
      ENDLOOP.
    PROCESS AFTER INPUT.
       CALL SUBSCREEN SUB.
      LOOP AT GT_ITAB .
        CHAIN.
          FIELD WA-EBELN.
          FIELD WA-EMATN.
          FIELD WA-EBELP.
          FIELD WA-MATNR.
          FIELD WA-MARK.
          MODULE MODIFY ON CHAIN-REQUEST.
        ENDCHAIN.
      ENDLOOP.
        MODULE USER_COMMAND_0100.
    MODULE USER_COMMAND_0100 INPUT.
    CASE SY-UCOMM.
        WHEN 'SAVE'.
          PERFORM SAVE_VARIANT.
          PERFORM VARIANT_EXISTS.
        WHEN 'SEL'.
          LOOP AT GT_ITAB INTO WA.
            WA-MARK = 'X'.
            MODIFY GT_ITAB FROM WA .
          ENDLOOP.
    endmodule.
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'ZTESTING'.
      SET TITLEBAR 'ZTEST'.
      SET PF-STATUS  'ZTESTING' EXCLUDING IT_EXTAB.
      MOVE:WA-EBELN TO EKKO-EBELN,
           WA-EBELP TO EKPO-EBELP,
           WA-MATNR TO WA-MATNR.
      MOVE:WA-EMATN TO WA-EMATN.
    MODIFY GT_ITAB FROM WA INDEX VCONTROL-CURRENT_LINE.
      VCONTROL-LINES = SY-DBCNT.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    MODULE SET OUTPUT.
      SET CURSOR FIELD CURSORFIELD OFFSET POS.
    ENDMODULE.                 " SET  OUTPUT
    Thank You,
    Anu.

  • Problem concerning an automatic renaming on desktop

    Hi,
    I have a problem concerning my desktop.
    Each time I copy a file on the desktop, it is instantly renammed.
    A little time ago, i used automator to rename serial and the last sequence i renamed was Fringe.
    Now each time i copy a file on the desktop it is renamed "Fringe" but the point is that i do not do anything to have it renamed....
    Any suggestion?
    Thanks a lot.

    I just found the solution by searching how to correct it!
    I just had to delete the automator workflow into ~/Library/Workflows/Applications/Folder Actions/
    Thank you very much for your help!

  • Problem with a compiled program

    Hello,
    I have a problem with a compiled program on labview 6i.
    This program used a serial port (COM1 or COM2).
    During the launching of the ".exe ", a fatal error occurs.
    Here this error:
    => APPLICATION caused an invalid page fault in
    => module LVRT.DLL at 0167:30164426.
    Can somebody help me?
    Regards
    Cedric

    Cedric,
    This problem was fixed in the LabVIEW 6.0.2 update. You can download this update (along with the updated runtime engine) from our website.
    Good luck with your application, and have a pleasant day.
    Sincerely,
    Darren N.
    NI Applications Engineer
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Problem with a Factorial Program

    I want to write a program that displays the factorial of a number, the problem is that my program doesn't work. Who can help me?? If I enter a number, nothing happens!
    import javax.swing.JOptionPane;
    public class Homework4_32
         public static void main( String args[] )
         String X;
         int x;
         int y;
    int result;
         X = JOptionPane.showInputDialog( "Enter a nonnegative integer" );
         x = Integer.parseInt( X );
         y = x-1;
         do
         result = x * y;
         } while ( x >= 1 );
         JOptionPane.showMessageDialog(
              null, " The result is " +result);
    }

    try
    int result = 1;
    x = Integer.parseInt(X);
    do
    result *= x--;
    } while ( x >= 1 );

  • Problem with my JBuilder Program

    I have a problem to compile this program with JBuilder 8.0
    He told me, each time like what my import file not working.
    Best regards,
    Nicholas
    First Error Messages: !Class test_rectangle is public; must be declared in a file named test_rectangle.java at line 17
    Second Error Messages: "rectangle.java": Error #: 901 : package . stated in source E:\JBuilder 8\samples\Welcome\rectangle\src\rectangle\rectangle.java does not match directory .
    import java.util.*;
    import java.io.*;
    public class rectangle
    private int a;//lenght variable;
    private int b;//width variable;
    public rectangle (int x, int y){//constructor
    a=x;
    b=y;
    public int surface (int x, int y){//function (method)
    return x*y;
    public class test_rectangle
    public static void main (String[] args)
    throws java.io.IOException //degage les exeptions (rejette se qu<il ne sait pas)
    rectangle rectangle1=new rectangle (3,4);//on a donner le nom du rectangle
    System.out.println (rectangle1.surface (3,4));//on applique une methode a l objets

    Two problems.
    1) You have your rectangle class in src/rectangle which means that it needs to be declared in package 'rectangle'.
    2) You cannot have more than one public class in a file. The file has to have the same name as the class with a ".java" extension.
    You can solve (1) by adding this to the top of your file:
    package rectangle;
    or by moving the file to src.
    You can solve (2) by removing the public modifier from your internal class or moving it to it's own file (test_rectangle.java).

Maybe you are looking for

  • My printer will not print the web pages using firefox...how do I set it up to print a web page?

    I have an hp photosmart c4180 printer and it will not print the web pages in firefox...how exactly do I set up FF so I can print web pages? I will need step by step instruction also on exactly where to go to set it up.

  • RU5 Problem again

    Hi, the script has help first, but after one day I see the same problem with the DPM Management Console again.

  • Insert a  BSP Application in  Web Application designer template (WAD)

    Hello to all I like to place a BSP Application in my Web Application designer template (WAD). Have someone a good idea how to display a BSP in a web item. We use BW 7.0 . Thanks a lot for any good idea. Christian Edited by: Christian Baumann on Nov 1

  • Scale all frames in document | AppleScript

    Hi, I'm hoping someone can help with this, I'm admittedly a bit green, but working at it. Thank you in advance... I've dynamically placed multiple images into multiple script-labeled-frames (and all using the same script label-for automation purposes

  • Mini DVD stuck in drive

    My darling son, who never causes us any problems, has done it this time. He inserted a mini DVD into the drive slot. It never booted, the machine doesn't recognize it has a disk in the slot, it can't be ejeted, there's no little paperclip hole, etc.