Results 1 to 8 of 8

Thread: Terminal

  1. #1
    Join Date
    Jan 2009
    Posts
    56
    Rep Power
    0

    Smile Terminal

    Hello to everybody.

    I m new to java and i would like to ask you if someone knows how can i run my programms in terminnal in XP, (i mean with which command) .

    thanks.

  2. #2
    logicbug's Avatar
    logicbug is offline Member
    Join Date
    Jan 2009
    Location
    The Great White North, eh?
    Posts
    76
    Rep Power
    0

    Default

    you will have to use the java command to execute your compiled java class. In order for you to do that, you will have to set your path in control panel -> system ->advanced -> environment variables to point to your installation of the JRE.

  3. #3
    Join Date
    Jan 2009
    Posts
    56
    Rep Power
    0

    Default

    i ve pointed to .;C:\Program Files\Java\jre1.6.0_07\lib\ext\QTJava.zip so i can execute programs with which command?

  4. #4
    logicbug's Avatar
    logicbug is offline Member
    Join Date
    Jan 2009
    Location
    The Great White North, eh?
    Posts
    76
    Rep Power
    0

    Default

    you want to point to C:\Program Files\Java\jre1.6.0_07\bin directory so you have access to the java command

  5. #5
    KSadeck is offline Member
    Join Date
    Jan 2009
    Posts
    3
    Rep Power
    0

    Default

    Once you've done what logicbug said, you can run your java programs with this command....

    java -jar xxxx.jar

    where xxxx.jar is the name of your jarfile

  6. #6
    Join Date
    Jan 2009
    Posts
    56
    Rep Power
    0

    Default

    Ok i did it, thank my friend.

  7. #7
    Join Date
    Jan 2009
    Posts
    56
    Rep Power
    0

    Default

    i run my programs with this C:\> javac."".java

  8. #8
    logicbug's Avatar
    logicbug is offline Member
    Join Date
    Jan 2009
    Location
    The Great White North, eh?
    Posts
    76
    Rep Power
    0

    Default

    Quote Originally Posted by dj kourampies View Post
    i run my programs with this C:\> javac."".java
    Thats not how to run a program but to compile the filename.java to filename.class which can then be run by java filename

Similar Threads

  1. super newbie, running from terminal
    By pbpersson in forum New To Java
    Replies: 16
    Last Post: 08-11-2008, 05:42 AM
  2. VT6530 Terminal Emulator 0.2.2
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 03-01-2008, 10:18 PM
  3. Problem when displays in the terminal
    By Felissa in forum Advanced Java
    Replies: 2
    Last Post: 07-01-2007, 02:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •