It compiles but can't run it!

Hi
I am really new to java. I got this code from net and tried to compile it. Idoes compile but when i run it , i get the messege,
"java.lang.NoSuchMethodError: main
Exception in thread "main" .
Here is me code.Can someone pleaese tell me y i can't run it and how to fix it. Thanks for your time.
import java.awt.*;
import java.awt.event.*;
public class calculator extends java.applet.Applet implements ActionListener {
     TextField txtTotal = new TextField("");
Button button[] = new Button[10];
     Button divide = new Button("/");
     Button mult = new Button("*");
     Button plus = new Button ("+");
     Button minus = new Button("-");
     Button isequalto = new Button("=");
     Button clear = new Button("CA");
     double num ,numtemp ;
     int counter;
     String strnum = "",strnumtemp = "" ;
     String op = "";
     public void operation() {
     counter ++;
          if (counter == 1) {
          numtemp = num;      
          strnum = "";
          num = 0;
          }else{
          if (op == "+") numtemp += num;
          else if (op == "-") numtemp -= num;
          else if (op == "*") numtemp = numtemp * num;
          else if (op == "/") numtemp = numtemp / num;
          strnumtemp = Double.toString(numtemp);
          txtTotal.setText(strnumtemp);          
          strnum = "";
          num = 0;     
     public void init() {
     setLayout(null);
     plus.setBackground(Color.blue);
     plus.setForeground(Color.white);
minus.setBackground(Color.blue);
     minus.setForeground(Color.white);
divide.setBackground(Color.blue);
     divide.setForeground(Color.white);
     isequalto.setBackground(Color.blue);
     isequalto.setForeground(Color.white);
     mult.setBackground(Color.blue);
     mult.setForeground(Color.white);
     clear.setBackground(Color.blue);
     clear.setForeground(Color.red);
     for(int i = 0;i <= 9; i ++) {
          button[i] = new Button(String.valueOf(i));
          button.setBackground(Color.orange);
          button[i].setForeground(Color.blue);
     button[1].setBounds(0,53,67,53);
     button[2].setBounds(67,53,67,53);
     button[3].setBounds(134,53,67,53);
     button[4].setBounds(0,106,67,53);
     button[5].setBounds(67,106,67,53);
     button[6].setBounds(134,106,67,53);
     button[7].setBounds(0,159,67,53);
     button[8].setBounds(67,159,67,53);
     button[9].setBounds(134,159,67,53);
     for (int i = 1;i <= 9; i ++) {
          add(button[i]);
     txtTotal.setBounds(0,0,200,53);
     add(txtTotal);
     plus.setBounds(0,212,67,53);
     add(plus);
     button[0].setBounds(67,212,67,53);
     add(button[0]);
     minus.setBounds(134,212,67,53);
     add(minus);
     divide.setBounds(134,264,67,53);
     add(divide);
     isequalto.setBounds(67,264,67,53);
     add(isequalto);
     mult.setBounds(0,264,67,53);
     add(mult);
     add(clear);
     public void start() {
     for(int i = 0;i <= 9; i ++) {
          button[i].addActionListener(this);
     plus.addActionListener(this);
     minus.addActionListener(this);
     divide.addActionListener(this);
     mult.addActionListener(this);
     isequalto.addActionListener(this);
     clear.addActionListener(this);
     public void stop() {
     for(int i = 0;i <= 9; i ++) {
          button[i].addActionListener(null);
     plus.addActionListener(null);
     minus.addActionListener(null);
     divide.addActionListener(null);
     mult.addActionListener(null);
     isequalto.addActionListener(null);
     clear.addActionListener(null);
     public void actionPerformed(ActionEvent e) {
          for(int i = 0;i <= 9; i++) {
               if (e.getSource() == button[i]) {
               play(getCodeBase(),i + ".au");
               strnum += Integer.toString(i);
               txtTotal.setText(strnum);
               num = Double.valueOf(strnum).doubleValue();
if (e.getSource() == plus) {
          operation();
          op = "+";
          if (e.getSource() == minus) {
          operation();
          op = "-";
          if (e.getSource() == divide) {
          operation();     
          op = "/";
          if (e.getSource() == mult) {
          operation();     
          op = "*";
          if (e.getSource() == isequalto) {
          if (op == "+") numtemp += num;
          else if (op == "-") numtemp -= num;
          else if (op == "*") numtemp = numtemp * num;
          else if (op == "/") numtemp = numtemp / num;
          strnumtemp = Double.toString(numtemp);
          txtTotal.setText(strnumtemp);
          strnumtemp = "";
          numtemp = 0;
          strnum = "";
          num = 0;
          counter = 0;
          if (e.getSource() == clear) {
          txtTotal.setText("0");
          strnumtemp = "";
          numtemp = 0;
          strnum = "";
          num = 0;
          counter = 0;

Thanks for your reply.
Ok i used the link that you sent me and saved the following in the same directory where i have "calcultor.class".
<HTML>
<HEAD>
<TITLE> A Simple Program </TITLE>
</HEAD>
<BODY>
<APPLET CODE="calculator.class" WIDTH=150 HEIGHT=25>
</APPLET>
</BODY>
</HTML>
I saved it with the name "calculator.html".
Now when in my browser i type calculator.html, nothing happens.
I am sure i am missing something but i don't know what.Can someone please help me!
thanks

Similar Messages

  • Can compile but can't run....

    Last year I compiled and ran programs and applets with the Java SDK Version 1.4.0 on Windows XP. This year I am basically going thru the same motions, but now I can compile programs but not run them. The error that I get using the DOS prompt command is
    C:\VMBwork>java HelloWorld
    Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld
    I moved to a new Computer Lab over the summer, so the technicians loaded j2sdk1.4.2_04 with NetBeans IDE. I have set the path in XP to c:\j2sdk1.4.2_04\bin and the classpath to c:\Program Files\Java\j2re1.4.2_04\lib\ext. This appears to be the same set up as last year...but no java programs run.
    I even tried loading j2sdk1.4.2_05 new on my computer without Netbeans with the same path changes, but to no avail. Any suggestions? The students are really anxious to get into programming.

    C:\VMBwork>java HelloWorld
    Exception in thread "main"
    java.lang.NoClassDefFoundError: HelloWorldIs HelloWorld.class in C:\VMBwork?
    Is HelloWorld.java defined in a package?
    If answers are yes and no (respectively), you should be able to run using
    java -cp . HelloWorld>
    I moved to a new Computer Lab over the summer, so the
    technicians loaded j2sdk1.4.2_04 with NetBeans IDE. I
    have set the path in XP to c:\j2sdk1.4.2_04\bin and
    the classpath to c:\Program
    Files\Java\j2re1.4.2_04\lib\ext. ^^^^^^^^^^^^ doesn't help for classpath (it's already set this way and you can't change that).
    -Alexis
    This appears to be
    the same set up as last year...but no java programs
    run.
    I even tried loading j2sdk1.4.2_05 new on my computer
    without Netbeans with the same path changes, but to no
    avail. Any suggestions? The students are really
    anxious to get into programming.

  • Mozilla-firefox compile but can't run

    Hi,
    I wanted to try to optimized my firefox build, so I went to package cvs (http://cvs.archlinux.org/cgi-bin/viewcv … ag=CURRENT)
    and downloaded everything.
    Now I run makepkg and everything runs ok. I didn't modified the PKGBUILD.
    Now when I install the new package and try to run firefox, I get:
    -(nicolas@di8500:0)-(9 files:36K@Fichiers)-(0 jobs)-(13:54)-
    -(~/Fichiers:$)-> firefox
    *** loading the extensions datasource
    *** ExtensionManager:_updateManifests: no access privileges to application directory, skipping.
    *** loading the extensions datasource
    *** ExtensionManager:_updateManifests: no access privileges to application directory, skipping.
    And this goes on forever...
    What could be wrong? Can the CFLAGS cause this? Here are what I've tryed:
    export CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=sse -fprefetch-loop-arrays -ffast-math"
    export CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden"
    Thank you very much.

    For some times, I had this CTAGS in my /etc/makepkg.conf:
    export CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=sse -fprefetch-loop-arrays"
    I then added "-ffast-math" yesterday.
    Anything done after compiling with both tags didn't work (even running as root).
    I switched back to the default
    export CFLAGS="-march=i686 -O2 -pipe -Wl,-O1"
    export CXXFLAGS="-march=i686 -O2 -pipe -Wl,-O1"
    And now my own compiled firefox works... So It seems that this is a cflag error...
    Anyone know witch flag could break it?

  • Program compiles, but does not run

    To: XCode Users <[email protected]>
    From: Brigit Ananya <[email protected]>
    Subject: Program compiles, but does not run
    I am trying to port a Java application from the PC to the Mac. I am using XCode and the program compiles, but it does not run.
    When I try to run the ...app, I get the message that the main class is not specified, etc.
    When I try to run the ...jar, I do not get the message that the main class is not specified, but I do get the message that there is no Manifest section for bouncycastle, etc.
    Here are the detailed messages I get in the Console when I try to run the program:
    When I try to run the ...app, I get the following message:
    1/9/09 7:21:17 AM [0x0-0x8c08c].com.AnanyaSystems.AnanyaCurves[2253] [LaunchRunner Error] No main class specified
    1/9/09 7:21:17 AM [0x0-0x8c08c].com.AnanyaSystems.AnanyaCurves[2253] [JavaAppLauncher Error] CallStaticVoidMethod() threw an exception
    1/9/09 7:21:17 AM [0x0-0x8c08c].com.AnanyaSystems.AnanyaCurves[2253] Exception in thread "main" java.lang.NullPointerException
    1/9/09 7:21:17 AM [0x0-0x8c08c].com.AnanyaSystems.AnanyaCurves[2253] at apple.launcher.LaunchRunner.run(LaunchRunner.java:112)
    1/9/09 7:21:17 AM [0x0-0x8c08c].com.AnanyaSystems.AnanyaCurves[2253] at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:50)
    1/9/09 7:21:17 AM [0x0-0x8c08c].com.AnanyaSystems.AnanyaCurves[2253] at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
    When I try to run the ...jar, I do get the following message:
    1/9/09 7:22:43 AM [0x0-0x8d08d].com.apple.JarLauncher[2262] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] Exception in thread "main"
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] java.lang.SecurityException: no manifiest section for signature file entry org/bouncycastle/asn1/DEREnumerated.class
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at sun.security.util.SignatureFileVerifier.verifySection(SignatureFileVerifier.java:377)
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:231)
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:176)
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at java.util.jar.JarVerifier.processEntry(JarVerifier.java:233)
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at java.util.jar.JarVerifier.update(JarVerifier.java:188)
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at java.util.jar.JarFile.initializeVerifier(JarFile.java:325)
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at java.util.jar.JarFile.getInputStream(JarFile.java:390)
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at sun.misc.URLClassPath$JarLoader$1.getInputStream(URLClassPath.java:620)
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at sun.misc.Resource.cachedInputStream(Resource.java:58)
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at sun.misc.Resource.getByteBuffer(Resource.java:113)
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at java.net.URLClassLoader.defineClass(URLClassLoader.java:249)
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at java.security.AccessController.doPrivileged(Native Method)
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    1/9/09 7:28:45 AM [0x0-0x8f08f].com.apple.JarLauncher[2277] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
    I do specify the main class in both, the Manifest file and the Info.plist file, in the correct way, "package.MainClass". Is there another place where I need to specify it?
    Why do I need org/bouncycastle/asn1/DEREnumerated.class, and how would I have to specify it in Manifest?
    I also posted these questions at Mac Programming at forums.macrumors.com and at Xcode-users Mailing List at lists.apple.com/mailman/listinfo, but I did not get any answer.
    Please help! Thanks!

    There was something wrong with my Info.plist file.
    So, here is my corrected Info.plist file:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
         <key>CFBundleDevelopmentRegion</key>
         <string>English</string>
         <key>CFBundleExecutable</key>
         <string>AnanyaCurves</string>
         <key>CFBundleGetInfoString</key>
         <string></string>
         <key>CFBundleIconFile</key>
         <string>AnanyaCurves.icns</string>
         <key>CFBundleIdentifier</key>
         <string>com.AnanyaSystems.AnanyaCurves</string>
         <key>CFBundleInfoDictionaryVersion</key>
         <string>6.0</string>
         <key>CFBundleName</key>
         <string>AnanyaCurves</string>
         <key>CFBundlePackageType</key>
         <string>APPL</string>
         <key>CFBundleShortVersionString</key>
         <string>0.1</string>
         <key>CFBundleSignature</key>
         <string>ac</string>
         <key>CFBundleVersion</key>
         <string>0.1</string>
         <key>Java</key>
         <dict>
              <key>JMVersion<key>
              <string>1.4+</string>
              <key>MainClass</key>
              <string>AnanyaCurves</string>
              <key>VMOptions</key>
              <string>-Xmx512m</string>
              <key>Properties</key>
              <dict>
                   <key>apple.laf.useScreenMenuBar</key>
                   <string>true</string>
                   <key>apple.awt.showGrowBox</key>
          <string>true</string>
              </dict>
         </dict>
    </dict>
    </plist>Ok, so now I can at least run the AnanyaCurves.jar file by double-clicking on it.
    However, I still cannot run the AnanyaCurves.app file. When I double-click on it, I get the following message in the Console:
    1/11/09 5:12:26 PM [0x0-0x67067].com.apple.JarLauncher[1128]  at ananyacurves.AnanyaCurves.main(AnanyaCurves.java:1961)
    1/11/09 5:13:11 PM [0x0-0x6a06a].com.AnanyaSystems.AnanyaCurves[1137] [JavaAppLauncher Error] CFBundleCopyResourceURL() failed loading MRJApp.properties file
    1/11/09 5:13:11 PM [0x0-0x6a06a].com.AnanyaSystems.AnanyaCurves[1137] [LaunchRunner Error] No main class specified
    1/11/09 5:13:11 PM [0x0-0x6a06a].com.AnanyaSystems.AnanyaCurves[1137] [JavaAppLauncher Error] CallStaticVoidMethod() threw an exception
    1/11/09 5:13:11 PM [0x0-0x6a06a].com.AnanyaSystems.AnanyaCurves[1137] Exception in thread "main" java.lang.NullPointerException
    1/11/09 5:13:11 PM [0x0-0x6a06a].com.AnanyaSystems.AnanyaCurves[1137]  at apple.launcher.LaunchRunner.run(LaunchRunner.java:112)
    1/11/09 5:13:11 PM [0x0-0x6a06a].com.AnanyaSystems.AnanyaCurves[1137]  at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:50)
    1/11/09 5:13:11 PM [0x0-0x6a06a].com.AnanyaSystems.AnanyaCurves[1137]  at apple.launcher.JavaApplicationLauncher.main(JavaApplicationLauncher.java:61)Why is it looking for the MRJApp.properties file? Isn't this outdated? Shouldn't it look for the Info.plist file? I do not have a MRJApp.properties file.
    Also, in the Run menu of my XCode project, Go, Run, and Debug are disabled, but perhaps this has to do with not being able to run the AnanyaCurves.app file.
    Thanks for your time! I really appreciate any help you can give me!

  • PLSQL compiles but doesn't run.. I've declared it everywhere but still..

    PLSQL compiles but doesn’t run.. I’ve declared it everywhere but still..
    Afternoon.. Hopefully a quick one for someone.. I’m trying to run a Concurrent Program in ORACLE Financials using a Data Template derived BI Publisher report.
    Error message received..
    SUBIXCLT module: UofS Expense Claim Tracking Report
    +--------------------------------------------------------------------------
    All Parameters: raisedby=:status=:claimant=:expense_date_from=:expense_date_to=:LP_ORDERED_BY=Expense Report Number
    Data Template Code: SUBIXCLT
    Data Template Application Short Name: PO
    Debug Flag: N
    {raisedby=, claimant=, expense_date_to=, expense_date_from=, status=, LP_ORDERED_BY=Expense Report Number}
    Calling XDO Data Engine...
    [060410_025628319][][STATEMENT] Start process Data
    [060410_025628324][][STATEMENT] Process Data ...
    [060410_025628329][][STATEMENT] Executing data triggers...
    [060410_025628329][][STATEMENT] BEGIN
    SUBIXCLT.claimant := :claimant ;
    SUBIXCLT.expense_date_from := :expense_date_from ;
    SUBIXCLT.expense_date_to := :expense_date_to ;
    SUBIXCLT.raisedby := :raisedby ;
    SUBIXCLT.status := :status ;
    SUBIXCLT.lp_ordered_by := :lp_ordered_by ;
    :XDO_OUT_PARAMETER := 1;
    END;
    l_flag Boolean;
    BEGIN
    l_flag := SUBIXCLT.BEFOREREPORT(L_ORDERED) ;
    if (l_flag) then
    :XDO_OUT_PARAMETER := 1;
    end if;
    end;
    [060410_025628356][][EXCEPTION] SQLException encounter while executing data trigger....
    java.sql.SQLException: ORA-06550: line 4, column 33:
    PLS-00201: identifier 'L_ORDERED' must be declared
    ORA-06550: line 4, column 1:
    PL/SQL: Statement ignoredThe Data Template
    The Data Template
    <?xml version="1.0" encoding="utf-8" ?>
    - <dataTemplate name="UofS_OutstandngExpenses_Report" defaultPackage="SUBIXCLT" dataSourceRef="FINDEV" version="1.0">
    - <properties>
      <property name="xml_tag_case" value="upper" />
      <property name="include_parameters" value="true" />
      <property name="debug_mode" value="on" />
      </properties>
    - <parameters>
      <parameter name="claimant" dataType="character" defaultValue="" />
      <parameter name="expense_date_from" dataType="date" defaultValue="" />
      <parameter name="expense_date_to" dataType="date" defaultValue="" />
      <parameter name="raisedby" dataType="character" defaultValue="" />
      <parameter name="status" dataType="character" defaultValue="" />
      <parameter name="lp_ordered_by" dataType="character" defaultValue="" />
      </parameters>
    - <dataQuery>
      <dataTrigger name="beforeReportTrigger" source="SUBIXCLT.BEFOREREPORT(L_ORDERED)" />
    - <sqlStatement name="Q1">
    - <![CDATA[
    SELECT DISTINCT
    erh.invoice_num,
    pap.full_name EMP_CLAIMING,
    DECODE(NVL(erh.expense_status_code, 'Not yet Submitted (NULL)'), 'CANCELLED', 'CANCELLED',
         'EMPAPPR', 'Pending Individuals Approval',      'ERROR', 'Pending System Administrator Action',
         'HOLD_PENDING_RECEIPTS     ', 'Hold Pending Receipts', 'INPROGRESS', 'In Progress', 'INVOICED', 'Ready for Payment',
         'MGRAPPR', 'Pending Payables Approval', 'MGRPAYAPPR', 'Ready for Invoicing', 'PAID', 'Paid',
         'PARPAID', 'Partially Paid',     'PAYAPPR', 'Payables Approved',     'PENDMGR', 'Pending Manager Approval',
         'PEND_HOLDS_CLEARANCE', 'Pending Payment Verification',     'REJECTED', 'Rejected',     'RESOLUTN',     'Pending Your Resolution',
         'RETURNED',     'Returned',     'SAVED',     'Saved',     'SUBMITTED',     'Submitted',     'UNUSED',     'UNUSED',
         'WITHDRAWN','Withdrawn',     'Not yet Submitted (NULL)') "EXPENSE_STATUS" ,
    NVL(TO_CHAR(erh.report_submitted_date,'dd-MON-yyyy'),'NULL') SUBMIT_DATE,
    NVL(TO_CHAR(erh.expense_last_status_date,'dd-MON-yyyy'),'NULL') LAST_UPDATE,
    erh.override_approver_name ER_Approver,
    fu.description EXP_ADMIN,
    erh.total,
    erh.description 
    FROM
    AP_EXPENSE_REPORT_HEADERS_all erh,
    per_all_people_f pap, fnd_user fu
    WHERE erh.employee_id = pap.person_id
    AND fu.user_id = erh.created_by
    AND NVL(erh.expense_status_code, 'Not yet Submitted') NOT IN  ('MGRAPPR', 'INVOICED', 'PAID', 'PARPAID')
    AND pap.full_name = NVL(:claimant, pap.full_name)
    AND TRUNC(erh.report_submitted_date) BETWEEN NVL(:expense_date_from, '01-JAN-1999') AND NVL(:expense_date_to,'31-DEC-2299')
    AND fu.description = NVL(:raisedby,fu.description)
    AND erh.expense_status_code = NVL(:status,erh.expense_status_code) &LP_ORDERED_BY
      ]]>
      </sqlStatement>
      </dataQuery>
      <dataTrigger name="beforeReportTrigger" source="SUBIXCLT.BEFOREREPORT(L_ORDERED)" />
    - <dataStructure>
    - <group name="G_XP_CLM_TRACKNG" source="Q1">
      <element name="INVOICE_NUM" value="INVOICE_NUM" />
      <element name="EMP_CLAIMING" value="EMP_CLAIMING" />
      <element name="EXPENSE_STATUS" value="EXPENSE_STATUS" />
      <element name="SUBMIT_DATE" value="SUBMIT_DATE" />
      <element name="LAST_UPDATE" value="LAST_UPDATE" />
      <element name="LP_ORDERED_BY" dataType="varchar2" value="SUBIXCLT.LP_ORDERED_BY" />
      </group>
      </dataStructure>
      </dataTemplate>The PL SQL..
    The PL SQL..
    CREATE OR REPLACE PACKAGE Subixclt IS
    L_ORDERED  VARCHAR2(50);
    RAISEDBY VARCHAR2(50);
    STATUS VARCHAR2(50);
    CLAIMANT VARCHAR2(50);
    LP_ORDERED_BY VARCHAR2(50);
    FUNCTION BEFOREREPORT(L_ORDERED IN VARCHAR2) RETURN VARCHAR2;
    EXPENSE_DATE_FROM DATE;
    EXPENSE_DATE_TO DATE;
    --RETURN VARCHAR2;
    END;
    CREATE OR REPLACE PACKAGE BODY Subixclt IS
    FUNCTION BEFOREREPORT(L_ORDERED IN VARCHAR2)RETURN VARCHAR2 IS
    BEGIN
    Fnd_File.PUT_LINE(Fnd_File.LOG,'L_ORDERED'||L_ORDERED);
    DECLARE
    LP_ORDERED_BY VARCHAR2(50);
    L_ORDERED  VARCHAR2(50);
    RAISEDBY VARCHAR2(50);
    STATUS VARCHAR2(50);
    CLAIMANT VARCHAR2(100);
    EXPENSE_DATE_FROM DATE;
    EXPENSE_DATE_TO DATE;
    BEGIN
    IF (LP_ORDERED_BY='Expense Report Number') THEN
         LP_ORDERED_BY :='order by 1 asc;';
      ELSIF (LP_ORDERED_BY='Person Claiming') THEN
         LP_ORDERED_BY :='order by 2 asc;';
      ELSIF (LP_ORDERED_BY='Submit Date') THEN
      LP_ORDERED_BY :='order by 4 asc;';
      END IF;
    RETURN(L_ORDERED);
    --RETURN NULL;
    END;
    END;
    END;Thanks for looking..
    Steven
    Edited by: Mr_Alkan on Jun 4, 2010 3:35 PM

    One has to initialise a session first for use with Oracle Apps if you want to make it run as a concurrent job.
    Any decleration within your package will not be recognised unless initialisation is sucessful.
    Investigate the built-in packages:
    FND_GLOBAL - for initialisation
    FND_SUBMIT - for setting session relevant parameters
    -- function returns true or false depending on whether the initialisation was sucessful or not
    create or replace function is_Init_OK (p_User_Name       in varchar2
                                          ,p_Responsibility  in varchar2
                                          ,p_Language        in varchar2) return boolean as
      b_Set_NLS   boolean;
      b_Set_Mode  boolean;
      r_ISet      fnd_Init := Get_Init_Set(p_User_Name, p_Responsibility);
      begin
        -- 1
        fnd_global.apps_initialize(r_ISet.User_ID, r_ISet.Resp_ID, r_ISet.App_ID);
        -- 2
        b_Set_NLS := fnd_submit.set_nls_options(p_Language);
        -- 3
        b_Set_Mode  := fnd_submit.set_mode (false);
        return (b_Set_Mode and b_Set_NLS and (    (r_ISet.Resp_ID is not null)
                                              and (r_ISet.User_ID is not null)
        exception
          when others then
            return false;
    end is_Init_OK;
    -- for example
    declare
      l_User_ID number = 'IMPORT_POST'; --- import post user
      l_Resp    number =  'Import and Posting responsibility' -- import posting responsibility
      l_Language varchar2(100) := 'AMERICAN';
      b_Init boolean := false;
      INIT_EXCEPTION exception;
    begin
      b_Init := is_Init_OK(l_User_ID, l_Resp, l_Language);
      if (not b_Init) then
        raise INIT_EXCEPTION;
      end if;
      -- conitnue with your processing
      exception 
        when others then
          when INIT_EXECPTION then
          when others then
    end;
    /

  • Migrate an application from x86 to x64. Compiling succeed, but can not run. Always start with error 0xc0000142.

    platform: windows server 2008 r2; ide: visual studio 2005 (installed the x64 development kit)
    Hi, everyone.
    I want to migrate my application to x64 platform from x86/win32 platform. I added x64 platform in visual c++ 2005 option, and compiled successfully. But the application can not start. When start it always pop up an alert dialog saying "The application
    was unable to start correctly (0xc0000142). Click OK to close the application."  Meanwhile, it's worked well when I use win32 option to compile.
    Someone says online, the dependency walker can detect some root cause. I used it, and found that IEFRAME.dll may be had some problem because when I double click it, pop up a dialogue saying "Errors were detected when processing "c:\windows\system32\IEFRAME.DLL".
    See the log window for details.". But I can not resolve this issue.
    Please help me.

    If I had to try to solve this:
    I'd start by verifying that I can compile, and run a skeleton x64 Windows app.  Just create one from scratch using the Windows Application project template, add the x64 platform, build it and run.  Hopefully all goes well.
    If that works, then I'd try trimming down your app to just its essentials.  If you're not using revision control software, back up your projects now, because once you find the problem by hacking and slashing, you'll want to revert so you can make a
    clean fix.
    The first thing to do here is just put a return 0; in the beginning of WinMain to see if it's code at runtime that's causing the problem or something about the linking and dependent library loading.
    I'm guessing that, even with return 0, you will still have a problem, which would suggest that you are perhaps still linking against a 32-bit version of a library or something like that.  Start removing dependencies or references or libraries until
    you can build and run your stripped-down application.  Eventually you'll find the one reference/library that causes it to fail to load.
    You can also check the debug window to see if some modules loaded correctly and others not.
    You can also run
    Process Monitor (sysinternals) to see which dll it was accessing when it failed to load.
    Make sure you revert any changes you made while hacking and slashing, then make your platform fixes, and have another go.
    I suspect that eventually you'll find that you've added a link library that is a 32-bit .lib or a component that references a 32-bit library.  You'll have to make sure you specify the x64 .libs for whatever libraries you are using.  Sometimes this
    means that you have to change you additional linker directories to point to the x64 libs instead of the x86/win32 libs.  Be very careful about your platform when specifying linker libraries, directories, etc.
    It could also be that the x64 version of a dll has been copied to your output folder rather than the x86 version, assuming they have the same name.  You'll have to sort out your SDKs and get the right .libs and .dlls.
    Make sure that your settings and property pages are set correctly for Release and Debug, and for x86 and x64.

  • Finished writing amazing code that compiles but won't run properly

    I finished writing this code for someone and it compiles but it does not run properly. Anyone see any problems? Any help would be gladly appreciated.
    /* Program is for the Coconut Grove Palace Building. This program keeps track of the building occupants and the maintenance for each tenant using a simple menu system. */
    import java.util.Scanner;
    public class Grove {
    private static Scanner keyboard = new Scanner(System.in);
    /* Declaring values that will not change throughout the program. The plus one is so that people don't get confused */
    private static final int TOTAL_BUILDING_MAX = 16 + 1;
    private static final int TOTAL_FLOOR_MAX = 8 + 1;
    private static final int APARTMENT_MAX = 4 + 1;
    public static void main (String[] args) {
    // Declare main variable
         int cocoPalace[][] = new int[2][3];
         char menuChoice;
         int aptNumber = 0;
         int floorNumber = 0;
         int totalFloor = 0;
         int totalBuilding = 0;
    //Fill up the array with the original amount of 2 people per apartment
         for (int dex = 0; dex <3; dex++)
                   cocoPalace[0][dex] = 2;
                   cocoPalace[1][dex] = 2;     
         System.out.println("Welcome to the coconut grove palace");
    //Main part of the program that is essentially the menu screen.     
         do
              //method that calculates the maintenance that will be used several times
              double buildingMaintenance = calculateMaintenance(cocoPalace);
              //Menu System using a switch command with nested for loops and other code.
                   System.out.println("(A)partment, (B)uilding, (P)eople, E(x)it");
                   menuChoice = keyboard.nextLine().charAt(0);
                        switch (menuChoice)     
    //FIRST CASE 'A' ASK FOR THE FLOOR AND APARTMENT NUMBER AND DISPLAYS THE MAINTENANCE COST FOR IT
                   case 'a':
                   //Idiot proof 1
                   System.out.println("Please enter floor number :");
                   floorNumber = keyboard.nextInt();
                   while (floorNumber > 2)
                   System.out.println("Floor number must be between 1 and 2. Try again:");
                   floorNumber = keyboard.nextInt();
                   //Idiot proof 2               
                   System.out.println("Please enter apartmentNumber :");
                   aptNumber = keyboard.nextInt();
                   while (aptNumber > 3)
                   System.out.println("Apartment number must be between 1 and 3. Try again:");
                   aptNumber = keyboard.nextInt();
                   System.out.println("Floor number" + cocoPalace[floorNumber] + "Apartment number" + cocoPalace[floorNumber][aptNumber] + " : " + buildingMaintenance);
                   break;
    //SECOND CASE 'B' REPORTS THE OCCUPANCY AND MAINTENANCE FOR THE WHOLE BUILDING
                   case 'b':
                   for (int dex2 = 0; dex2 < 3; dex2++)
                   System.out.println("Floor number 1 Apartment number " + cocoPalace[0][dex2] + " : " + buildingMaintenance);                    
                   for (int dex3 = 0; dex3 < 2; dex3++)
                   System.out.println("Floor number 2 Apartment number " + cocoPalace[1][dex3] + " : " + buildingMaintenance);                    
                   break;
    /*THIRD CASE 'P' ALLOWS THE USER TO CHANGE THE AMOUNT OF PEOPLE IN AN APARTMENT AND RECALCULATES THE MAINTENACE. IT IS ALSO "IDIOT PROOFED" SO THAT VALUES DO NOT EXCEED THE REGULATIONS OF THE BUILDING IT SELF */
                   case 'p':
                   //Idiot proof 1
                   System.out.println("Please enter floor number : ");
                   floorNumber = keyboard.nextInt();
                   while (floorNumber > 3)
                   System.out.println("Floor number must be between 1 and 2. Try again: ");
                   floorNumber = keyboard.nextInt();
                   //Idiot proof 2               
                   System.out.println("Please enter apartment number : ");
                   aptNumber = keyboard.nextInt();
                   while (aptNumber > 4)
                   System.out.println("Apartment number must be between 1 and 3. Try again: ");
                   aptNumber = keyboard.nextInt();
                   //Idiot proof 3 with the amount of people being added at the same time.
                   System.out.println("How many people will there be : ");
                   int amountPeople = keyboard.nextInt();
                   cocoPalace[floorNumber][aptNumber] = amountPeople;
                   while (amountPeople > APARTMENT_MAX || totalBuilding > TOTAL_BUILDING_MAX || totalFloor > TOTAL_FLOOR_MAX )
              System.out.print("Too many people in building. Please try again : ");
                   amountPeople = keyboard.nextInt();
                        cocoPalace[floorNumber][aptNumber] = amountPeople;
                   break;
         while (menuChoice != 'x'|| menuChoice != 'a' || menuChoice != 'p' || menuChoice != 'b');
    //Method to calculate maintenance.
    private static double calculateMaintenance(int cocoPalace[][])
         int amountPeople = 0;
         for (int dex4 = 0; dex4 < 2; dex4++)
                   amountPeople += cocoPalace[0][dex4];
                   amountPeople += cocoPalace[1][dex4];
                   cocoPalace[0][dex4] = 2;
                   cocoPalace[1][dex4] = 2;     
              double buildingMaintenance = 5000/(amountPeople);
         return(buildingMaintenance);
    }

    ok the array problem is fixed i was having a simple "one off" mistake when accessing the array.
    As for the error that i keep getting. I honestly can't see where the problem with this is in code.
    The it cant be equalt to nothing because this is written so that it has to equal a letter before the program actually runs through everything. Thanks again for the help
    here is the error that i am getting when the program runs.
    Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 0
    at java.lang.String.charAt(String.java:558)
    at Grove.main(Grove.java:46)
    Here is the code with the new corrections.
    /* Program is for the Coconut Grove Palace Building. This program keeps track of the building occupants and the maintenance for each tenant using a simple menu system. */
    import java.util.Scanner;
    public class Grove {
    private static Scanner keyboard = new Scanner(System.in);
    /* Declaring values that will not change throughout the program. The plus one is so that people don't get confused */
    private static final int TOTAL_BUILDING_MAX = 16 + 1;
    private static final int TOTAL_FLOOR_MAX = 8 + 1;
    private static final int APARTMENT_MAX = 4 + 1;
    public static void main (String[] args) {
    // Declare main variable
         int cocoPalace[][] = new int[2][3];
         char menuChoice;
         int totalFloor = 0;
         int totalBuilding = 0;
    //Fill up the array with the original amount of 2 people per apartment
         for (int dex = 0; dex <3; dex++)
                   cocoPalace[0][dex] = 2;
                   cocoPalace[1][dex] = 2;     
         System.out.println("Welcome to the coconut grove palace");
    //Main part of the program that is essentially the menu screen.     
         do
         //Variables intialized
         int aptNumber = 0;
         int floorNumber = 0;
              //method that calculates the maintenance that will be used several times
              double buildingMaintenance = calculateMaintenance(cocoPalace);
              //Menu System using a switch command with nested for loops and other code.
                   System.out.println("(A)partment, (B)uilding, (P)eople, E(x)it");
                   menuChoice = keyboard.nextLine().charAt(0);
                        switch (menuChoice)     
    //FIRST CASE 'A' ASK FOR THE FLOOR AND APARTMENT NUMBER AND DISPLAYS THE MAINTENANCE COST FOR IT
                   case 'a':
                   //Idiot proof 1
                   System.out.println("Please enter floor number     :");
                   floorNumber = keyboard.nextInt();
                   while (floorNumber > 2)
                   System.out.println("Floor number must be between 1 and 2. Try again:");
                   floorNumber = keyboard.nextInt();
                   //Idiot proof 2               
                   System.out.println("Please enter apartmentNumber  :");
                   aptNumber = keyboard.nextInt();
                   while (aptNumber > 3)
                   System.out.println("Apartment number must be between 1 and 3. Try again:");
                   aptNumber = keyboard.nextInt();
                   System.out.println("Floor number" + cocoPalace[floorNumber] + "Apartment number" + cocoPalace[floorNumber - 1][aptNumber - 1] + "  :  " + buildingMaintenance);
                   break;
    //SECOND CASE 'B' REPORTS THE OCCUPANCY AND MAINTENANCE FOR THE WHOLE BUILDING
                   case 'b':
                   for (int dex2 = 0; dex2 < 3; dex2++)
                   System.out.println("Floor number 1 Apartment number  " + cocoPalace[0][dex2] + "  :  " + buildingMaintenance);                    
                   for (int dex3 = 0; dex3 < 2; dex3++)
                   System.out.println("Floor number 2 Apartment number  " + cocoPalace[1][dex3] + "  :  " + buildingMaintenance);                    
                   break;
    /*THIRD CASE 'P' ALLOWS THE USER TO CHANGE THE AMOUNT OF PEOPLE IN AN APARTMENT AND RECALCULATES THE MAINTENACE. IT IS ALSO "IDIOT PROOFED" SO THAT VALUES DO NOT EXCEED THE REGULATIONS OF THE BUILDING IT SELF */
                   case 'p':
                   //Idiot proof 1
                   System.out.println("Please enter floor number     : ");
                   floorNumber = keyboard.nextInt();
                   while (floorNumber > 2)
                   System.out.println("Floor number must be between 1 and 2. Try again: ");
                   floorNumber = keyboard.nextInt();
                   //Idiot proof 2               
                   System.out.println("Please enter apartment number : ");
                   aptNumber = keyboard.nextInt();
                   while (aptNumber > 3)
                   System.out.println("Apartment number must be between 1 and 3. Try again: ");
                   aptNumber = keyboard.nextInt();
                   //Idiot proof 3 with the amount of people being added at the same time.
                   System.out.println("How many people will there be : ");
                   int amountPeople = keyboard.nextInt();
                   cocoPalace[floorNumber - 1][aptNumber - 1] = amountPeople;
                   while (amountPeople > APARTMENT_MAX || totalBuilding > TOTAL_BUILDING_MAX || totalFloor > TOTAL_FLOOR_MAX  )
                          System.out.print("Too many people in building. Please try again : ");
                               amountPeople = keyboard.nextInt();
                        cocoPalace[floorNumber - 1][aptNumber - 1] = amountPeople;
                   break;
         while (menuChoice != 'x'|| menuChoice != 'a' || menuChoice != 'p' || menuChoice != 'b');
    //Method to calculate maintenance.
    private static double calculateMaintenance(int cocoPalace[][])
         int amountPeople = 0;
         for (int dex4 = 0; dex4 < 2; dex4++)
                   amountPeople += cocoPalace[0][dex4];
                   amountPeople += cocoPalace[1][dex4];
                   cocoPalace[0][dex4] = 2;
                   cocoPalace[1][dex4] = 2;     
              double buildingMaintenance = 5000/(amountPeople);
         return(buildingMaintenance);
    }

  • Compiles, but doesn't run - also objects used like arrays?

    Hello. I am a way newbie at Java, but I like it a lot. I'm using it to write a little final project for an intro CS class I'm taking. The program is a little mileage calcuator. Okay, so here's what I don't get. I started to write out the program and everything was compiling, my output and input were working. Then I started to add some classes and objects. Now it still compiles, but the command line just gives me "hit any key". None of my output or input stuff. What happened?
    While I'm at it, in C++ I would've used a little array to store a bit of data for this app. Can I use multile objects of a class and iterate through them in a for each in the same way?
    Any help much appreciated.
    Here's the code:
    //Joanna Grossman
    //mileage calculator
    //final project SWE 150
    //creates vehicle class
    class vehicle {
         int id;
         String name;
         int mpg;
    //creates different vehicle objects - may need to be changed to array
    class vehicleTypes {
         public static void main(String args[]) {
              vehicle SUV = new vehicle();
              vehicle hybrid = new vehicle();
              vehicle FordTaurus = new vehicle();
              //assigns values for cars
              SUV.id = 1;
              SUV.name = "SUV";
              SUV.mpg = 10;
              hybrid.id = 2;
              hybrid.name = "Honda Civic";
              hybrid.mpg = 50;
              FordTaurus.id = 3;
              FordTaurus.name = "Ford Taurus";
              FordTaurus.mpg = 23;
    //creates location class
    class location {
         int id;
         String name;
         int miles2Loc1;
         int miles2Loc2;
         int miles2Loc3;
    //creates location objects
    class locationObjects {
         public static void main(String args[]) {
              location Burlington = new location();
              location NewYork = new location();
              location Syracuse = new location();
              //assigns values to locations
              Burlington.id = 1;
              NewYork.id=2;
              Syracuse.id = 3;
              Burlington.name = "Burlington";
              Burlington.miles2Loc1 = 0;
              Burlington.miles2Loc2 = 308;
              Burlington.miles2Loc3 = 270;
              NewYork.name = "New York";
              NewYork.miles2Loc1 = 308;
              NewYork.miles2Loc2 = 0;
              NewYork.miles2Loc3 = 246;
              Syracuse.name = "Syracuse";
              Syracuse.miles2Loc1 = 270;
              Syracuse.miles2Loc2 = 246;
              Syracuse.miles2Loc3 = 0;
    //mainline logic
    class mileageCalculator {
         public static void main(String args[])
              throws java.io.IOException {
              char play;
              play='y';
                   System.out.println("Would you like to calculate your mileage?");
                   System.out.println("Please press \"y\" for \'yes\' or \"n\" for \'no\'\nThen Press \"Enter\"");
                   play = (char) System.in.read();
                   System.out.println("Your answer is "+play);
                   System.out.println("What is your destination?");
                   System.out.println("Press press it's number:");
                   System.out.println("1\tBurlington\n2\tNew York\n3\tSyracuse");
    }

    You're probably "running" one of the classes that doesn't produce any output. The main() method is intended to be an application's entry point, not someplace you just cram all your code. You'll want to learn about methods and how objects communicate with each other. Have a look at the following:
    The Java� Tutorial - Trail: Learning the Java Language
    Good luck!
    ~

  • SQLJ/JDBC code compiles but doesn't run

    I keep getting a fatal error in the JAVA.EXE module when I try to run an code with SQLJ/JDBC. I've got my class and classpath set up like a oracle support tech told me to do but the code still bombs.
    I noticed java.exe bombs at the same address no matter what SQLJ/JDBC code I compile.
    Could it be conflicting with something on
    a NT 4.0 box.
    Anyone with ideas please respond.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by MSCHWERY ():
    I keep getting a fatal error in the JAVA.EXE module when I try to run an code with SQLJ/JDBC. I've got my class and classpath set up like a oracle support tech told me to do but the code still bombs.
    I noticed java.exe bombs at the same address no matter what SQLJ/JDBC code I compile.
    Could it be conflicting with something on
    a NT 4.0 box.
    Anyone with ideas please respond.<HR></BLOCKQUOTE>
    Can you run a non Oracle Java application. Which version of JDK are you using.. do you have multiple versions of JDK .. if so make sure there is no conflict.. You may try re-installing the JDK if your non Oracle Java application also errors out..

  • My program compiles but when i run it, main class cannot be found

    as you can see, my program TestMaker compiles but when i try running it i get all these errors, i have no idea what's wrong with this
    C:\Users\Student\workspace\TestMaker\src>javac TestMaker.java
    C:\Users\Student\workspace\TestMaker\src>java TestMaker 514pcp.txt
    Exception in thread "main" java.lang.NoClassDefFoundError: TestMaker
    Caused by: java.lang.ClassNotFoundException: TestMaker
    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: TestMaker. Program will exit.
    C:\Users\Student\workspace\TestMaker\src>

    jgv9a wrote:
    So i try
    java -cp . TestMaker 514pcp.txt
    and get this
    C:\Users\Student\workspace\TestMaker\src>java -cp . TestMaker 514.txt
    Exception in thread "main" java.lang.NoClassDefFoundError: StdInThat means that you are using a class (StdIn), that is not on your classpath, but in some other place.
    The "-cp ." tells Java to ignore the CLASSPATH variable and just look in the current directory instead. You probably had the location of StdIn on your CLASSPATH variable.
    What you need to do in this case is to add the current directory "." to your CLASSPATH variable.
    Go [learn about the Classpath here|http://java.sun.com/javase/6/docs/technotes/tools/windows/classpath.html].

  • My compiled swf can't run on web

    My compiled swf can't be browsed on web,but it works fine on
    localhost. Which means that my compiled swf can run on localhost,
    but if I try to run the swf on web(from other machine), then it
    will hold for a long time, and I can't see anything but a grey
    screen. I wrap my swf file via Flex builder. I can't figure it out.
    Is there any one who have ever had experences like this, and know
    the solutions?
    My MXML is:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" creationComplete="testRmt.send()">
    <mx:HTTPService id="testRmt" url="
    http://140.122.79.118/TestFlex2_2.php"
    useProxy="false" method="POST">
    <mx:request xmlns="*">
    <id>{myDG.selectedItem.id}</id><username>{username.text}</username><email>{email.text}</e mail>
    <OP>{OP}</OP>
    </mx:request>
    </mx:HTTPService>
    <mx:Script>
    <![CDATA[
    import flash.net.LocalConnection;
    [Bindable]
    public var OP:String;
    public var ad:LocalConnection = new LocalConnection();
    ]]>
    </mx:Script>
    <mx:Button label="Send" click="OP='INS';testRmt.send()"
    x="446" y="204"/>
    <mx:HBox horizontalScrollPolicy="off" width="200"
    height="24" y="142" x="300">
    <mx:Label text="Username:"/>
    <mx:TextInput id="username"/>
    </mx:HBox>
    <mx:HBox horizontalScrollPolicy="off" width="200" x="300"
    y="174">
    <mx:Label text="Email:"/>
    <mx:TextInput id="email"/>
    </mx:HBox>
    <mx:DataGrid id="myDG" width="625" height="200" x="87.5"
    y="234" dataProvider="{testRmt.lastResult.users.user}"
    click="delBtn.enabled=true" >
    <mx:columns>
    <mx:DataGridColumn width="25" headerText="Id"
    dataField="id"/>
    <mx:DataGridColumn width="150" headerText="Name"
    dataField="name"/>
    <mx:DataGridColumn width="450" headerText="Email"
    dataField="email"/>
    </mx:columns>
    </mx:DataGrid>
    <mx:Button enabled="true" label="Del" id="delBtn"
    click="OP='D';testRmt.send();username.text='';email.text='';"
    x="667.5" y="442"/>
    <mx:Label x="10" y="10" text="Flex Example" width="186"
    fontSize="15" color="#ffffff"/>
    </mx:Application>
    Text

    I have had the same or similar problem, in my case with
    ColdFusion projects. I have uploaded several sample projects to my
    shared hosting web server; all the projects that do not use a
    server run fine, buit I have never been able to make the CF
    projects run. I have posted about this two or three times, but
    nobody ever answered.
    Maybe our question was too stupid to deserve an answer from
    busy people. I never thought of this, but today I got an email from
    my Hosting provider. Quoting part of that message:
    “We will be performing a ColdFusion upgrade to CFMX
    7.02 on the
    server where your account(s), timo, mochica, is/are hosted.
    We have
    scheduled the upgrade to take place between 3:00 AM EDT and
    6:00 AM
    EDT on Saturday, August 5th, 2006.
    We do not anticipate more than 15 minutes of downtime once
    the
    maintenance begins .....”
    Also, I found that the projects that do run require all those
    files that are generated when FB builds the project, so I have been
    uploading the entire output folder (usually, but not always,
    ‘bin’).
    I’m hoping I won’t have any more problems after
    Saturday.
    Peace,
    Carlos

  • Just purchased iphone 4 but can't run it with my macbook which is running OSX 10.4.11.  How do I update to 10.5?

    Hi, I just upgraded to an iphone 4 but my macbook won't recognise it as its running OSX 10.4.11.  How can I update to 10.5 or is there another way around this problem?  I've searched for 10.5 update but can't find it online.

    You have to purchase Leopard v10.5 then update to v10.5.8.
    http://www.amazon.com/Mac-OS-Version-10-5-6-Leopard/dp/B000FK88JK/ref=sr_1_1?ie= UTF8&qid=1306612485&sr=8-1
    Mac system requirements for iPhone 4
    Mac computer with USB 2.0 port
    Mac OS X v10.5.8 or later
    iTunes 10.1 or later (free download from www.itunes.com/download)
    iTunes Store account
    Internet access
    I don't recommend purchasing from eBay or Craigslist.

  • Able to deploy but can not run

    Hi,
    I have created Enterprise project using netbeans for testing purpose.
    I have added index.jsp in web module.
    then i added 1 of ejb module.
    I have not modified any file of both.
    then i build the project, it created .ear file
    I use this ear to deploy on Application PE9 it has no error.
    When I try to run the project from netbeans by right click the project
    It can not be run with error
    C:\TEST\nbproject\build-impl.xml:179: Deployment error:
    I click to this error link
    It bring me to this line of build-impl.xml
    <target name="-run-deploy-nb" if="netbeans.home">
    <nbdeploy debugmode="false" forceRedeploy="${forceRedeploy}" clientUrlPart="${client.urlPart}" clientModuleUri="${client.module.uri}"/>
    </target>
    What's wrong?
    Thanks in advance

    we'd probably need some more information to help with this.  if you could provide a more verbose description of your problem, the ipconfig /all of the devices using the router if they're having problems, and the router's ip address & subnet settings.  in your subject line you say you CAN browse, but can't access 192.168.1.1 which leaves me a little confused.

  • Xp in Mac but can Mac run on PC?

    I'm sure we all know about the discovery but can a Mac OS run on a "PC"? I hope so! Then I can enjoy my "PC" a lot better.

    Well, you are right about reputation matters. Beeing a big Mac fan myself, I don't want to see that best OS in the world which is developed for best computers in the world lose all it's appeal and attraction just because it would be avaliable for PC users.
    But I couldn't get away from several thoughts after watching Steeve's conference, where he declared transition from Power PC to Intel.
    After exposing PowerMac with Pentium 4 CPU, I thought that Mac OS for x86 platforms, which is used in those developer boxes, probably would be illegaly drained. Exacly, after some time it was avaliable in peer-to-peer networks. Then came all those rumors, later was that video. And I suddenly start to think, that this leakage was directed by Apple. Remeber, Steeve told, that Mac OS -- is the biggest value of Apple, nor the hardware. Of cource, hard to imagine such an action, especialy ethical side of it, but still it could be a planned move in order to start strike Windows positions.
    Thus, marketing is a very unethical thing. Noone knows, what we could await from Apple in the near future, but "Intel tranistion"-"MacOS X on PC"-"BootCamp" are links of one chain of events, accidentaly or not. And Apple shares price and market share are rising up. I guess, there are some global goals for Apple and they will leave no stone unturned to achieve those goals. Including dreadful "Mac OS X on PC" combination.
    Of cource, these are only my thoughts. I hope that we behold only illegal hack action and Mac OS would be never avaliable on PC's.

  • Can safe, but can't run or install adobe reader?

    I can't run or install adobe reader?

    You can try using this tool to remove all traces of previous version(s) of Reader:
    http://labs.adobe.com/downloads/acrobatcleaner.html
    Then, you may download the offline Reader installer from
    http://get.adobe.com/reader/enterprise/

Maybe you are looking for