Compiling Errors by Dummy java programmer

All,
I'm trying to learn Java as a dummer. I teaching myslef by using this book: Introduction to Java programming: comprehensive version/Y. Daniel Liang.--6 th ed.
I copied the following source code and tried to compile it and have the error below. Am confused! where am I going wrong?
// This application program prints Welcome to Java!
public class Welcome {
     public static void main(String[] args) {
          System.out.printIn("Welcome to Java!") ;
C:\j2sdk1.4.2_19>cd javafiles
C:\j2sdk1.4.2_19\javafiles>javac Welcome
C:\j2sdk1.4.2_19\javafiles>javac Welcome.java
Welcome.java:7: cannot resolve symbol
symbol : method printIn (java.lang.String)
location: class java.io.PrintStream
System.out.printIn("Welcome to Java!") ;
^
1 error
C:\j2sdk1.4.2_19\javafiles>

You wrote "printIn" instead of "println".
Um, that should be a lowercase L, not an upper case i.

Similar Messages

  • [svn] 1521: Fix compilation error in MBeanObjectNameResolver.java.

    Revision: 1521
    Author: [email protected]
    Date: 2008-05-02 05:19:25 -0700 (Fri, 02 May 2008)
    Log Message:
    Fix compilation error in MBeanObjectNameResolver.java.
    Modified Paths:
    blazeds/trunk/qa/apps/qa-regress/WEB-INF/src/qa/management/MBeanObjectNameResolver.java

    Revision: 1521
    Author: [email protected]
    Date: 2008-05-02 05:19:25 -0700 (Fri, 02 May 2008)
    Log Message:
    Fix compilation error in MBeanObjectNameResolver.java.
    Modified Paths:
    blazeds/trunk/qa/apps/qa-regress/WEB-INF/src/qa/management/MBeanObjectNameResolver.java

  • Compilation Error in basic java class

    Hello,
    I am newbie. And, I have developed following java classes. But the child class is results in error. Below is step by step event. What am I doing wrong?
    Step 1. Created a compiled class Shirt(parent). No issues
    public class Shirt {
    public int shirtID =0;
    public String description = "description required";
    // color codes
    public char colorCode = 'U';
    public double price = 0.0;
    public int quantityInStock = 0;
    // methods
    public void displayShirtInformation() {
       System.out.println("Shirt ID: " + shirtID);
       System.out.println("Shirt description:" + description);
       System.out.println("Color Code:" + colorCode);
       System.out.println("Shirt price: " + price);
       System.out.println("Quantity in Stock :" + quantityInStock);
    } // end of method
    } // end of class
    Step 2. Child class results in compilation error
    public class ShirtTest{
    public static void main (String[] args) {
         Shirt myShirt;
         myShirt = new Shirt();
         myShirt.displayShirtInformation();
    Step 3. Error show below
    C:Java>javac ShirtTest.java
    ShirtTest.java:4: cannot find symbol
    symbol  : class Shirt
    location: class ShirtTest
         Shirt myShirt;
         ^
    ShirtTest.java:5: cannot find symbol
    symbol  : class myShirt
    location: class ShirtTest
         myShirt = new myShirt();
                       ^
    2 errors Thanks D,

    Hello all. I am in a similar boat as far as getting the error message:
    javac ShirtTest.java
    ShirtTest.java:7: cannot find symbol
    symbol  : class Shirt
    location: class shirt.ShirtTest
            Shirt privShirt = new Shirt();
            ^
    ShirtTest.java:7: cannot find symbol
    symbol  : class Shirt
    location: class shirt.ShirtTest
            Shirt privShirt = new Shirt();
                                  ^
    2 errorsMy Shirt.java is as follows(which compiles just fine):
         1  package shirt;
         2
         3  public class Shirt {
         4
         5      private char colorCode = 'U';
         6
         7      public char getColorCode() {
         8          return colorCode;
         9      }
        10
        11      public void setColorCode (char newCode) {
        12          colorCode = newCode;
        13      }
        14
        15  }And my ShirtTest.java is as follows:
         1  package shirt;
         2
         3  public class ShirtTest {
         4
         5      public static void main (String args[]) {
         6
         7      Shirt privShirt = new Shirt();
         8      char colorCode;
         9
        10      privShirt.setColorCode('R');
        11      colorCode = privShirt.getColorCode();
        12
        13      System.out.println("Color Code: " + colorCode);
        14      System.out.println(" ");
        15
        16      privShirt.setColorCode('Z');
        17      colorCode = privShirt.getColorCode();
        18
        19      System.out.println("Color Code: " + colorCode);
        20
        21      }
        22
        23  }This is basically from the Fundamentals of the Java ^TM^ Programming Language SL-110-SE6 Student Guide(pages 9-12 & 9-13). We are working on Encapsulation if that makes any difference. Maybe it's just me but this book is not very new programmer/user friendly. At least in my opinion. I find it very frustrating that I can't even type in examples from the book and get them to work.
    I have tried the javac -cp . ShirtTest.java suggested here but get the same error. I have removed all *.class* files and still no luck.
    OS:
    uname -a
    SunOS 5.10
    JAVA:
    java -version
    java version "1.5.0_26"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_26-b03)
    Java HotSpot(TM) Server VM (build 1.5.0_26-b03, mixed mode)
    Anyway, any help would be appreciated.

  • View Compilation Errors in Embedded Java Activity

    Hi,
    Is there any way to see the compilation errors in the Embedded Java Activity in the BPEL.
    Thanks,
    Ajay

    Hi,
    Exceptions are automatically converted to BPEL faults and thrown back in BPEL.
    But to see some errors , one can use try catch block with audit trail entry in catch block like :
    try {
    catch (Exception e){
    addAuditTrailEntry(e);
    I have not used this so not sure if this will work.
    HTH,
    Ketan

  • Compilation errors when using java 5.0 features

    Hi,
    I modified the make script in my project to use JDK 1.5.0_11 compiler. instead of 1.4.2 compiler. But when I run the make script, it is throwing errors for all the JDK 1.5.0 features like for-each construct, auto-boxing etc..
    Please let me know if I am issing anything.
    It compiles successfully in my IDE.
    Thanks,
    Ravikumar

    May be. I am not expert in Make. I can see that it is using the programatic interface sun.tools.javac.Main to compile. Also -bootclasspath option is being used. But I dont see any -target option. So I am confused.

  • Compiling error for HelloWorld.java

    i know this has been asked b4....and im sure has also been answered
    but i have checked time and time again to make sure there is no .txt and there isnt, it is in fact a JAVA file but i STILL get this error
    error: cannot read: HelloWorld.java
    1 error

    ahhhh now that i don't have my old problem........i just got a couple new ones.....i hope someone can help me....here they are
    C:\Java\HelloWorld.java:3: <identifier> expected
    import.java.awt*; (there is a ^ mark under the period after import )
    C:\Java\HelloWorld.java:3: '.' expected
    import.java.awt.*; ( there is a ^ mark under the semicolon)
    C:\Java\HelloWorld.java:5: <identifier> expected
    import.javax.swing.*; (there is a ^ mark under the period after import, again)
    C:\Java\HelloWorld.java:5: '.' expected
    import.javax.swing.*; (there is a ^ mark under the semicolon, again)
    4 errors

  • CopyOfRange() compile error

    hi guys, i'm a bit stumped on this one, here's my compiler error
    javac filter.java
    filter.java:81: cannot find symbol
    symbol : method copyOfRange(java.io.File[],int,int)
    location: class filter
              first = copyOfRange(listOfFiles, testSetEnd, numFiles);
              ^
    1 error
    in my code...
    static final int FOLD_NUM = 10;
    File folder = new File(folderName);
    File[] listOfFiles = folder.listFiles();
    File[] first;
    int numFiles = listOfFiles.length;
    int testSetEnd=0;
    int testSetSize=numFiles/FOLD_NUM;
    testSetEnd=0+testSetSize;
    first = copyOfRange(listOfFiles, testSetEnd, numFiles);
    if anyone could explain to me why this isn't working i would be very appreciative! will this function not work on arrays of objects, in this case Files?
    thanks
    Matt

    Hello and welcome to the Sun Java forums.
    [This method|http://java.sun.com/javase/6/docs/api/java/util/Arrays.html#copyOfRange(T%5B%5C,%20int,%20int)]? You have to prefix its name with the class it's in, and import the class if needed as well.
    import java.util.Arrays;
    // and
    Arrays.copyOfRange(listOfFiles, testSetEnd, numFiles)s

  • Do java programms after giving compilation error generates .class file?

    Do java programms after giving compilation error generates the .class file?
    Do any outer class may have the private as access modifier?
    If someone asks you that -do any program in java after giving a compilation error gives the .class file -do any class except(inner class)
    be defined as private or static or protected or abc or xxx Now type the
    following program
    private class test
    public static void main(String s[])
    System.out.println("Hello!How are You!!");
    -Compile it.... You must have
    received this error test.java:1:The type type can't be private. Package members are always accessible within the current package. private class
    test ^ 1 error
    Here please notify that compiler has given the
    error not the warning therfore .class file should not be created but now type
    >dir *.class
    ___________ and you will see that the
    test.class file existing in the directory nevertheless this .class file
    is executable. if you will type __________________ >java test
    it will
    wish you Hello! and suerly asks you that How are You!! ________________!
    You can test it with the following as acces modifiers and the progrm will run Ofcourse it will give you compilation error.
    protected
    xxx
    abc
    xyz
    private
    Do you have any justification?

    Hmm,
    I've been working with different versions of jdk since, if I'm not mistaken, jdk1.0.6 and never was able to get *.class with compilation errors. It was true for Windows*, Linux, and Solaris*.
    About the 'private'/'protected' modifier for the type (class) - it makes perfect sence not to allow it there: why would anyone want to create a type if no one can access it? There should be a reason for restricting your types - let's say, any inner class can be private/protected.
    For ex., you shouldn't have compile problems with this:
    class Test
    public static void main(String s[])
    System.out.println("Hello!How are You!!");
    private class ToTest{}
    Sorry, but I don't really know where you can read up on that.

  • I can not run or compile java programme

    I am first time java programmer I can not run or compile any java programme.
    (can not read
    1 error) this is the the message that I am getting from my dos

    http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html
    Try the tutorial.
    It sounds like your error message comes from compiling. For example, "javac mysourcecode.java" If that is correct, the most common trouble comes from using a program like Notepad on Windows to create the soruce code. The tutorial will walk your through it.

  • Error while compiling and building file [java] ERROR: ejbc couldn't invoke

    *[java] [EJBCompiler] : Compliance Checker said bean was compliant*
    *[java] ERROR: Error from ejbc: Access is denied*
    *[java] java.io.IOException: Access is denied*
    *[java] at java.io.WinNTFileSystem.createFileExclusively(Ljava.lang.Stri*
    ng;)Z(Native Method)
    *[java] at java.io.File.checkAndCreate(File.java:1314)*
    *[java] at java.io.File.createTempFile(File.java:1402)*
    *[java] at java.io.File.createTempFile(File.java:1439)*
    *[java] at weblogic.utils.compiler.CompilerInvoker.execCompiler(Compiler*
    Invoker.java:227)
    *[java] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Comp*
    ilerInvoker.java:428)
    *[java] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok*
    er.java:328)
    *[java] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok*
    er.java:336)
    *[java] at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:27*
    *0)*
    *[java] at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:4*
    *76)*
    *[java] at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:3*
    *97)*
    *[java] at weblogic.ejbc20.runBody(ejbc20.java:517)*
    *[java] at weblogic.utils.compiler.Tool.run(Tool.java:192)*
    *[java] at weblogic.utils.compiler.Tool.run(Tool.java:147)*
    *[java] at weblogic.ejbc.main(ejbc.java:29)*
    *[java] ERROR: ejbc couldn't invoke compiler*
    BUILD FAILED

    Yshemi,
    You do not have to explicitly point the server to a compiler. Its already in
    the IDE classpath. Can you provide more information on the steps you
    followed.
    You had stated that you had created a new workshop domain. Is this the
    domain in which your are creating the new application ?
    You can choose the server when you create the application or by editing the
    application properties.
    Can you verify this ?
    Can you test the built in sample to check if it works fine ?
    What is the operating system that you are working on ?
    Can you try by creating a new empty application, and an ejb project and let
    me know the results ?
    Regards,
    Raj Alagumalai
    WebLogic Workshop Support
    "yshemu" <[email protected]> wrote in message
    news:3f4eabaf$[email protected]..
    >
    Hi Guys,
    I have created a workshop domain with the configuration wizard.
    I am trying to build a simple EJB - stateless session, has one method
    that returns a string.
    when I try to build I get the following :
    "ERROR: ERROR: Error from ejbc: Compiler failed executable.exec
    ERROR: ERROR: ejbc couldn't invoke compiler
    BUILD FAILED
    ERROR: ERROR: Error from ejbc: Compiler failed executable.exec
    ERROR: ERROR: ejbc couldn't invoke compiler
    Application Build had errors."
    It seems like Workshop can't find the compiler.
    I added "c:\bea81\jdk141_03\bin" to the application properties under
    "server classpath additions" and still get the same error.
    Does anyone know how I can point workshop to the compiler ?
    Thanks
    yshemi

  • Bursting Java Concurrent Program Class Compiling Error

    Hi,
    I am trying to compile the Java Class that Tim has provided in his blog to create the Bursting JCP. I am using R12, so that would be XMLP 5.6.3. As far as I can work out the patch that has been developed for the seeded Bursting JCP is not yet available for R12, so I am trying to create one myself from Tim's examples.
    I do not pretend to be a Java expert, or even pretend to have more than and very very very basic knowledge of it, so I am hoping someone will be able to tell me why I am getting the following error when I try to compile it:
    $ javac XMLPReportBurst.java
    XMLPReportBurst.java:220: cannot find symbol
    symbol : constructor OADocumentProcessor(java.io.InputStream,java.io.InputStream,java.lang.String)
    location: class oracle.apps.xdo.oa.util.OADocumentProcessor
    OADocumentProcessor dp = new OADocumentProcessor(ctlFile,fis,"/home/applmgr/tmp");
    ^
    1 error
    The Java Class that I am using can be seen below, and the error seems to be occurring at line 220:
    package oracle.apps.xdo.oa.cp;
    import java.sql.SQLException;
    import java.sql.Connection;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.io.PrintWriter;
    import java.io.StringWriter;
    import oracle.jdbc.driver.OracleResultSet;
    import oracle.jdbc.driver.OraclePreparedStatement;
    import oracle.jdbc.driver.OracleCallableStatement;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.util.NameValueType;
    import oracle.apps.fnd.util.ParameterList;
    import oracle.apps.fnd.cp.request.CpContext;
    import oracle.apps.fnd.cp.request.ReqCompletion;
    import oracle.apps.fnd.cp.request.LogFile;
    import oracle.apps.fnd.cp.request.JavaConcurrentProgram;
    import oracle.apps.fnd.cp.request.RemoteFile;
    import oracle.apps.xdo.XDOException;
    import oracle.apps.xdo.oa.util.OADocumentProcessor;
    import oracle.apps.xdo.batch.BurstingListener;
    import java.util.Properties;
    import java.util.Vector;
    public class XMLPReportBurst implements JavaConcurrentProgram, BurstingListener
    public static final String RCS_ID=
    "$Header: JCP4XMLPublisher.java 115.34 2006/01/09 16:54:58 bgkim noship $";
    public static final boolean RCS_ID_RECORDED =
    VersionInfo.recordClassVersion(RCS_ID, "oracle.apps.xdo.oa.cp");
    // Global Reference to pCpContext
    private CpContext ccntxt;
    private LogFile lfile;
    private boolean debug = false;
    private Connection mJConn;
    public void runProgram(CpContext pCpContext)
    lfile = pCpContext.getLogFile();
    lfile.writeln("XML Report Publisher 5.0",0);
    ccntxt = pCpContext;
    // get the JDBC connection object
    mJConn = pCpContext.getJDBCConnection();
    // get parameter list object from CpContext
    ParameterList lPara = pCpContext.getParameterList();
    // get ReqCompletion object from CpContext
    ReqCompletion lRC = pCpContext.getReqCompletion();
    String Params = null;
    int lrequestId = 0;
    String ltemplatecode = null;
    String lApplShortName = null;
    String lLocale = null;
    String lDebug = "N";
    String lOutFormat = null;
    String tmplLang = null;
    String tmplTerr = null;
    int reqid = pCpContext.getReqDetails().getRequestId();
    // Parse Parameters
    while (lPara.hasMoreElements())
    NameValueType aNVT = lPara.nextParameter();
    Params += aNVT.getName() + ":" + aNVT.getValue();
    if ( aNVT.getName().equals("ReportRequestID") )
    lrequestId = Integer.parseInt(aNVT.getValue());
    else if ( aNVT.getName().equals("DebugFlag") )
    lDebug = aNVT.getValue();
    debug = (lDebug.equals("Y")) ? true : false;
    if (debug)
    lfile.writeln("Request ID: "+reqid ,1);
    lfile.writeln("All Parameters: " + lPara.getString(),1);
    lfile.writeln("Report Req ID: "+ lrequestId,1);
    lfile.writeln("Debug Flag: " + lDebug,1);
    try
    lfile.writeln("Updating request description",0);
    String lSqls = "update FND_CONCURRENT_REQUESTS " +
    "set DESCRIPTION='Bursting ' || " +
    " ( select USER_CONCURRENT_PROGRAM_NAME " +
    " from FND_CONC_REQ_SUMMARY_V " +
    " where request_id= :1 ) " +
    "where request_id = :2 ";
    OracleCallableStatement lStmt2 =
    (OracleCallableStatement)mJConn.prepareCall(lSqls);
    lStmt2.setInt(1,lrequestId);
    lStmt2.setInt(2,reqid);
    lStmt2.execute();
    lStmt2.close();
    mJConn.commit();
    if (debug) lfile.writeln("Updated description",0);
    /* Obtain Input xml file from RemoteFile object by lrequestId */
    lfile.writeln("Retrieving XML request information",0);
    lSqls = "select OUTFILE_NODE_NAME, OUTFILE_NAME from " +
    "FND_CONCURRENT_REQUESTS " +
    "where request_id= :1";
    OraclePreparedStatement lStmt1 =
    (OraclePreparedStatement)mJConn.prepareStatement(lSqls);
    lStmt1.setInt(1,lrequestId);
    OracleResultSet lRslt = (OracleResultSet)lStmt1.executeQuery();
    lRslt.next();
    String cNode=lRslt.getString(1);
    String outf=lRslt.getString(2);
    lRslt.close();
    lStmt1.close();
    if (debug) lfile.writeln("Node Name:" + cNode,1);
    lfile.writeln("Preparing parameters",0);
    // PDF output file (Outfile of this request)
    String outputfilename = pCpContext.getOutFile().getFileName();
    if (debug) lfile.writeln(lOutFormat+" output =" + outputfilename, 1);
    OutputStream fout = new FileOutputStream(outputfilename);
    RemoteFile rf = new RemoteFile (pCpContext, cNode, outf, "TEXT");
    String inputfilename = rf.getFile().getAbsolutePath();
    if (debug) lfile.writeln("inputfilename =" + inputfilename, 1);
    if ( inputfilename == null || inputfilename.equals("") )
    lRC.setCompletion(ReqCompletion.ERROR,
    "Error has occured. Please check the log file");
    // Input stream from XML data file ( Outfile of XML generating request)
    InputStream fis = new FileInputStream(inputfilename);
    InputStream ctlFile = new FileInputStream("\\home\\applmgr\\InvoiceBatchBurst.xml");
    lfile.writeln("Starting burst ...",1);
    OADocumentProcessor dp = new OADocumentProcessor(ctlFile,fis,"/home/applmgr/tmp");
    lfile.writeln("Bursting initiated ... ",1);
    dp.registerListener(this);
    lfile.writeln("Listener created ...",1);
    Properties prop= new Properties();
    lfile.writeln("Properties set ...",1);
    prop.put("user-variable:EMAILP","[email protected]");
    dp.setConfig(prop);
    lfile.writeln("Config set ...",1);
    dp.process();
    lfile.writeln("Bursting complete",1);
    fis.close();
    fout.close();
    lRC.setCompletion(ReqCompletion.NORMAL, "Request Completed Normal");
    catch (SQLException e)
    lfile.writeln("--SQLException",1);
    //lfile.writeln(e.getMessage(),1);
    lfile.writeln(getErrorStack(e),1);
    lRC.setCompletion(ReqCompletion.ERROR, e.getMessage());
    catch (XDOException e)
    lfile.writeln("--XDOException",1);
    //lfile.writeln(e.getMessage(),1);
    //lfile.writeln(sw.toString(),1);
    lfile.writeln(getErrorStack(e),1);
    lRC.setCompletion(ReqCompletion.ERROR, e.getMessage());
    catch (Exception e)
    lfile.writeln("--Exception",1);
    lfile.writeln(e.getMessage(),1);
    lfile.writeln(getErrorStack(e),1);
    lRC.setCompletion(ReqCompletion.ERROR, e.getMessage());
    finally
    pCpContext.releaseJDBCConnection();
    private String getErrorStack(Exception exc) {
    StringWriter sw = new StringWriter();
    PrintWriter pw = new PrintWriter(sw);
    try
    exc.printStackTrace(pw);
    pw.flush();
    pw.close();
    sw.close();
    return sw.toString();
    catch (Exception e)
    return null;
    public void beforeProcess(){
    if (debug) lfile.writeln("==============Start of Bursting Process=================",0);
    public void afterProcess()
    if (debug) lfile.writeln("==============End of Bursting Process=================",0);
    public void beforeProcessRequest(int requestIndex)
    if (debug)
    lfile.writeln(" ========Start of Process Request",0);
    lfile.writeln(" Request Index +requestIndex",0);
    public void afterProcessRequest(int requestIndex)
    if (debug) lfile.writeln(" ========End of Process Request",0);
    public void beforeProcessDocument(int requestIndex,int documentIndex)
    if (debug){
    lfile.writeln(" ========Start of Process Document",0);
    lfile.writeln(" Request Index "+requestIndex,0);
    lfile.writeln(" Document Index " +documentIndex,0);
    public void afterProcessDocument(int requestIndex,int documentIndex,Vector documentOutputs)
    if (debug){
    lfile.writeln(" ========End of Process Document",0);
    lfile.writeln(" Outputs :"+documentOutputs,0);
    public void beforeDocumentDelivery(int requestIndex,int documentIndex,String deliveryId)
    if (debug){
    lfile.writeln(" ========Start of Delivery",0);
    lfile.writeln(" Request Index "+requestIndex,0);
    lfile.writeln(" Document Index " +documentIndex,0);
    lfile.writeln(" DeliveryId " +deliveryId,0);
    public void afterDocumentDelivery(int requestIndex,int documentIndex,String deliveryId,Object deliveryObject,Vector attachments)
    if (debug){
    lfile.writeln(" ========End of Delivery",0);
    lfile.writeln(" Attachments : "+attachments,0);
    I hope you can help me as this is an on going issue for me that I need to try and get resolved.
    I look forward to hearing any suggestions.
    Regards,
    Cj

    Hi,
    Yes you have one more field in the Data Definition tab that reads Bursting Control File just after the 3 you mentioned .You can upload the control file here.
    However both this functionality and the Bursting Concurrent Program will be available once you have applied the patch for 5.6.3..
    I've been looking too for anyone who has a writeup on the the way this Program can be used.As of now I am just following the Read Me available with this Patch.
    It has some samples...
    Let me know if this helps.
    Regards,
    Lavina

  • [ SOLVED ] Compile Error with Java Fonts & IntelliJ

    Hi All
    I have now got a new problem when i compile a flex project.  Yesterday inorder to get the IJ Interface font smoothing sorted, i had to add this line to my ~/.bashrc file
    _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on
    But now when i go to run a flex project, i get the following error message
    Information:Using built-in compiler shell, up to 4 parallel threads
    See compiler settings at File | Settings | Compiler | Flex Compiler page
    Information:Starting Flex compiler:
    /opt/java/jre/bin/java -Dapplication.home=/home/julian/SDK/flex_sdk_4.5.0.17855 -Xmx384m -Dsun.io.useCanonCaches=false -Duser.language=en -Duser.region=en -Xmx1024m -classpath /opt/idea-IU-98.311/plugins/flex/lib/flex-compiler.jar:/home/julian/SDK/flex_sdk_4.5.0.17855/lib/flex-compiler-oem.jar com.intellij.flex.compiler.FlexCompiler 48936
    Information:Compilation completed with 2 errors and 0 warnings
    Information:2 errors
    Information:0 warnings
    Error:Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on
    Error:java.net.SocketException: Socket closed
    Error:java.net.ConnectException: Connection refused
    Error:     at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
         at java.net.Socket.connect(Socket.java:529)
         at java.net.Socket.connect(Socket.java:478)
         at java.net.Socket.<init>(Socket.java:375)
         at java.net.Socket.<init>(Socket.java:218)
         at com.intellij.flex.compiler.FlexCompiler.openSocket(FlexCompiler.java:35)
         at com.intellij.flex.compiler.FlexCompiler.main(FlexCompiler.java:70)
    Any suggestions, besides disabling the _JAVA_OPTION again ?
    Many Thanks
    Last edited by whitetimer (2010-11-14 17:24:11)

    -Dawt.useSystemAAFontSettings=on needs to be added to the end of file
    idea.vmoptions

  • Compile error with IDLJ generated java files.

    When compiling the IDLJ generated java files, javac is not able to recognize org.omg.CORBA.ObjectHelper
    classs. Looks like the import is not finding this class.
    I have located these classes in rt.jar but including this jar in CLASSPATH gives
    a version '48.0' is too recent error.
    Thanks
    Ramesh

    PLEASE IGNORE THIS MESSAGE. I HAVE RESOLVED THIS ISSUE.
    "Ramesh Nadella" <[email protected]> wrote:
    >
    When compiling the IDLJ generated java files, javac is not able to recognize
    org.omg.CORBA.ObjectHelper
    classs. Looks like the import is not finding this class.
    I have located these classes in rt.jar but including this jar in CLASSPATH
    gives
    a version '48.0' is too recent error.
    Thanks
    Ramesh

  • Redirecting java compilation errors to a file

    Hi,
    How do I redirect java compilation errors to a file while using a dos environment ? Help needed asap.
    Gayathri

    javac FileName.java 2> errorFileName

  • Java compilation error messages

    Is there any way for HTML DB to return error messages during Java compilation? Every create java command I submit -- unless there is a grievous syntax error -- seems to return statement processed:
    Given....
    CREATE OR REPLACE FUNCTION returnOne
       RETURN NUMBER
    AS LANGUAGE JAVA
       NAME 'JavaTest.returnOne ()
                return int';Test #1 -- a valid Java source code:
    create or replace java source named "JavaTest" as
    public class JavaTest
      public static int returnOne()
           return 1;
    Statement processed.
    0.20 seconds
    begin
      htp.p(returnOne());
    end;
    1
    Statement processed.
    0.11 secondsTest #2 -- Invalid source code -- there is no indication until runtime that anything is wrong:
    create or replace java source named "JavaTest" as
    public class JavaTest
      public static int returnOne()
           iCalendar ical   = new iCalendar();
           return 1;
    Statement processed.
    0.18 seconds
    begin
      htp.p(returnOne());
    end;
    ORA-29541: class ARDB.JavaTest could not be resolved
    0.37 seconds               :(

    Er....yeah....but do you have any idea why the SQL Command Processor would not return any errors when trying to compile a class with a non-valid dependency?
    Another example:
    create or replace and compile java source named "JavaTest" as
    public class JavaTest
      public static int returnOne()
           MyFooBarClass ns = new MyFooBarClass();
           return 1;
    Statement processed.
    0.37 seconds
    select * from user_errors where name = 'JavaTest';
    NAME     TYPE     SEQUENCE     LINE     POSITION     TEXT     ATTRIBUTE     MESSAGE_NUMBER
    JavaTest     JAVA CLASS     1     0     0     ORA-29535: source requires recompilation     ERROR     0
    JavaTest     JAVA SOURCE     1     0     0     JavaTest:5: cannot resolve symbol     ERROR     0
    JavaTest     JAVA SOURCE     2     0     0     symbol : class MyFooBarClass      ERROR     0
    JavaTest     JAVA SOURCE     3     0     0     location: class JavaTest     ERROR     0
    JavaTest     JAVA SOURCE     4     0     0     MyFooBarClass ns = new MyFooBarClass();     ERROR     0
    JavaTest     JAVA SOURCE     5     0     0     ^     ERROR     0
    JavaTest     JAVA SOURCE     6     0     0     JavaTest:5: cannot resolve symbol     ERROR     0
    JavaTest     JAVA SOURCE     7     0     0     symbol : class MyFooBarClass      ERROR     0
    JavaTest     JAVA SOURCE     8     0     0     location: class JavaTest     ERROR     0
    JavaTest     JAVA SOURCE     9     0     0     MyFooBarClass ns = new MyFooBarClass();     ERROR     0
    JavaTest     JAVA SOURCE     10     0     0     ^     ERROR     0
    JavaTest     JAVA SOURCE     11     0     0     2 errors     ERROR     0Well, now that I know about user_errors, I can go ahead -- but that was sort of a surprising find.....

Maybe you are looking for

  • Dreamweaver CC impossible to use on MacBook Pro 13" ?

    Hi, I have a 13" MacBook Pro 2012 (classic, not retina). I installed Dreamweaver CC yesterday to continue working on a site I'm developing (I had it on my Mac desktop but needed to work while away from home). I found the workspace layout of Dreamweav

  • Captivate 6- using ppt and filming a program for a presentation

    Hello Is it possible to start the presentation with power point and then film a computer program? I want to swtich between the 2. thanks, Erin

  • How I work with MS-SQL function in oracle

    I'm working in oracle now but I don't know how can I use following function in oracle. convert, dateadd, datediff, fetch_status, isnumeric, reverse, str and stuff

  • Buttons over Video woes

    Hi all, Having trouble with my BOVs - they worked fine, now they don't! (it always happens this way the day before deadline, doesn't it? :P) A bit of background... I'm using DVD Studio Pro 4. I've got a bunch of clips on the one track stuck end to en

  • Confusion in Select query having a inner join on single table

    Hi, I was going through coding and came a accross a select query which has a inner join on a single table. I am getting confused while analysing this . Please someone can help me analysing this query. select         m~MATERIAL         s~NUMERATOR s~D