Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-07-2009, 03:23 PM
dj kourampies's Avatar
Member
 
Join Date: Jan 2009
Posts: 36
Rep Power: 0
dj kourampies is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 01-07-2009, 03:40 PM
logicbug's Avatar
Member
 
Join Date: Jan 2009
Location: The Great White North, eh?
Posts: 76
Rep Power: 0
logicbug is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 01-07-2009, 03:45 PM
dj kourampies's Avatar
Member
 
Join Date: Jan 2009
Posts: 36
Rep Power: 0
dj kourampies is on a distinguished road
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?
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 01-07-2009, 03:47 PM
logicbug's Avatar
Member
 
Join Date: Jan 2009
Location: The Great White North, eh?
Posts: 76
Rep Power: 0
logicbug is on a distinguished road
Default
you want to point to C:\Program Files\Java\jre1.6.0_07\bin directory so you have access to the java command
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 01-07-2009, 03:52 PM
Member
 
Join Date: Jan 2009
Posts: 3
Rep Power: 0
KSadeck is on a distinguished road
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
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 01-07-2009, 03:54 PM
dj kourampies's Avatar
Member
 
Join Date: Jan 2009
Posts: 36
Rep Power: 0
dj kourampies is on a distinguished road
Default
Ok i did it, thank my friend.
Bookmark Post in Technorati
Reply With Quote
  #7 (permalink)  
Old 01-07-2009, 03:55 PM
dj kourampies's Avatar
Member
 
Join Date: Jan 2009
Posts: 36
Rep Power: 0
dj kourampies is on a distinguished road
Default
i run my programs with this C:\> javac."".java
Bookmark Post in Technorati
Reply With Quote
  #8 (permalink)  
Old 01-07-2009, 03:57 PM
logicbug's Avatar
Member
 
Join Date: Jan 2009
Location: The Great White North, eh?
Posts: 76
Rep Power: 0
logicbug is on a distinguished road
Default
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
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
super newbie, running from terminal pbpersson New To Java 16 08-11-2008 05:42 AM
VT6530 Terminal Emulator 0.2.2 JavaBean Java Announcements 0 03-01-2008 10:18 PM
Problem when displays in the terminal Felissa Advanced Java 2 07-01-2007 02:14 AM


All times are GMT +2. The time now is 02:36 PM.



VBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org