New 2 Java - How to compile in Version 1.5.0 - childs play for u guys

Hi
I just installed JAVA from www.java.com and it has installed Version 1.5.0 (build 1.5.0_02-b09) on my pc. I am using Windows 2k and would like to know how can I compile a programme in JAVA. I remember earlier I used to use
javac <programme>.java
from the dos prompt. And had set it up in the path within autoexec.bat.
Now
1. How do we compile a programme now? Where is javac gone?
2. Do I need to setup a path? if "yes" where?
Help would be much appreciated. And you would see me more on this forum now.
Thanks

javac hasn't gone anywhere. It's still in the same place as in the previous versions.
Make sure you download and install the SDK and not just the run-time environment. After installing, put the bin directory of the SDK in your path and it works like usual.

Similar Messages

  • How can I get a fullscreen version of my iMovie to play for friends?

    I have uploaded my 8 minute iMovie 08 to my .mac site. When I send the link to friends, they see the movie play in a very small window. It also is fuzzy and unfocused. How can I get a fullscreen version of my iMovie to play for friends? Also the volume of the segment is very low even though when I made it it played normally.

    Suggest that you cross-post in the iMovie '08 Forums.

  • Run time errors on new java;  how do i get older version?

    i keep getting runtime errors on the new java version i'm tire of it i can't play my pogo games lol. how do i get an older version of java?

    Uninstall the JDK/JRE you are using (I presume J2SE 6.0). To do this : Control Panel > Add/Remove Programs > then remove JRE 6.0 and JDK 6.0.
    Visit http://java.sun.com/javase/downloads/previous.jsp and download the previous jdk that works fine for you. Install it and try your game.
    Hope That Helps

  • How to compile to version 1.0?

    I want to compile for version 1.0 (IE Browser, etc.). But my javac SDK 1.5 only compiles for newer versions? So is it impossible to comple Applets???

    1.0 or 1.1?
    1.0 I don't think you can, 1.1
    javac -source 1.2 -target 1.1Test.java
    should be fine, but better if you get a 1.1 JDK, even better get your users to upgrade to 1.5.

  • New Java SE JDK kit 6 version 26 does NOT install

    Firstly, if this is in the wrong forum location I appologise. This seemed to be the most appropriate place.
    Here is the background...for the last week or so I had been troubleshooting an issue with getting the Java JDK to work in eclipse. I was getting an Error when loading Eclipse which would not let it load at all. I had tried many things and the best answer I could find on the internet was that Oracle and Eclipse were notorious for having versions of the JDK that simply would not work in Eclipse. I don't know which side had the issue but regardless I deleted kit 6 version 25 today when I saw they just released version 26. My hope was that the issue was fixed in this version.
    Upon downloading the JDK and attempting to install it, I can't even finish the installation without an error (!!!!). The error says exactly this...
    Java Setup
    Error 1723.There is a problem with this Windows
    Installer package. A DLL required for this install to
    complete could not be run. Contact your support
    personnel or package vendor.
    I can't even get the darn thing to finish the install. Can anyone shed some light on this for me? Maybe tell me what DLL file is missing that I need to install and where I can get it and where to install it? I literally just bought this laptop this week and the ONLY thing I have done with it so far is installed eclipse and this JDK, nothing else. It's got 64 bit windows 7. Seems that if a brand new factory default dell computer can't install the JDK from the download on the Oracle website that perhaps the download version has an issue? Any ideas? Is there a support email/phone at Oracle that I can contact or is this it?
    Thank you for any help you can provide.
    -Jeff

    You deleted it or you uninstalled it?
    The first is not the same as the second.
    If it was me I would remove eclipse and oracle.
    And verify nothing remains in the registry.

  • How to compile multiple video clips in a storage bin for future projects?

    I want to stock pile all of my favorite selected video snippets into bins where I can easily access them at will. I don't want the hundreds of optional video snippets clogging up the project I am working on at hand. Is there a way where I can choose and drag my favorite selected video snippets from a separate window into a new project?
    Any wisdom is much appreciated,
    Thank you.

    You can mark certain video frames in events as favorites. Then when you bring up an event, you can select to only see the favorites. Use the Favorites tool. [Here is a good video tutorial|http://www.apple.com/findouthow/movies/#mark]
    You can also mark video on events with keywords, and select by keyword. [Video Tutorial here|http://www.apple.com/findouthow/movies/imovie08.html#tag]
    In both of these solutions, the clips remain in the original event, not in a different bin, however.
    Message was edited by: AppleMan1958

  • How to find SOA version 11.1.1.6.0 for download.

    Hi , Guys,
    I am not able to find SOA version 11.1.1.6.0 to download in otn or in edelivery.
    Is it not available for download.  ? only SOA 11.1.7.... is there to download not 11.1.1.6.0
    and i need SOA 11.1.1.6.0.
    Could someone drop a link from where to download SOA version 11.1.1.6.0.
      Appreciate the response.
    Thanks!
    Priya

    Sunil,
    It may sound childish to you as I Couldn't be sure of the following
    if the Oracle SOA suite 11g Patch set 5(11.1.1.6.0) V29672 part 1 & 2 at https://edelivery.oracle.com/EPD/Download/get_form?egroup_aru_number=15364661
    need to be applied on SOA 11.1.1.5 version or it can be used as entire SOA 11.1.1.6.0 Installation  without any pre-requisite?
    Could you tell.
    Thanks
    Priya

  • How to compile a java servlet in netbeans

    heyall, just placed the following java code in my src folder in my web app folder in netbeans, anyone tell me how to compile this now? it asks me for a main but not sure exactly what to put
    package org.mypackage.chapter1;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class ServletOne extends HttpServlet {
      /** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
       * @param request servlet request
       * @param response servlet response
      protected void processRequest(HttpServletRequest request, HttpServletResponse response)
      throws ServletException, IOException {
        response.setContentType("text/html;charset=UTF-8");
        PrintWriter out = response.getWriter();
        /* TODO output your page here */
            out.println("<html>");
            out.println("<head>");
            out.println("<title>Servlet ServletOne</title>");
            out.println("</head>");
            out.println("<body>");
            out.println("<h1>Servlet ServletOne at " + request.getContextPath () + "</h1>");
            out.println("Date is: "+ new java.util.Date());
            out.println("</body>");
            out.println("</html>");
        out.close();
      // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
      /** Handles the HTTP <code>GET</code> method.
       * @param request servlet request
       * @param response servlet response
      protected void doGet(HttpServletRequest request, HttpServletResponse response)
      throws ServletException, IOException {
        processRequest(request, response);
      /** Handles the HTTP <code>POST</code> method.
       * @param request servlet request
       * @param response servlet response
      protected void doPost(HttpServletRequest request, HttpServletResponse response)
      throws ServletException, IOException {
        processRequest(request, response);
      /** Returns a short description of the servlet.
      public String getServletInfo() {
        return "Short description";
      // </editor-fold>
    }

    heyall, just placed the following java code in my src folder in my web app folder in netbeans, anyone tell me how to compile this now?F9
    it asks me for a main but not sure exactly what to putCompiling source files never 'asks .. for a main'. You must be trying to execute it. You can't do that outside the servlet container it is intended for
    COMPILER ERROR - package javax.servlet.http does not exist
    BUT can't even get this far yetSo try compiling it as per your tutorial. Do you understand the difference between 'compile' and 'run'?

  • How to compile and add my own protocol

    I want to send a sms without user intervention i have got a code from net which specifies a separate protocol for message.
    Now i am unable to compile it .I need a kmidp20.zip file for it.
    Can anyone tell me how to compile it.
    I need it very urgently for my application
    I am Sending u the code.I found it at the web page
    http://www.mobile-j.de/snipsnap/space/J2ME/Sending+SMS+from+MIDlet+without+user+intervention
    This certainly don't works since "xsms" is not an registered protocol.
    So we add this protocol to the package com.symbian.midp.io.protocol.xsms: (To compile the com.symbian.midp.io.protocol.xsms.Protocol class you will need the "kmidp20.zip" from the Nokia Series_60_MIDP_SDK_2_1 (I guess an other version will do also) in your classpath.)
    package com.symbian.midp.io.protocol.xsms;import com.symbian.gcf.*;
    import com.symbian.javax.wireless.messaging.SMSConnectionSession;
    import java.io.IOException;
    import javax.microedition.io.Connection;public final class Protocol extends ProtocolBase
    public Protocol()
    super("sms", "sms");
    public void ensurePermission(String aName)
    // do nothing � hehe
    } public Connection openConnection(URI aUri, int aMode, boolean aTimeouts)
    throws IOException
    if(aUri.toString().startsWith("xsms")){
    aUri = new URI(aUri.toString().substring(1));
    } com.symbian.gcf.ConnectionSession session = SMSConnectionSession.getSession();
    String host = aUri.getHost();
    ConnectionEndPoint connection;
    if(isServerConnection(aUri))
    connection = null;
    } else
    if(aMode == 1)
    throw new IllegalArgumentException();
    connection = new SMSClientConnectionImpl(session, aUri, 2);
    connection.open();
    return connection;
    } protected boolean isServerConnection(URI aUri)
    return aUri.getHost().length() == 0;
    and we need this in that package:
    package com.symbian.midp.io.protocol.xsms;
    import com.symbian.gcf.*;
    import com.symbian.javax.wireless.messaging.*;
    import com.symbian.midp.runtime.Security;
    import com.symbian.util.BlockingOperation;
    import com.symbian.util.NativeError;
    import java.io.IOException;
    import java.io.InterruptedIOException;
    import javax.wireless.messaging.*;class SMSClientConnectionImpl extends DatagramConnectionEndPoint
    implements MessageConnection
    {    SMSClientConnectionImpl(ConnectionSession aSession, URI aUri, int aMode)
    throws IOException
    super(aSession, aUri, aMode);
    iUri = aUri;
    iSendPermissionArgs = new String[2];
    } public final Message newMessage(String aType)
    String address = null;
    if(iUri.getHost().length() > 0)
    address = iUri.toString();
    return newMessage(aType, address);
    } public final Message newMessage(String aType, String aAddress)
    Message msg;
    if(aType.equals("binary"))
    msg = new BinaryMessageImpl(aAddress, 0L);
    else
    if(aType.equals("text"))
    msg = new TextMessageImpl(aAddress, 0L);
    else
    throw new IllegalArgumentException();
    return msg;
    } public final int numberOfSegments(Message aMsg)
    MessageImpl messageImpl = getMessageImpl(aMsg);
    int numberOfSegments = 0;
    synchronized(super.iCloseOperation.getLock())
    if(super.iState != 2)
    numberOfSegments = messageImpl.populateSmsData(super.iNativePeerHandle, 0);
    if(numberOfSegments < 0)
    numberOfSegments = 0;
    return numberOfSegments;
    } public final void send(Message aMsg)
    throws IOException, InterruptedIOException
    String address = aMsg.getAddress();
    if(address == null)
    throw new IllegalArgumentException("No address");
    URI uri = new URI(address);
    MessageImpl messageImpl = getMessageImpl(aMsg);
    synchronized(super.iWriteOperation.getLock())
    synchronized(super.iWriteOperation)
    synchronized(super.iCloseOperation.getLock())
    ensureOpen();
    iSendPermissionArgs[0] = address;
    int numberOfSegments = messageImpl.populateSmsData(super.iNativePeerHandle, 1);
    if(numberOfSegments < 0)
    if(numberOfSegments == -40)
    throw new IllegalArgumentException("Message too big");
    NativeError.check(numberOfSegments);
    iSendPermissionArgs[1] = Integer.toString(numberOfSegments);
    checkSecurity("javax.wireless.messaging.sms.send", iSendPermissionArgs);
    int status = send(super.iNativePeerHandle, EMPTYBYTE_ARRAY, 0, 0, address);
    checkError(status);
    super.iWriteOperation.waitForCompletion();
    checkError(super.iWriteOperation.getResult());
    } public void setMessageListener(MessageListener aListener)
    throws IOException
    throw new IOException("Must be Server");
    } public Message receive()
    throws IOException, InterruptedIOException
    throw new IOException("Must be Server");
    } private static MessageImpl getMessageImpl(Message aMessage)
    MessageImpl messageImpl = null;
    try
    messageImpl = (MessageImpl)aMessage;
    catch(ClassCastException ex)
    throw new IllegalArgumentException("Not from newMessage()");
    return messageImpl;
    } protected static void checkSecurity(String aPermission, String aPermissionArgs[])
    // Security.ensurePermission(aPermission, aPermission, aPermissionArgs);
    } protected static final int MESSAGE_TYPE = 0;
    private static final String MUST_BE_SERVER_MSG = "Must be Server";
    private static final String SEND_PERMISSION = "javax.wireless.messaging.sms.send";
    private static final int SEND_PERMISSION_ARGS_TOTAL = 2;
    private static final int SEND_PERMISSION_ARGS_URI_INDEX = 0;
    private static final int SEND_PERMISSION_ARGS_SEGMENTS_INDEX = 1;
    private static final byte EMPTY_BYTE_ARRAY[] = new byte[0];
    private URI iUri;
    private String iSendPermissionArgs[];}

    I want to send a sms without user intervention i have got a code from net which specifies a separate protocol for message.
    Now i am unable to compile it .I need a kmidp20.zip file for it.
    Can anyone tell me how to compile it.
    I need it very urgently for my application
    I am Sending u the code.I found it at the web page
    http://www.mobile-j.de/snipsnap/space/J2ME/Sending+SMS+from+MIDlet+without+user+intervention
    This certainly don't works since "xsms" is not an registered protocol.
    So we add this protocol to the package com.symbian.midp.io.protocol.xsms: (To compile the com.symbian.midp.io.protocol.xsms.Protocol class you will need the "kmidp20.zip" from the Nokia Series_60_MIDP_SDK_2_1 (I guess an other version will do also) in your classpath.)
    package com.symbian.midp.io.protocol.xsms;import com.symbian.gcf.*;
    import com.symbian.javax.wireless.messaging.SMSConnectionSession;
    import java.io.IOException;
    import javax.microedition.io.Connection;public final class Protocol extends ProtocolBase
    public Protocol()
    super("sms", "sms");
    public void ensurePermission(String aName)
    // do nothing � hehe
    } public Connection openConnection(URI aUri, int aMode, boolean aTimeouts)
    throws IOException
    if(aUri.toString().startsWith("xsms")){
    aUri = new URI(aUri.toString().substring(1));
    } com.symbian.gcf.ConnectionSession session = SMSConnectionSession.getSession();
    String host = aUri.getHost();
    ConnectionEndPoint connection;
    if(isServerConnection(aUri))
    connection = null;
    } else
    if(aMode == 1)
    throw new IllegalArgumentException();
    connection = new SMSClientConnectionImpl(session, aUri, 2);
    connection.open();
    return connection;
    } protected boolean isServerConnection(URI aUri)
    return aUri.getHost().length() == 0;
    and we need this in that package:
    package com.symbian.midp.io.protocol.xsms;
    import com.symbian.gcf.*;
    import com.symbian.javax.wireless.messaging.*;
    import com.symbian.midp.runtime.Security;
    import com.symbian.util.BlockingOperation;
    import com.symbian.util.NativeError;
    import java.io.IOException;
    import java.io.InterruptedIOException;
    import javax.wireless.messaging.*;class SMSClientConnectionImpl extends DatagramConnectionEndPoint
    implements MessageConnection
    {    SMSClientConnectionImpl(ConnectionSession aSession, URI aUri, int aMode)
    throws IOException
    super(aSession, aUri, aMode);
    iUri = aUri;
    iSendPermissionArgs = new String[2];
    } public final Message newMessage(String aType)
    String address = null;
    if(iUri.getHost().length() > 0)
    address = iUri.toString();
    return newMessage(aType, address);
    } public final Message newMessage(String aType, String aAddress)
    Message msg;
    if(aType.equals("binary"))
    msg = new BinaryMessageImpl(aAddress, 0L);
    else
    if(aType.equals("text"))
    msg = new TextMessageImpl(aAddress, 0L);
    else
    throw new IllegalArgumentException();
    return msg;
    } public final int numberOfSegments(Message aMsg)
    MessageImpl messageImpl = getMessageImpl(aMsg);
    int numberOfSegments = 0;
    synchronized(super.iCloseOperation.getLock())
    if(super.iState != 2)
    numberOfSegments = messageImpl.populateSmsData(super.iNativePeerHandle, 0);
    if(numberOfSegments < 0)
    numberOfSegments = 0;
    return numberOfSegments;
    } public final void send(Message aMsg)
    throws IOException, InterruptedIOException
    String address = aMsg.getAddress();
    if(address == null)
    throw new IllegalArgumentException("No address");
    URI uri = new URI(address);
    MessageImpl messageImpl = getMessageImpl(aMsg);
    synchronized(super.iWriteOperation.getLock())
    synchronized(super.iWriteOperation)
    synchronized(super.iCloseOperation.getLock())
    ensureOpen();
    iSendPermissionArgs[0] = address;
    int numberOfSegments = messageImpl.populateSmsData(super.iNativePeerHandle, 1);
    if(numberOfSegments < 0)
    if(numberOfSegments == -40)
    throw new IllegalArgumentException("Message too big");
    NativeError.check(numberOfSegments);
    iSendPermissionArgs[1] = Integer.toString(numberOfSegments);
    checkSecurity("javax.wireless.messaging.sms.send", iSendPermissionArgs);
    int status = send(super.iNativePeerHandle, EMPTYBYTE_ARRAY, 0, 0, address);
    checkError(status);
    super.iWriteOperation.waitForCompletion();
    checkError(super.iWriteOperation.getResult());
    } public void setMessageListener(MessageListener aListener)
    throws IOException
    throw new IOException("Must be Server");
    } public Message receive()
    throws IOException, InterruptedIOException
    throw new IOException("Must be Server");
    } private static MessageImpl getMessageImpl(Message aMessage)
    MessageImpl messageImpl = null;
    try
    messageImpl = (MessageImpl)aMessage;
    catch(ClassCastException ex)
    throw new IllegalArgumentException("Not from newMessage()");
    return messageImpl;
    } protected static void checkSecurity(String aPermission, String aPermissionArgs[])
    // Security.ensurePermission(aPermission, aPermission, aPermissionArgs);
    } protected static final int MESSAGE_TYPE = 0;
    private static final String MUST_BE_SERVER_MSG = "Must be Server";
    private static final String SEND_PERMISSION = "javax.wireless.messaging.sms.send";
    private static final int SEND_PERMISSION_ARGS_TOTAL = 2;
    private static final int SEND_PERMISSION_ARGS_URI_INDEX = 0;
    private static final int SEND_PERMISSION_ARGS_SEGMENTS_INDEX = 1;
    private static final byte EMPTY_BYTE_ARRAY[] = new byte[0];
    private URI iUri;
    private String iSendPermissionArgs[];}

  • How to compile packages

    hi,
    i have a package structure
    root
    xml
    xmltest.java
    xmlans.java
    tts
    ttstxt.java
    ttsans.java
    ui
    uitxt.java
    uians.java
    sampletest.java
    how to compile all the above packages with a single javac.
    javac -d ????

    hi,
    i have a package structure
    root
    xml
    xmltest.java
    xmlans.java
    tts
    ttstxt.java
    ttsans.java
    ui
    uitxt.java
    uians.java
    ampletest.java
    how to compile all the above packages with a single
    javac.
    javac -d ????It's not quite enough (or at least the right) information. Are you saying that you have classes xmltest and xmlans in package xml? And ttstxt and ttsans in package tts? And uitxt and uians in package tts? and sampletest in which package?
    Java coding conventions say that class names should start with capitalized letters. Following conventions will make getting help easier.

  • My last computer crashed and it had all my songs and i got a new ipod how do i get those songs back

    ok so my last computer crashed and it had all my songs and that day i got a new ipod how do i get those songs back thast i paid for?

    If the songs are not on an iPod or a computer (didn't you have a backup of your computer files?) you are probably out of luck since you only get one download of music from the iTunes store and it is up to you to back them up.  However, the Itunes store may allow a redownload if you explain what happened.  Go to the following and select the appropriate topic to contact them.
    Apple - Support - iTunes

  • I'm moving from a iPhone 4S to an iphone 5s but and I'm changing SIM card with same number but I want to make sure that all my pictures go onto my new phone how can I do that?

    I'm moving from a iPhone 4S to an iphone 5s but and I'm changing SIM card with same number but I want to make sure that all my pictures go onto my new phone how can I do that?

    Hello Bethanygrace_m7,
    Thank you for contacting Apple Support Communities. You can take a look at this article about transferring content from your old iPhone to a new one:
    Transfer content from an iPhone, iPad, or iPod touch to a new device
    http://support.apple.com/kb/HT2109
    Here is another thread from the Communities about migrating data from an old iPhone to a new one:
    Migrating data from old to new iPhone?: Apple Support Communities
    https://discussions.apple.com/thread/2038778
    Regards,
    Jeff D.

  • How to compile all objects.....in Oracle10g

    Hi ,
    The Oracle Doc about PL/SQL Packages and Types reffering to DBMS_UTILITY and the COMPILE_SCHEMA procedure....points out :
    "Compiles all procedures, functions, packages, and triggers in the specified schema"
    So how to compile views and possibly other db schema object types ......????
    For example issuing the command :
    select object_name from user_objects where status='INVALID';
    we get all invalid objects, views , packages , e.t.c.
    How to compile all types of objects ... except for EM10g env......
    Many thanks....
    Sim

    You may want to use Solomon Yakobson's utility available here:
    http://apex.oracle.com/pls/otn/f?p=2853:5:4266218307366505

  • How to download latest version in iPhone?

    how to download latest version in iPhone?

    iTunes is for the PC, not your phone. Get on your computer, go to Apple, download the latest iTunes, update and then plug your phone in.
    All will be good.

  • Is SAP Netweaver Dev.Studio(version 2.0.3) not applicable for Portal app's?

    Hello All,
    On Windows XP system,I have installed "SAP Netweaver Dev.Studio(LICENSED version 2.0.3)", system is perfectly as per the requirements including the jdk 1.4.2 version.
    After the installation,there is no menu item for creating the Portal Application project in the New->Project menu items.Is this version 2.0.3 not compatible for working with SAP Enterprise Portal applications?In the documenatation of the same,SAP says that we can work even as a standalone application (only the IDE for developing the Portal objects)?But there is no provision for this?I have not find any documentation related this problem?Request your help for the advise.
    Thanks

    You need to have at least SP 9 for that option to show up.

Maybe you are looking for