User Name
Remember Me?
Password
Register
FAQ
Social Groups
Calendar
Search
Today's Posts
Mark Forums Read
Java Forums
»
General Java
»
New To Java
»
Terminal
LinkBack
Thread Tools
Display Modes
#
1
(
permalink
)
01-07-2009, 03:23 PM
dj kourampies
Member
Join Date: Jan 2009
Posts: 36
Rep Power:
0
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
(
permalink
)
01-07-2009, 03:40 PM
logicbug
Member
Join Date: Jan 2009
Location: The Great White North, eh?
Posts: 76
Rep Power:
0
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
(
permalink
)
01-07-2009, 03:45 PM
dj kourampies
Member
Join Date: Jan 2009
Posts: 36
Rep Power:
0
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
(
permalink
)
01-07-2009, 03:47 PM
logicbug
Member
Join Date: Jan 2009
Location: The Great White North, eh?
Posts: 76
Rep Power:
0
you want to point to C:\Program Files\Java\jre1.6.0_07\bin directory so you have access to the java command
#
5
(
permalink
)
01-07-2009, 03:52 PM
KSadeck
Member
Join Date: Jan 2009
Posts: 3
Rep Power:
0
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
(
permalink
)
01-07-2009, 03:54 PM
dj kourampies
Member
Join Date: Jan 2009
Posts: 36
Rep Power:
0
Ok i did it, thank my friend.
#
7
(
permalink
)
01-07-2009, 03:55 PM
dj kourampies
Member
Join Date: Jan 2009
Posts: 36
Rep Power:
0
i run my programs with this C:\> javac."".java
#
8
(
permalink
)
01-07-2009, 03:57 PM
logicbug
Member
Join Date: Jan 2009
Location: The Great White North, eh?
Posts: 76
Rep Power:
0
Originally Posted by
dj kourampies
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
Bookmarks
Digg
del.icio.us
StumbleUpon
Google
«
Methods - give hint
|
[SOLVED] Ending for loop with a String
»
Thread Tools
Show Printable Version
Email this Page
Display Modes
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
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
Forum Rules
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
.
Java Tips
|
Linux Archive
Contact Us
-
Java Forums
-
Sitemap
-
Top
VBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org
LinkBack
LinkBack URL
About LinkBacks
Bookmark & Share
Bookmark in Technorati