How do I run java?

I'm fed up with not being able to use java from home so I'm currently trying to get it working for the command prompt.
java -version works just fine (1.5.0_06 btw).
However when it comes to javac I get - 'javac' is not recognised as an internal or external command, operable program or batch file.
I've heard this is something to do with the path not being set right however how on earth do I go about correcting this path?
I have searched the forum and found similar questions however they always seem to fizzle out before giving me a answer of just what to do.
What would I have to edit and what to?
I don't want to just go in and change anything in case I edit something important....

This site has quite horrendous documentation which
even makes the creation of hello world programs sound
complicated.That is simply not true, and although understandable, venting your frustration this way is not going to help you.
That update jdk seems to have installed where the
netbeans one wouldn't.
Still trying to figure out how to set this path now.
http://img66.imageshack.us/img66/8906/jav4rc.png
is as far as I can seem to get.
Am I pointing at the right thing? Just what am I
doing wrong?I could not access the link you posted (request timed out) so I don't really know anything more.
Assuming you downloaded the JDK, locate it on your hard disk. Find javac.exe. Now that you have the path to this exe, you have to tell Windows how to find it from the directory you want to use it from (again this is NOT a Java specific issue).
If you are going for setting the PATH environment variable, google will bury you under sites explaining how to. Also typing set /? shows you how to use this command (and actually a lot more you do not need to know).
//in DOS console:
set PATH //shows you the current value of this variable
set PATH= [FOLDER WHERE JAVAC.EXE IS];%path% //prepends the right folder to the existing value
set PATH //verify that the javac folder is now in thereThis will prepends the right folder to the existing values on the path.
Good luck & calmly read the documentation and try things step by step. You'll get there.

