How to run java using xcode?

i have to install "java developer " but i can't find, where i can run Java, Please give me information about "how to run java use xcode " ?

Download the SDK from Oracle, code, enjoy.

Similar Messages

  • How to run java servlet without using Web.xml?

    How to run servlet without using Web.xml? From a book, I know that web.xml descriptor is optional, but the book doesn't tell us how to run java servelet without web.xm descriptor. So how to do that? Thanks a lot.

    How to run servlet without using Web.xml?But Tomcat now uses a web.xml for its global server-wide configuration.
    If you'd like to invoke a servlet with:
    http://host/servlet/ServletName
    you have to enable the invoker servlet.
    [from an HTML]
      <FORM METHOD="POST" ACTION="/servlet/HGrepSearchSJ">
    [from resin.conf of Resin Web Server 2.1.12]
      <!--
         - The "invoker" servlet invokes servlet classes from the URL.
         - /examples/basic/servlet/HelloServlet will start the HelloServlet
         - class.  In general, the invoker should only be used
         - for development, not on a deployment server, because it might
         - leave open security holes.
        -->
      <servlet-mapping url-pattern='/servlet/*' servlet-name='invoker'/>
    [from TOMCAT5.0.19/conf/web.xml, a global server-wide web.xml file]
      <!-- The "invoker" servlet, which executes anonymous servlet classes      -->
      <!-- that have not been defined in a web.xml file.  Traditionally, this   -->
      <!-- servlet is mapped to URL pattern "/servlet/*", but you can map it    -->
      <!-- to other patterns as well.  The extra path info portion of such a    -->
      <!-- request must be the fully qualified class name of a Java class that  -->
      <!-- implements Servlet (or extends HttpServlet), or the servlet name     -->
      <!-- of an existing servlet definition.     This servlet supports the     -->
      <!-- following initialization parameters (default values are in square    -->
      <!-- brackets):                                                           -->
      <!--                                                                      -->
      <!--   debug               Debugging detail level for messages logged     -->
      <!--                       by this servlet.  [0]                          -->
        <servlet>
            <servlet-name>invoker</servlet-name>
            <servlet-class>
              org.apache.catalina.servlets.InvokerServlet
            </servlet-class>
            <init-param>
                <param-name>debug</param-name>
                <param-value>0</param-value>
            </init-param>
            <load-on-startup>2</load-on-startup>
        </servlet>
    ---comment out below----------------------------------------------------------
        <!-- The mapping for the invoker servlet -->
    <!--
        <servlet-mapping>
            <servlet-name>invoker</servlet-name>
            <url-pattern>/servlet/*</url-pattern>
        </servlet-mapping>
    -->

  • How to run exception using JSP?

    How to run exception using JSP?

    Why would you need the <%%> between the if else blocks? Even if you attempt to write some data within the blocks in java, you will still get an error. For example, this is illegal:
    if(done)
        System.out.println(true);
    System.out.println("Hello World");
    else
        System.out.println(false);
    }The compiler is expecting the 'else' to be directly after the body of the if. If it encounters anything else, it will complain. So you cannot do this in jsp either, regardless if it's a different technology, it's the same compiler.

  • How to run java signed applet in vista with changing IE security options

    how to run java signed applet in vista with changing IE security options. If i change the IE security settings to low. it works.
    without changing the security setting, how to run.

    j_nanaji9 wrote:
    how to run java signed applet in vista with changing IE security options. If i change the IE security settings to low. it works.
    without changing the security setting, how to run.Can't be done without changing the security setting.

  • How to run java program from website?

    Hello
    I'd like to know how to run java program from my web page.
    I'd like to push some button in this web page so java program that would be on my server
    would pop-up. Can it be done automaticaly upon running this web site? (without any buttons - I just enter website and program pops up).
    Cheers

    I rather thought about RMI. But I could try servlets. So how it would look like?.
    I would make http request in browser (enter address) and program would show up in its window?. And I would not have to change anything in my program?. This program would run then on both boxes?. One remotely and one not?.
    But I would have to learn some basics, I've never worked with servlets. Could you suggest some good sites about it?. With ready examples so I could tweak them to my purpose.
    Message was edited by:
    macmacmac

  • How to run VI using bolean control?

    How to run VI using bolean control? Do I need to use invoke node or something else?
    Thank you in advance.

    You cannot start running a vi using a boolean on the front panel of that same VI. Detecting the state of the control requires the VI to be running.
    Maybe you can clarify WHY you need to do this. The run button is for VI development. Once you have a final application, it should be set to "run when opened". The actual code could start out in a wait loop (or wait event) such that pressing a certain button will trigger execution of the main code as needed.
    LabVIEW Champion . Do more with less code and in less time .

  • How to run .java file in windows ?

    How to run .java file in windows without installing any program? Thx!

    First, U must make sure that there is JDK on your computer
    Then, set the envionment variables which the os can find your compiler and interpreter: javac java
    after those, you must complie your .java file to .class file, then you can excute it by java, for example " java helloworld"

  • How to run Java program as Daemon Server in linux

    How to run Java program as Daemon Server in linux
    i would like to run the java program on system start up in a redhat linux system
    can any one provide rc.status file

    http://wrapper.tanukisoftware.org/

  • How to run Java Card 2.2.1 demo application?

    Hi Friends..
    i want to know how to run Java Card 2.2.1 demo application in Windows environment..
    Sorry, perhaps this question looks like a little bit stupid.. :(
    In Windows, I've set the environment variables for :
    JAVA_HOME : C:\Program Files\Java\jdk1.6.0_03
    JC_HOME : C:\java_card_kit-2_2_1
    and then how to run demo1.scr, etc?.
    Please help me regarding this,
    Thanks in advance..

    Is there any suggestion for my question?.. :(
    Thanks in advance..

  • How to run java file by using another applet file  ??

    how to compile and run java file by using another applet or japplet file .

    how to understand what you are talking about.

  • How to run TCK using Java Card Sun reference model from eclipse

    Hi all,
    can any one help me by giving an idea about running java card TCK using sun reference model from eclipse IDE.
    Thanks
    Murali

    tck should be able to run as stand-alone (with jcre).

  • How to run java from another directory

    hi,
    i have a Sample.java file in F drive(f:/Sample.java). I opened command prompt in windows and went to c: drive and try to compile as
    C:\>javac f:/Sample.java
    above command works well. it generated Sample.class file in F:/Sample.
    But, when i try to Run that file, i got the error as follow.
    C:\>java f:/Sample
    Exception in thread "main" java.lang.NoClassDefFoundError: f:/Sample
    Caused by: java.lang.ClassNotFoundException: f:.Sample
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Could not find the main class: f:/Sample. Program will exit.
    Please guide me to run java file from another directory

    Thanks a lot. I appreciate your answer
    But, when i try to run the java program.. below message has been displayed, showing how to use the command with options....
    I didn't get the result of java program.
    c:\>java f:\Sample.java
    C:\>java -cp f:\Sample
    Usage: java [-options] class [args...]
    (to execute a class)
    or java [-options] -jar jarfile [args...]
    (to execute a jar file)
    where options include:
    -client to select the "client" VM
    -server to select the "server" VM
    -hotspot is a synonym for the "client" VM [deprecated]
    The default VM is client.
    -cp <class search path of directories and zip/jar files>
    -classpath <class search path of directories and zip/jar files>
    A ; separated list of directories, JAR archives,
    and ZIP archives to search for class files.
    -D<name>=<value>
    set a system property
    -verbose[:class|gc|jni]
    enable verbose output
    -version print product version and exit
    -version:<value>
    require the specified version to run
    -showversion print product version and continue
    -jre-restrict-search | -jre-no-restrict-search
    include/exclude user private JREs in the version search
    -? -help print this help message
    -X print help on non-standard options
    -ea[:<packagename>...|:<classname>]
    -enableassertions[:<packagename>...|:<classname>]
    enable assertions
    -da[:<packagename>...|:<classname>]
    -disableassertions[:<packagename>...|:<classname>]
    disable assertions
    -esa | -enablesystemassertions
    enable system assertions
    -dsa | -disablesystemassertions
    disable system assertions
    -agentlib:<libname>[=<options>]
    load native agent library <libname>, e.g. -agentlib:hprof
    see also, -agentlib:jdwp=help and -agentlib:hprof=help
    -agentpath:<pathname>[=<options>]
    load native agent library by full pathname
    -javaagent:<jarpath>[=<options>]
    load Java programming language agent, see java.lang.instrument
    -splash:<imagepath>
    show splash screen with specified image
    C:\>

  • How to run java program created in Sun Java Studio

    Hi All,
    sorry for easy question. I'm new in java.
    I have created Swing/AWT application with Sun Java Studio. I can run it using Sun Java Studio and it works properly. How to run this application in DOS-promt using "java ....."? I think, I shall define all classpathes but I dont know exactly.
    Enviroment:
    WinXP
    Sun Java Studio (C:\Sun\studio5u1_se)
    SDK (C:\Sun\j2sdk1.4.2_04)
    Application files (C:\Sun\My)
    Thanks.

    change this to yours
    set path=c:\j2sdk1.4.1_01\bin;c:\j2sdk1.4.1_01\jre\bin;%path%
    set classpath=c:\j2sdk1.4.1_01\lib;c:\jdk1.4.1_01\jre\lib;%classpath%
    go to directory where code is
    javac CLASSNAME.java
    then to run it
    java CLASSNAME
    note also look at executable jar files

  • Has anybody noticed how much RAM Java uses?

    Hi Everyone,
    I have been playing around a little with Java programs, and far out the RAM in my computer gets strained!!! I don't know how many times a Java application has completely locked down my 667MHz, 320Mb computer. My brothers 1.2GHz, 256Mb runs Java a little better, but really to play "hard ball" Java style you would need a 2.4GHz Pentium 4 with between 512 and 1024MB of RAM.
    Obviously Sun Microsystems have looked to the future with Java. They have played their cards very well by creating a programming language that is a little hard for current computer hardware to run.
    In ten years time when we are talking about computer hardware, we will have hard drives with terabytes of space sitting on our home PC, don't worry about clock speeds, there won't be any, the Quantum computer has already taken care of that (for all those novice Quantum Guru's out there - information exchange takes place in no time, that is not faster than the speed of light... the messages simply takes place in no Time.). Technology moves so fast that it is hard to keep pace, unless of course you are addicted to Reading!!
    At the moment we obviously do not have the hardware to run massive Java applications. So instead we have garbage collection. How effective is garbage collection, and what can be done to improve it?
    I have read a little about garbage collection, but it sounds quite haphazard, possibly unreliable. Obviously object orientated code takes up a lot of memory, by learning garbage collection techniques I hope to improve my coding. If anybody who reads this thread can contribute anything of personal experience related to garbage collection, it will be greatly appreciated. Code is always good, but I am also looking for peoples ideas about improving garbage collection, even if those ideas are not viable in the current version of the JDK.
    Thanks for your comments and I hope that you enjoyed reading this thread.
    David

    Hi,
    if it was meant as a joke, I enjoyed it - but if your opinion is really that of java, you have posted, I would suggest to read some of the documentations provided by Sun and you will find out, how java uses memory and you will also find out, that garbage collection is not the point, you have to worry about, because it is automatically done by the JVM. Also javac has parameters, where you can manipulate the memory usage of the JVM. So, please start reading in the case this was not just a joke :)
    greetings Marsian

  • How to run java on n900?

    therez no java function on it but i think there are software or emulator to run java if there is any way to run java plzz tell me in brief...................my another questn is dat  if nxt firmware will releaz wid d java embeded code dat supporting jar programmes?

    proutinette wrote:
    Thanks.
    This is confused and confusing probably because my english is not my language, and because i am not sure how a Java application works.
    For running JSP on my local server, it is was easy, and I did need to know how it really works. I installed Tomcat server and Java SDK.
    To run my application, i jsut need to type http://localhost:8080/myPage.jsp.
    That description is not exact.
    The server is running Tomcat with your application.
    Your browser (not the application) connects to the server (tomcat) and the server (tomcat) runs your application and returns the result to the browser.
    If i want to run the same myPage.jsp on my distant server, i would need probably to install something on my server?
    www.mywebsite.com/myPage.jsp will not work just like that of course.
    You need to install a number of things. At a minimum Tomcat and your application (the thing that runs inside Tomcat.) There is likely to be other requirements as well such as java and patches and perhaps a database server (if your application uses a database.)
    So what do i need exactly to install on my server to run a JSP?
    In fact, i am afraid if i install Tomcat on my server, the other applications will not work.What "other" applications?
    Is Tomcat already installed on the server? Is there already other applications running on that server? Then yes you must install your application into Tomcat (not the server) such that it will not stop the other applications (in Tomcat) from running.

Maybe you are looking for

  • Black and white images in iPhoto.

    Hello all, As my old Photoshop no longer works in Leopard, I wanted to use iPhoto to view a collection of jpg format BW images made from hires scans of the negatives. However, after importing them from an iMac file, I saw only black spaces instead of

  • IPhoto 5 to 6 -- date folders versus roll folders

    I had to back up my machine and reinstall everything this spring. I also upgraded my iPhoto from 5 to 6. I want to go back and collect my photos on my backup disk (which are all categorized by month/day folders as was the nature of 5.0) and put them

  • Image Matte Keys' still images not being memorized

    I have a video of the issue. Video is 4 min. Hello, I am working on an experimental video project using a lot of image matte keys. Premiere CS5 has trouble memorizing the still images in the image matte keys. The keys fail to associate with the corre

  • OIM: Disable User and Move to New OU

    Hey guys, I'm trying to figure out how to add an additional event when I disable a user. I want to be able to do as the title says. When I disable a user through OIM, move them to a specific OU within Active Directory. Has anyone done this before? TI

  • How to get system temp dir. path on the fly ,system may be XP or Linux ??

    How to get system temp dir. path on the fly ,system may be XP or Linux ?? please suggest solution