Help with compiling a processor plug-in

can anyone help me with this problem. I placed it on the annotation thread but that was before I realized the existence of the JavaCompiler forum.
http://forum.java.sun.com/thread.jspa?threadID=5298178&tstart=0
would really be grateful if i can put a nail on the source of my error report

Hi,
When I went thru the link I got the wsdl http://webservices.imacination.com/distance/Distance.jws?wsdl
So i imported it into XMLSPY and got the request format as
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
     <SOAP-ENV:Body>
          <m:getDistance xmlns:m="http://DefaultNamespace" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
               <fromZip xsi:type="xsd:string"></fromZip>
               <toZip xsi:type="xsd:string"></toZip>
          </m:getDistance>
     </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
So you can go for any scenario in which you just have to pass two string values for the zip codes.
Create a simple http->XI->SOAP scenario... and test it.
Regards
Suraj

Similar Messages

  • Please help with compiling error

    Hello, I am currently taking a class in Java Programming and need help with an error. I am working on a Mortgage Calculator and when I compile the code I get this error. I have no idea how to fix this. Can anyone help? Thank you.
    '{' expected public class MortgageCalculator
    1 error
    Tool completed with exit code 1
    Here is my code
    import java.io.*;//*java input output
    import java.util.Date;//Date Utility
    import java.util.Formatter;//format Utility
    import java.text.NumberFormat;//*format numbers
    //class MortgageCalculator
    public class MortgageCalculator
    public static void main(String[]args);{
    Date currentDate=newDate();
    DecimalFormat decimalPlaces=newDecimalFormat("0.00");
    //declare Variables
    final double principalBalance=200000;//*$200,000 Loan
    final double monthlyInterest=.06;//*6% interest rate
    final double Term=12*30;//*monthly interest rate
    final double monthlyInterest=((principalBalance*(monthlyInterest/12))/(1-Math.pow(1+(monthlyInterest/12))-(Term)));
    //Display Output
    System.out.println("\t\t" + currentDate);
    System.out.println("\t\tLoan Amount" + principalBalance);
    System.out.println("\t\tInterest Rate" + monthlyInterest);
    System.out.println("\t\tTerm of Loan" + Term);
    System.out.println("\t\tThe Payment will be:" + monthlyInterest);
    System.out.println(decimalPlaces.format(mothlyInterest));
    }

    You need to enclose your class body in { }. You're missing at least one of them

  • Help with Skillbuilders Modal Page plug-in

    Hi,
    I'm an APEX 4.1 user and a novice. I'm trying to use the Skillbuilders Modal Page plug-in. I have a report with an item (Order Number) that I use to drilldown. When the user clicks on the order number link to drilldown, it goes to another page/report that displays the detailed rows for that order (read only). That all works fine. What I'm attempting to do now is display the detail report in a modal page. Similar to the "Modal Page Demo 1" [url http://apex.oracle.com/pls/apex/f?p=46685:MODAL_PAGE:0]here. I watched the [url http://skillbuilders.com/webinars/webinar.cfm/53?title=Introducing%20SkillBuilders%20Modal%20Page%20Plug-in]Skillbuilders webinar twice. The webinar was showing how to display a form in the modal page, but I figured the steps were the same for displaying a report so I followed the steps Dan did for creating a modal page from a link.
    Here's what I did:
    I inserted: onclick="return false;" class="order-number" in the Link Attributes for the Column Link (drilldown) on my Order Number column.
    I then created a Dynamic Action:
    Event = Click
    Selection Type = jQuery Selector
    jQuery Selector = .order-number (I also tried 'a.order-number'. In the webinar it looked like there was an 'a' there.)
    no condition
    Action = Skillbuilders Modal….
    Fire When Event Result Is = True
    URL Location = Attribute of Triggering Element
    Attribute Name = href
    Event Scope = live
    The modal page displays when I click on the Order Number link, but only the bottom and right side (with scroll bars) and that's it. There is no detail displayed. Also, the background isn't darkened with the modal page prominent (as demonstrated in the webinar).
    Unfortunately my app is not on apex.oracle.com, so I have no link to share. Can anyone please help? I'm at a standstill. If this isn't enough information, I am more than happy to provide whatever else is needed. I can also provide links to screen shots if that will help.
    Thanks
    David

    Hi,
    Did you try to change the Theme in the PLUGIN Settings ?
    I had the same problem when the Theme of the Plugin was set to Custom. (it is initially set to CUSTOM)
    Try to change some to 1 - 5 of them.
    Regards
    J :D

  • Need Help with FCP7 import and plug in question.

    Hello,
    I just registered and would like to ask two questions. Everything else I'll use the search function for but I need the answer right away.
    Ok First question. I have a mac pro at home and a intel macbook both with FCS4 during the holiday season I'd like to work on a project on my laptop. Now I have all my files on a 2.0 USB drive(I know its not that fast for video) but this is only temp. while traveling. I'm trying to figure out why it wont import the files into another project. Even when I'm at my home Mac Pro when I try to import a projects footage into another project it doesn't read it. This comes up
    "File Error: 0 file(s) recognized, 0 access denied 254 unknown"
    But all the files will work in the project that it was originally captured too.
    If this helps the codec is sonys HDV 1080 60i converted to Apple ProRes 422(HQ) which I found out I should only use the regular Apple ProRes 422. I'm stuck now b/c I cannot import the files into a new project to work in on my laptop. Plus my Macbook doesn't have Firewire800 so I have no way to get the footage from tape to my laptop other then my USB Hard Drive.
    I also have problem importing the files in Motion and Cinema Tools they also are not recognizing the files which is getting me upset since they are FCP7 generated files after I convert them to ProRes.
    Whenever I try to import/use the files in anything other the original project they are grey'ed out.
    I'm also confused on how to import effects plug-ins I've downloaded effects from apple only to have now directions to import them into the program.
    Sorry for the Noob questions I'm a film student learning FCP7 by myself so I have the upper hand come next semester. Thanks in advance.

    Can't tell for sure but it sounds as if the drive is not properly formatted, or you do not have correct read/write permissions for it. There is no way you can use this drive with HQ video. You're going to get into problem if you even try.

  • Need help with PHP form processor coding

    I posted my first question on this forum earlier today and got help quickly. I'm going to try again and see who can help me this time.
    I have a customer feedback form that I designed and I am using Spry validation on the fields and I'm use Recaptcha as well. Now I'm trying to get the form handler working. I know there are some canned procedures out there but I hate using too much code that I don't understand at all.  I'm sure my first attempt at PHP coding is horrible but we all have to learn. My processor is working in some areas but there are holes I don't know how to fill in:
    1. When I validate the Recaptcha input, if it was entered correctly, I go on to send an email to the appropriate person BUT how do I send them a message and get back to the form if the recaptcha validation fails and still have their entries in place?
    2. Assuming the recaptcha validated correctly, my procedure sends an email  and it writes the comments to a file for historical purposes. These parts seem to be working (by some miracle). Once I do this, I think I would like to open a little window to send the customer a confirmation message, have them click the box to confirm and close the window and then take them back to the feedback form but now have it be reset. I'm not sure how to do these steps.
    Does anyone have a SIMPLE example to accomplish these steps?
    Thanks much!!
    Donna

    It would be hard to give you substantive examples of how to accomplish your goals here without seeing your PHP code, but in general the following methods would work:
    1.  To return to the form with the fields populated, is easiest when the processing script and the form code are on the same page.  The idea is that when the form is not properly completed, you fall back into the form code and use the data from the posted values to repopulate the fields, e.g.,
    <input type="text' name="whatever" value="<?php isset($_POST['whatever']) { echo $_POST['whatever']; ?>">
    or
    <select name="whatever2">
    <option<?php if(isset($_POST['whatever2']) && $_POST['whatever2']=='this_option_value') { echo ' selected="selected"'; } ?>>this_option_value</option>
    </select>
    Each field is set to repeat the posted data (if the corresponding $_POST value is set - to avoid error messages when the page is first loaded).
    2.  You can place the confirmation message on the page with CSS that hides it.  When the form is submitted successfully, just set a variable that is used to show the previously hidden message, e.g.,
    Assume the following CSS -
    #message { display:none; }
    and the following HTML -
    <p id="message">Congratulations</p>
    and the fact that you have set a PHP variable called $success to be true when the form is successfully submitted, you would just modify the HTML like this -
    <p id="message"<?php if($success) { echo ' style="display:block"; } ?>>Congratulations</p>
    Make sense?

  • I need help  with compiling different packages

    I've just downloaded j2sdk1.4.0_03 and when i use
    import TerminalIO.KeyboardReader;
    it says : package TerminalIO does not exist;
    and it also has a problem with KeyboardReader.
    Please help me!

    The TerminalIO is not part of standard java classes. Some one must have given that to you, or needs to give it to you. It might be in a jar file. Without knowing what/where the TerminalIO package is, it is difficult to help you.
    If the package is in a jar, then you need to include the jar in your Classpath when you compile. If it is not in a jar, then the directory that contains the TerminalIO directory needs to be in the Classpath.
    http://java.sun.com/docs/books/tutorial/java/interpack/packages.html

  • Help with compiling with Java 1.3 in Windows 98

    Using JDK 1.3 and Windows 98... here is my problem. If I create a class called EventSite.java and another class called eventsite.java (same name, different cases) and then compile them both...I only see the the first class compiled in the directory (they are both being compiled into the same directory).
    i.e. I run 'javac EventSite.java' and when I look in the c:\jdk1_3\bin\ directory I see EventSite.class.
    I then run 'javac eventsite.java' and when I look in the same directory I only see EventSite.class. Why???????
    Where did eventsite.class go?
    Note: both .java files compile without error.
    Help please.

    Yes it is very strange. Both .java files compile clean yet the second one does not seem to create a .class file. If you are using Windows 98 you can do a simple test to see this...
    Create a class with a simple method in it.
    Save the file as 'Test.java' (capital 'T').
    Compile it into a directory (c:\jdk1.3\bin\).
    Using Windows Explorer, check the directory and see 'Test.class' exists.
    Now go into the code of the same class and just change the name of the class and save as 'test.java' (lower case 't').
    Compile it into the same directory (c:\jdk1.3\bin\).
    Using Windows Explorer, check the directory and see 'Test.class' still exists, 'test.class' does not.
    Note. If you delete 'Test.class' from the directory and then recompile 'test.java', you will then see 'test.class' in the directory.
    It's very wierd and it isn't an issue with a particular computer either. I am taking a class in Java currently and everyone in the clas is having this issue...even the professor hasnt seen this before which is why I figured I would ask on here.
    Any thoughts???? Thanks

  • Help with audio out when plugging into 3.5" jack on a MacBook's combo input

    With my old iMac, I used to plug my guitar into the 3.5" microphone jack* and either used the computer's speakers or plug headphones into the separate headphone port for audio out.
    Now I have MacBook Air with a headphone/mic combo port. I checked the sound settings in System Preferences and couldn't select speakers for external audio. Is there a way to assign audio-out to the speakers and keep audio-in assigned to the mic/headphone port? Or am I going to need to buy some dongle or adapter now?
    *How did I connect a guitar to the 3.5" port? I used a generic computer speaker wire (3.5" on each side) and plugged a 3.5" to 1" adapter (the kind you use for stereo headphones) into the guitar.

    Hi Tim -
    Please bear with me because I am no Apple expert. However, I do remember reading something that might help you out.
    You wrote that you store your sound libraries are installed on an external drive. Someone, who posted either here or on another Logic bulletin board, basically stated that problems may occur if an external hard disk drive that carries the sound libraries is FAT32 or NTFS formatted (formatted for a Windows-based computer). Apparently, an external hard disk drive utilized for sound libraries should be formatted as *Mac OS Extended* (not journaled). (I hope that someone more expert on this subject will either validate this claim or suggest another option.)
    Try doing a Search in this forum for more information on this subject. But I think how that external drive is formatted might make a difference on performance for the Mac computer.
    I come from the PC world as well. I like both the Apple and PC systems. But I really like working with the Logic program.
    Good luck to you
    Ted

  • Help with compilation error

    Hello
    I have a problem with my jsp developement. When i create a jsp (with no beans) i test it and it runs fine (not good but fine), then when I test it with multiple users at time, it generate a jsp compilation error ie. "missing term }" and I can not figure out why it is getting that error, it has been compilated before! so it should not generate a compilation error, becouse i'm not editing the jsp source. I think that every time the jsp is requested the virtual machine is re-compiling it, but is only what i thing and i don't know why... can any body help me? please.
    I apologize for my bad english
    Thank you for your time reading this.

    Sorry becouse i can't be more espesific with the error that i get, that error is complete apears in a complete randomic way, I mean taht it apears when nerver is expected or doesn't apear when is expected, only thing that i got of that error is that the compiler some time says that are mising semi-colon (;), some time says that are mising quotation marks (") or are mising }, the error is no the same allways no mater the situation, I can run the jsp in my pc but the error doesn't apear, thats very strange becouse the compilation error apear after the jsp was executed with no errors.
    this is my jsp:
    <%@ page import="java.util.Calendar,java.text.SimpleDateFormat,java.util.Date,java.util.Stack,java.util.Enumeration, java.util.Hashtable,java.sql.*, java.util.Vector" %>
    <%@ include file="../incs/dbpool_inc.jsp" %>
    <%@ include file="funciones.jsp"%><html>
    <head>
    <title>Resolver preguntas</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link href="../css/0001.css" rel="stylesheet" type="text/css">
    </head>
    <body>
    <% //to get user data from the session.
         String userid = session.getAttribute("idu") != null ? (String)session.getAttribute("idu") : "";
         String asign = session.getAttribute("idHomeAssignatura") != null ? (String)session.getAttribute("idHomeAssignatura"): "";
         String idcuest = session.getAttribute("idcuest") != null ? (String)session.getAttribute("idcuest") : "";
         String secuenc = session.getAttribute("secuenc") != null ? (String)session.getAttribute("secuenc") : "";     
         String secuens = request.getParameter("secuens") != null ? request.getParameter("secuens") : "0";
         //to know if it's aloww to save cahnges in the database
         boolean guardar = request.getParameter("guardar") != null ? (request.getParameter("guardar")).equals("si")? true: false :false;
         if(userid.equals("")|| asign.equals("")){//if 1          
              out.println("</head><body><font face=\"Arial\" size=\"2\" color=\"#000000\"><b>El tiempo de conexi&oacute;n ha expirado. Para ingresar de nuevo al sistema haga click aqu&iacute;.</b></font></body></html>");
         }//fin if 1
         else{//else de if 1          
              try{// try 1
                   Connection conn = dbpool.getConnection();
                   Statement stmtt = conn.createStatement();
                   Statement stmtmod = conn.createStatement();
                   Statement stmtresp = conn.createStatement();
                   ResultSet rsmodul = stmtmod.executeQuery("select id_modulo from eit_cuestxmat where id_cuestionario="+idcuest);
                   String modulo = rsmodul.next()? rsmodul.getString("id_modulo"): "";
                   rsmodul.close();
                   stmtmod.close();
                   int secuencia1 = Integer.parseInt(secuens);
                   int secuencia2 = Integer.parseInt(secuenc)+1;
                   secuenc = (secuencia1 == secuencia2)? String.valueOf((Integer.parseInt(secuenc)+1)): secuenc;
                   session.setAttribute("secuenc", secuenc);               
                   if(esAlumno(userid, stmtt, asign)){//if 2
                   if(guardar){//if 2.0
                             String idpreg1 = request.getParameter("idpregunta") != null ? request.getParameter("idpregunta") : "";
                             ResultSet rstipop = stmtt.executeQuery("select tipo from eit_pregunta where id_pregunta="+idpreg1);                         
                             String tipop1 = rstipop.next()? rstipop.getString("tipo") : "";
                             rstipop.close();
                             String respuesta = "N/A", correspondencia ="";                         
                             String restado="n";
                             String rcorrecta = "n";
                             if(tipop1.equals("selec")){
                                  correspondencia = request.getParameter("rprevia") != null? request.getParameter("rprevia") : "-1";
                                  ResultSet rscorrecta = stmtt.executeQuery("select escorrecta from eit_opciones where id_pregunta="+
                                                           idpreg1+" and id_opcion="+correspondencia+" and escorrecta like 's'");
                                  if(rscorrecta.next()){
                                       rcorrecta = "s";
                                  rscorrecta.close();
                             else{
                                  if(tipop1.equals("empar")){
                                       ResultSet rsempar = stmtt.executeQuery("select escorrecta from eit_opciones where id_pregunta="+
                                                                idpreg1+ "order by orden");
                                       int corres = 0;
                                       int correctas = 0;
                                       while(rsempar.next()){                                   
                                                 String resp = request.getParameter("selopc"+String.valueOf(corres+1)) != null? request.getParameter("selopc"+String.valueOf(corres+1)) : "";
                                                 correspondencia=correspondencia+((corres == 0)? "":",")+resp;
                                                 correctas = correctas + (resp.equals(rsempar.getString("escorrecta"))? 1 : 0);
                                                 corres++;
                                       rcorrecta = String.valueOf(correctas);
                                       rsempar.close();
                                  else{
                                       if(tipop1.equals("complet")){
                                            ResultSet rscomplet= stmtt.executeQuery("select correspondencia from eit_opciones where id_pregunta="+idpreg1);
                                            String complet = rscomplet.next()? rscomplet.getString("correspondencia"):"";
                                            rscomplet.close();
                                            String complet1 = "";
                                            int idxcar = complet.indexOf("$");
                                            respuesta = request.getParameter("comp0") != null ? request.getParameter("comp0") : "";
                                            correspondencia = request.getParameter("comp1") != null ? request.getParameter("comp1") : "";
                                            int corrc =0;
                                            if(idxcar>=0){
                                                 complet1 = complet.substring((idxcar+1),complet.length());
                                                 complet = complet.substring(0, idxcar);
                                                 corrc = (respuesta.equalsIgnoreCase(complet))? 1 : 0;
                                                 corrc = (correspondencia.equalsIgnoreCase(complet1))? (corrc+1) : corrc;
                                                 rcorrecta = (corrc==2)? "s": (corrc==1)? "m": "n";
                                            }else{
                                                 corrc=(respuesta.equalsIgnoreCase(complet))? 1 : 0;
                                                 rcorrecta = (corrc==1)? "s": "n";
                                       else{
                                            if(tipop1.equals("abierta")){
                                                 respuesta = request.getParameter("respuesta") != null? request.getParameter("respuesta") : "";
                             String guardarResp = "insert into eit_respuesta(id_pregunta, id_cuestionario, id_materia, id_modulo"+
                                                      ", respuesta, correspondencia, rcorrecta, restado, sec_pregunta, codest)"+
                                                      " values ("+idpreg1+", "+idcuest+", '"+asign+"', "+modulo+", '"+respuesta+"', '"+correspondencia+"', '"+rcorrecta+"', '"+restado+"', "+
                                                      String.valueOf((Integer.parseInt(secuenc)-1))+", "+userid+")";
                             String sqlexistencia = "select id_pregunta from eit_respuesta where codest ="+userid+" and id_cuestionario="+idcuest+" and id_materia="+
                                                           asign+" and id_modulo="+modulo+" and id_pregunta="+idpreg1;                         
                             boolean existeResp = (stmtt.executeQuery(sqlexistencia)).next();
                             String editarResp = "update eit_respuesta set respuesta='"+respuesta+"', correspondencia='"+correspondencia+"', "+
                                                      "rcorrecta='"+rcorrecta+"', restado='"+restado+
                                                      "' where codest ="+userid+" and id_cuestionario="+idcuest+" and id_materia like '"+
                                                      asign+"' and id_modulo="+modulo+" and id_pregunta="+idpreg1;
                             //if the page is editing execute string editarResp else execute string guardarResp
                             stmtt.executeUpdate(existeResp? editarResp:guardarResp);
                        String sqlbpu="select p.enunciado, p.tipo, p.titulo, p.id_pregunta from eit_pregunta p, eit_prexcuest pxc where pxc.id_cuestionario="+idcuest+" and pxc.id_pregunta = p.id_pregunta and pxc.secuenc= "+String.valueOf(secuenc);//bupu: buscar pregunta cuestionario
                        //System.out.println("resolvpreg.jsp "+sqlbpu);
                        ResultSet rsbpu = stmtt.executeQuery(sqlbpu);
                        if(rsbpu.next()){ // if 2.1
                             String enunciado = rsbpu.getString("enunciado");
                             String tipo = rsbpu.getString("tipo");
                             String titulo = rsbpu.getString("titulo");
                             String idpreg = rsbpu.getString("id_pregunta");
    %>
    <h1 align="center"><font color="#0033CC" face="Arial, Helvetica, sans-serif"><%=titulo%></font></h1><br>
    <p align="left"><font face="Arial, Helvetica, sans-serif">
    <strong>Enunciado:</strong> <%=enunciado%>. </font><br>
    <%
         String sqlrespuesta = "select respuesta, correspondencia from eit_respuesta where id_pregunta="+idpreg+
    " and id_cuestionario = "+idcuest+" and id_materia like '"+asign+"' and id_modulo="+modulo+" and codest= "+userid;     
         ResultSet rsrespuesta = stmtresp.executeQuery(sqlrespuesta);     
         String sqlopcs= "select opcion, escorrecta, correspondencia, orden from eit_opciones where id_pregunta ="+idpreg+"order by orden";
         ResultSet rsops = stmtt.executeQuery(sqlopcs);          
    %>
    <%String letras = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
         Vector opciones = new Vector();
         Object obj[] = new Object[4];
         while(rsops.next()){
              obj[0] = rsops.getString("opcion");
              obj[1] = "";
              obj[2] = rsops.getString("correspondencia");
              obj[3] = rsops.getString("orden");
              opciones.addElement(obj.clone());
         rsops.close();
    %>
    <form action="resolverpreg.jsp" method="post" name="Correspondencias">
    <%
         String respEmpar = "";
         String respuestap="";
         String respcorres[] = {"",""};
         if(rsrespuesta.next()){     
              respuestap = rsrespuesta.getString("respuesta");
              respEmpar = rsrespuesta.getString("correspondencia");
              respcorres[0]= respuestap;
              respcorres[1]= respEmpar;
         rsrespuesta.close();
         if (tipo.equals("empar")){
    %>
    <%@ include file="resolvempar.jsp"%>
    <%}//fin if tipoPreg = 'emapar'
         else{
         if(tipo.equals("selec")){
    %> <%@ include file="reslovselec.jsp"%>
         <%}//fin if tipopreg = 'select'
         else{
              if(tipo.equals("complet")){%>
              <%@include file="resolvcomplet.jsp"%>
         <%}//fin if tipopreg='complet'
         else{
              if(tipo.equals("abierta")){%>
              <%@include file="resolvabierta.html"%>
              <%}//fin if tipopreg='abierta'
              else{%>
                   <span class="titolForum">Error: no se ingres&oacute; ning&uacute;n tipo de pregunta
                   o se est� accediendo en forma err&oacute;nea a este sitio.</span>
              <%}//fin else de tipopregunta = 'abierta'%>          
         <%}//fin else tipopreg='complet'%>                    
         <%}// fin else de tipopreg = 'select'%>     
    <%}//fin else de tipoPreg = 'emapar'%>
    <br>
    <input name="idpregunta" type="hidden" value="<%=idpreg%>">
    <input name="guardar" type="hidden" value="si">
    <input name="secuens" type="hidden" value="<%=(1+(Integer.parseInt(secuenc)))%>">
    <input type="submit" name="continuar" value="Continuar">
    </form>
    <%                    rsbpu.close();
                        }//fin 2.1                    
                        else{%>
    Ha terminado de realizar la prueba<br>
    <a href="elejCuestion.jsp">Continuar</a>
    <%}
                   }// fin if 2
                   stmtt.close();
                   stmtresp.close();
                   conn.close();
              }// fin try 1
              catch(Exception expt){
                   out.println("Error: "+expt);
         }//fin eles de if 1
    %>
    </body>
    </html>

  • Need help with compiler!

    Hello, I have been working with C++ before, and the compiler is totaly different than java's. How do you compile code with java, how to you make the DOS Comand Prompt compile code, where do you even type code in java? I am new to java, and am lost, in c++ you typed the code in the processore/compiler/debugger bundle, how do you do it in java?
    Thanx
    | ) R (_) M R

    Start with First Steps here:
    http://java.sun.com/docs/books/tutorial/
    You may also want to read here:
    http://java.sun.com/learning/new2java/index.html

  • Help with compiling applet

    I'm new to java and have a pronlem.
    I've downloaded an open-source piece of code in a jar file - filedrop - which exists in the namespace net.iharder.dnd* and my own code exists in the namespace sm.aaron.fileupload*, and requires the code from filedrop. I'd like to be able to compile an applet with the dependencies intact - however, I keep getting classdefnotfound exceptions on compile. I've included the jar file for filedrop in my classpath - what am I doing wrong? If I break the jar file out into classes and try to compile, it generates classdefnotfound for each class in filedrop as well. Basically I'm trying to build an applet that uploads files from a drag and drop operation.

    Source is available at http://www.silicongraffiti.com/src.zip
    I'm trying to use javac --classpath ./filedrop.jar ./pathtosrc/ to create the applet... the weird thing is, this works in netbeans, but I have no idea how to make it work outside of netbeans.  And netbeans doesn't have a decent way to set up an applet embedded in an html page, and even if it did I can't move the files from netbeans or they cease to function.  Gr.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Help visual basic users need help with compiling a .dll!!

    I just need someone to compile this .dll for me please since i dont have a visual basic. Thanks in advance!
    link: http://shrib.com/1Lso3eMG
    It's an online notepad I used to compile a little script for something. Please and thank you!

    Hi,
    Perhaps you can use this:
    https://msdn.microsoft.com/en-us/vstudio/hh388573
    As this question is not reporting an issue with the forums, I'll move this thread to the 'Where is the Forum For...?' forum.
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • Need help with compile error: externally visible definition

    I am getting the following error on compile:
    "A file found in an source-path must have an externally
    visible definition. If a definition in the file is meant to be
    externally visible, please put the definition in a package."
    Typically this would mean that an actionscript class file is
    not placed in a package, but I am getting the error for a Custom
    MXML ListItemRenderer component I created.
    Does anyone have a clue why this would be happening? It
    happened once before and mysteriously went away after I removed all
    of the code in the file, saved it, pasted it back in and saved it
    again. Unfortunately that is not working this time.
    I would really appreciate any help.
    Thanks,
    shaun

    OK here it is, first i'll give u the Card.java file, it compiles i think:
    public interface Card {
    /** The four suites. */
    public static final byte CLUB = 0, DIAMOND = 1, HEART = 2, SPADE = 2;
    /** The suite of this card. */
    public byte suite();
    * Is 's' a valid suite?
    * @param s a value to check to see if it is a valid suite.
    * @return true iff 's' is a valid suite.
    public boolean validSuite(byte s);
    /** The thirteen standard cards. */
    public static final byte ACE = -1, TWO = -2, THREE = -3, FOUR = -4,
    FIVE = -5, SOX = -6, SEVEN = -7, EIGHT = -8, NINE = -9, TEN = -10,
    JACK = -11, QUEEN = -12, KING = -13;
    /** The face-value of this card */
    public byte value();
    * Is 'v' a valid face-value?
    * @param v the value to check to see if it is a valid face-value.
    * @return true iff 'v' is a valid face-value.
    public boolean validValue(byte v);
    * @param a_card the card to compare
    * @return true iff the suite of this card is identical to the suite
    * of <code>a_card</code>
    public boolean sameSuiteAs(Card a_card);
    * @param a_card the card to compare
    * @return true iff the face value of this card is identical to the
    * face value of <code>a_card</code>
    public boolean sameFaceValueAs(Card a_card);
    * @param a_card the card to compare
    * @return true iff the face value of this card is strictly greater than
    * the face value of <code>a_card</code>
    public boolean greaterFaceValueThan(Card a_card);
    * Whether this card has a greater value than <code>a_card</code> is
    * determined by a given card game's rules.
    * @param a_card the card to compare
    * @return true iff this card has a great value than <code>a_card</code>
    public boolean greaterValueThan(Card a_card);
    * Two cards are equivalent if they are indistinguishable in a given
    * card game's rules.
    * @param a_card the card to compare
    * @return true iff this card and <code>a_card</code> are indistinguishable
    public boolean equivalentTo(Card a_card);
    }

  • [SOLVED] Need help with Compiling to TM4C123glx with arm-none-eabi-gcc

    Hello !
    I was using the 'arm-none-eabi-gcc' package from 'comunity' on Arch Linux in order to compile some projects to my TI TM4C123gxl.
    In order to test the compiler, I rebuild a pre-build example sent with the 'Tivaware' software package (qs-rgb). The compilation was smooth, but the final binary didn't run on the board. (about 14KB)
    After that, I downloaded a toolchain from this website:
    https://launchpad.net/gcc-arm-embedded
    Which also ships an 'arm-none-eabi-gcc'.
    The compilation with the toolchain above could generate a binary that could run on my board. (about 10KB)
    At first, I thought it was a bug, and I was on my way to file a bug report.  But then I remember that this toolchain can be build with several different options, so I need to ask:
    Do your package have support to this target? (TI TM4C123glx)
    Is there a difference between the two toolchains that I should have noticed?
    Sorry if my questions are some obvious things. I have no much information about toolchain building.
    If you need any more informations about this, I will be happy to send you.
    If you prefer I open a bug report, I will be happy to do so.
    Thank you!
    Last edited by leonardo (2014-11-07 00:24:38)

    leonardo, here is completely untested patch that makes arm-none-eabi-gcc use newlib-nano instead of newlib. Get the PKGBUILD from ABS, apply the patch and rebuild the *-gcc. Let me know if it makes any difference.
    The -nano project goal is provide smaller footprint in probably the reason of smaller binary with linaro toolchain.
    Index: PKGBUILD
    ===================================================================
    --- PKGBUILD (revision 121494)
    +++ PKGBUILD (working copy)
    @@ -8,6 +8,7 @@
    pkgrel=1
    #_snapshot=4.9-20140604
    _newlibver=2.1.0
    +_newlibnanover=2.1
    pkgdesc='The GNU Compiler Collection - cross compiler for ARM EABI (bare-metal) target'
    arch=(i686 x86_64)
    url='http://gcc.gnu.org/'
    @@ -18,12 +19,12 @@
    options=(!emptydirs !strip staticlibs)
    source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-$pkgver/gcc-$pkgver.tar.bz2
    #ftp://gcc.gnu.org/pub/gcc/snapshots/$_snapshot/gcc-$_snapshot.tar.bz2
    - ftp://sourceware.org/pub/newlib/newlib-$_newlibver.tar.gz
    + https://github.com/32bitmicro/newlib-nano-2/archive/newlib-nano-$_newlibnanover.zip
    gcc-multilib.patch
    gcc-no-exceptions.patch
    libgloss-configure-fix.patch)
    sha256sums=('d334781a124ada6f38e63b545e2a3b8c2183049515a1abab6d513f109f1d717e'
    - '3e4d5ab9f0508942b6231b8ade4f8e5048cf92c96ed574c2bd6bd3320a599a48'
    + '51cdc44ff7821837701316e4145d48b2dc27e43713f88194f6f147c6f09651a9'
    '998d1face674cc8d1af5bf28ded15caaaa18936a28f278123448f29555a07775'
    '7f59b28475aa2018a7edfb81ea81444a6eb098fd3847d8e605809ae6fbeabde5'
    'eac96c034d3d7d16080d9aef4749e4eda493563a3348e6a06f08e8a330b027ba')
    @@ -36,7 +37,7 @@
    prepare() {
    # Apply configure fix from newlib CVS
    - cd "$srcdir/newlib-$_newlibver/libgloss/arm"
    + cd "$srcdir/newlib-nano-2-newlib-nano-$_newlibnanover/libgloss/arm"
    patch -Np0 -i "$srcdir/libgloss-configure-fix.patch"
    autoreconf
    @@ -47,8 +48,8 @@
    patch -Np0 -i "$srcdir"/gcc-no-exceptions.patch
    # Move newlib and libgloss to gcc source directory
    - mv "$srcdir"/newlib-$_newlibver/newlib "$srcdir/$_basedir"
    - mv "$srcdir"/newlib-$_newlibver/libgloss "$srcdir/$_basedir"
    + mv "$srcdir"/newlib-nano-2-newlib-nano-$_newlibnanover/newlib "$srcdir/$_basedir"
    + mv "$srcdir"/newlib-nano-2-newlib-nano-$_newlibnanover/libgloss "$srcdir/$_basedir"
    # hack! - some configure tests for header files using "$CPP $CPPFLAGS"
    sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" "$srcdir"/$_basedir/{libiberty,gcc}/configure

  • I need help with compiler HELP

    I have tried compiling with Kawa and JBuilder, but both have problems. Jbuilder wont support graphics, and Kawa gives me an error when i compile something with a command like "g.setColor(Color.green)"
    the error is
    c:\jdk1.3.1_11\bin\Chapter13\Listing1301\com\burdbrain\drawings\Drawing.java:22:
    cannot resolve symbol symbol : variable BLUE
    location: class java.awt.Color
    g.setColor(java.awt.Color.BLUE);
    Does anyone have any experience with Kawa, or have any tips about graphics or anything. I am very new to Java
    Thanx

    c:\jdk1.3.1_11\bin\Chapter13\Listing1301\com\burdbrain\
    rawings\Drawing.java:22:
    cannot resolve symbol symbol : variable BLUE
    location: class java.awt.Color
    g.setColor(java.awt.Color.BLUE);Color.BLUE didn't exist pre java 1.4 or thereabouts so it won't compile under jdk1.3.1
    you can change it to Color.blue instead and that should work fine
    (they added the capitalized names because everyone else in the entire world uses capitalized names for constants)

Maybe you are looking for

  • How do I change the border color of a numeric indicator?

    I just started using LabVIEW again after a several year hiatus (I used to use it a LOT).  With the paintbrush tool, should I not be able to right click a numeric indicator's border and select T for transparent to make the border disappear?  Fo the li

  • Editing Bonjour for "Share my library on my local network"

    Hello, I was wondering if there was some type of configuration file for itunes or if there is a way to configure bonjour to look at my entire enterprise, instead of just the subnet that I am on, for people sharing their itunes library. I hope this is

  • Photoshop Elements 7 - Thumbnails

      I loaded PSE 7 onto a new PC then did a recovery from the latest backup.  The correct number of files loaded.  The problem is that no thumbnails are shown.  Whenever PSE is opened it shows 'generating thumbnails' however it quits doing this after a

  • T&E Task TS20000130 (Set trip status to approved) - pernr locked errors

    We are using a delivered task (TS20000130 - Set trip status to approved) in our T&E approval workflow.  Since moving this to production, weu2019ve experienced intermittent cases where the workflow step completes with an error because the pernr is loc

  • Opening JSP pages in Jdeveloper

    Hi all I am using Jdeveloper 10g preview for my project development. Lately I am getting an exception whenever I try to open JSP pages. I cannot get either the design view or the code view. My component palette also shows that it is inactive. The exc