Similar Messages

  • How can i run java application at system startup just liks as services

    How we can run java application at the time of system
    starts up just like as services.

    Hi,
    At first you have to create an exe of the class file.
    for that go to the site www.duckware.com/java2exe.html
    Click on the j2exe23c.exe(75k) download it and install in ur system. convert the class file to windows exe.
    The put the exe in the startup folder in windows.
    If ur not able to find that folder search for it and put that exe in that folder.

  • How do i run java application on IIS

    Hi,
    Can I run java application on IIS(Internet information Server)?
    If yes, How do i do that?
    My java application contains JSP,Servlets and EJB.
    To run java application on IIS which plug in should i use.
    Can anybody help me This is urgent...........
    Thanx

    You can try using Macromedia JRUN version 4. Any of the version will have an ISAPI filter which you can add to the IIS site of your JSP/Servlet.
    The JRUN ISAPI filter will establish connection to the JRUN proxy listener on a port. This port is called proxy listener port. Basically once you install the ISAPI, it will have config file called jrun.ini
    Check for the ProxyPort entry in jrun.ini (or something like this - sorry, I can't remember the exact entry). It should match to the proxy listener port where of the server where your JSP/Servlet is intalled.
    Good luck !

  • How do I run java application on IIS server

    Hi,
    Can I run java application on IIS(Internet information Server)?
    If yes, How do i do that?
    My java application contains JSP,Servlets and EJB.
    To run java application on IIS which plug in should i use.
    Can anybody help me This is urgent...........
    Thanx

    Hi
    Check this article on JGuru. It explains how to use Tomcat together with IIS.
    http://www.jguru.com/faq/view.jsp?EID=776546
    If you also need to use EJB's you probably also want to have a JBoss installed - check www.jboss.org
    /Peter

  • How do i run java application in IIS

    Hi,
    Can I run java application on IIS(Internet information Server)?
    If yes, How do i do that?
    My java application contains JSP,Servlets and EJB.
    To run java application on IIS which plug in should i use.
    Can anybody help me This is urgent...........
    Thanx

    Can i use EJB components in it?Yes, you can use EJB components. IIS uses Tomcat as a plugin and Tomcats feeds IIS with HTML code. Tomcat performes all the JAVA work including EJB. This links shows you how to install it:
    http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-iis-howto.html
    Shoud be the same for version 4.1

  • How can i run java file by double click like Visual basic

    i have to run java file by giving a command on DOS promtp.But in Visual basic i easily make a .exe file to run my program. Does java provide this thing?
    please help me.

    If you have intaled a JRE in your computer, at leasrt in windows, the .jar files are asociated with the VM, so a double click on them will execute the, thats how things work on my computer, with jdk 1.4 installed.
    Abraham.

  • HT1338 how can i run java on a Mac OS version 10.6.8?

    My company runs it's email and agent portal through Java, wen I wen through the Java web page to download the software
    it sends me to apple support, does anybody have an idea of how to run java on a Mac book Mac OS v10.6.8?
    help me please my job is depending on this.

    Since August 2012 updates for Java (and especially Java Runtime Environment, which is what you actually need) must now be downloaded direct from Oracle:
    http://www.oracle.com/technetwork/java/javase/downloads/jre7-downloads-1637588.h tml
    Further information here:
    http://www.oracle.com/us/corporate/press/1735645
    and their FAQ’s:
    http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/mac-faq.html
    However, if you need the Jave 6 JRE and plug-in, MadMAC0 has posted at
    https://discussions.apple.com/message/20107182?ac_cid=tw123456#20107182
    Apple has also posted (Oct 22/12) the approved solution for restoring the Java 6 plug-in:
    Java for OS X 2012-006: How to re-enable the Apple-provided Java SE 6 applet plug-in and Web Start functionality.

  • How i can run java bean

    i want to run java bean at bean area. i write a simple bean and what i will write on oracle forms builder bean area property palette implementation class. i make bean a jar file and i put it same folder with form file.
    thanks for your helps

    Hello,
    I did not see any error mentioned in your initial post...
    So, what is the error ?
    If the jar file is not in your registry, you could have the design time error (bean not found), but is the bean runs ok at runtime ?
    Francois

  • How can i run Java class form  other java application.

    Hi ,
    I have problem to run java class from my java application,
    I am using the class ClassLoader in order to launched the Java class , it�s work fine whenever, the class exist in the same folder , however , when i am trying to run class that is not in the current folder ,
    i got error (see below),
    Do you have any idea what is wrong?
    java.lang.ClassNotFoundException
         at SimpleClassLoader.loadClass(SimpleClassLoader.java:110)
         at SimpleClassLoader.loadClass(SimpleClassLoader.java:53)
         at Run.main(Run.java:31)

    What does "run an class" mean? You don't run classes. They're not executables.
    I bet your problem is the classpath. You are aware that the classloader looks only there? Unless it's an UrlClassLoader.

  • How can I run java in Window XP?

    Hi, all;
    Since MS didn't support JVM in window XP, do anyone have any idea to run java in Window XP? Thanks for helps.

    Hi, all;
    Since MS didn't support JVM in window XP, do
    , do anyone have any idea to run java in Window XP?
    Thanks for helps.The MS version of Java was not up to date, and for most purposes (like using in Java 2 technology) you have had to download a Sun or IBM JVM anyway. The fact that Microsoft doesn't have a JVM is fine with me save the lack of a JVM in IE 6.x.
    Chuck

  • Set CLASSPATH does not work, how do I run java.exe?

    Hi guys,
    I have a problem running the java.exe and I'm using Win XP. Here is my problem:
    Under the command prompt, I set the path: path = C:\Program Files\Java 2\j2sdk1.4.2_05\bin
    Then I created a folder in E:\Hello. I save my Hello.java in that folder, and I compiled it:
    javac Hello.java
    Now, there is a Hello.class created in that folder.
    Then I try to run it: java Hello
    but I got an error: "Exception in thread "main" java.lang.NoClassDefFoundError: Hello"
    So, I try to set CLASSPATH, however, the problem remains, no matter how hard I try.
    Any ideas?

    None of the suggestion worked, I wonder why???
    Here is my location for the JDK:
    C:\Program Files\Java 2\j2sdk1.4.2_05\bin
    Here is my location for my Java project file:
    E:\JavaProject\Hello
    Here is the file name:
    Hello.java
    Here is the command prompt:
    C:\Documents and Settings\Alex Ngai> e:
    E:\> cd JavaProject
    E:\JavaProject> cd Hello
    E:\JavaProject\Hello> path = C:\Program Files\Java
    2\j2sdk1.4.2_05\bin
    E:\JavaProject\Hello> javac Hello.java
    E:\JavaProject\Hello> java Hello
    Exception in thread "main"
    java.lang.NoClassDefFoundError: Hello
    E:\JavaProject\Hello> java -cp Hello
    // Does not work, it lists all of the options for java
    E:\JavaProject\Hello> set CLASSPATH =
    E:\JavaProject\Hello
    CLASSPATH="C:\Program
    Files\Java\j2re1.4.2_04\lib\ext\QTJava.zip"
    E:\JavaProject\Hello> java Hello
    Exception in thread "main"
    java.lang.NoClassDefFoundError: Hello
    // I have tried a lot more, none of them won't work!!
    Now what should I try in the following command prompt?
    E:\JavaProject\Hello>Given the above there is only one possible explaination.
    You have a file named "Hello.java".
    In that file you have a non-public class which is NOT named "Hello". Instead it is named something like "HelloWorld" or even "hello" (case matters.)

  • How can i run java windows(class) app. from studio creator

    Hi experts,
    I want to run windows application(which write with java and compile javac, i have got *.class) from studio creator.
    For example;
    import java.awt.*;
    import java.awt.event.*;
    public class IlkPencere implements WindowListener,ActionListener
    public Frame p1;
    public Button btnIkinciPencere;
    public Button btnKapat;
    public int X;
    public int Y;
    public void PencereAyarla(String baslik,int genislik,int yukseklik,int konumX, int konumY,Color
    arkaPlanrengi)
    X=konumX;
    Y=konumY;
    p1=new Frame(baslik);
    p1.setLocation(konumX,konumY);
    p1.setBackground(arkaPlanrengi);
    p1.setSize(genislik,yukseklik);
    p1.setLayout(new FlowLayout());
    p1.addWindowListener(this);
    btnIkinciPencere= new Button("Ikinci Pencere");
    btnKapat=new Button("Kapat");
    p1.add(btnIkinciPencere);
    p1.add(btnKapat);
    btnKapat.addActionListener(this);
    btnIkinciPencere.addActionListener(this);
    p1.setVisible(true);
    public static void main(String args[])
    IlkPencere p=new IlkPencere();
    p.PencereAyarla("ANA PENCERE",250,100,0,0,Color.white);
    public void actionPerformed(ActionEvent e)
    if(e.getSource()==btnKapat)
    p1.setVisible(false);
    else if(e.getSource()==btnIkinciPencere)
    IlkPencere p=new IlkPencere();
    X=X+50;
    Y=Y+50;
    p.PencereAyarla("ANA PENCERE",100,100,X,Y,Color.red);
    public void windowClosing(WindowEvent e)
    System.exit(0);
    public void windowOpened(WindowEvent e)
    public void windowClosed(WindowEvent e)
    public void windowIconified(WindowEvent e)
    public void windowDeiconified(WindowEvent e)
    public void windowActivated(WindowEvent e)
    public void windowDeactivated(WindowEvent e)
    I am using java server. I want this ; Any client can run my project(create with studio creator) with explorer after click any button after this class run application windows(but this windows application must run on server)
    I don't want to install any program in client PC. Client PC which have got only explorer, may be use this application.
    Thanks,

    or can i hidden explorer tools and address bar. User must use only my application menu.
    How can i solve it.

  • How do I run java app when user calls a number?

    Hi all
    Is it possible to run a java app everytime a user calls a number? It has to run before the call is placed. The app will do its job and then place the call using PlatformRequest().
    Thanks
    hsogra

    Hi,
    I believe in general this is not possible.
    J2ME was designed in such a way that J2ME apps don't have permission to interrupt the normal functions of the phone (making/receiving calls, sending/receiving SMS).

  • How can i run java on the i mac to start the voice chat?

    i have imac
    and i have downloaded java
    i want to open voice chat websites
    e.g. www.63oon.com

    Hello,
    Not sure, but could it be this?
    Java for OS X 2012-006: How to re-enable the Apple-provided Java SE 6 applet plug-in and Web Start functionality
    http://support.apple.com/kb/HT5559

  • How do I run a Java Application on Pocket PC 2003 (iPAQ 2210)

    I am writing an application for the iPAQ 2210. It will need to commuunicate over GPRS sending POST requests to a server (I think I will be using the Java.net package) the user interface will be very simple (a few buttons and text boxes) and will capture the data entered and send it back to the server (via the POST HTTP request) and read the response from the POST.
    I believe I need to use the Personal Profile version of J2ME and I am only using the classes that it says are supported. How do I run the App on the Pocket PC. Having spoken to HP they have said I shouldn't need a virtual machine and that pocket pc 2003 has one built in! Is this so or should I get myself the Jeode Virtual machine?
    Is the Jeode machine the best one?
    Sorry to ask so many questions in one go, I'm a little lost at the moment!!
    Jon

    Hello Jon,
    I will suggest you using IBM WSDD. Although it uses its own version of JVM(J9), but it suits to your needs well.
    I think you should base your project on foundation profile(as you need some gui as well as java.net).
    regards
    -fatbrain73

Maybe you are looking for