Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-03-2008, 02:48 PM   #1
LQ Newbie
Registered: Dec 2008
Posts: 1

Rep: Reputation: 0
Post How Do I Compile And Run My Java Source Files On BackTrack(Slackware)?

Guys I want to know. what do i do after typing my Coding in any txt EDITOR. example i got a java Source file ( now I want to compile it then run the class File after compiling. Thanx In advance.
Old 12-03-2008, 03:40 PM   #2
Senior Member
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
To compile a program in java just type in
javac []
this will output the application as filename.class then run the program by typeing
java [filename.class]


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to compile and run a java program in linux !!!! jmax24 Programming 7 08-06-2010 04:56 AM
cant compile java files in fedora 8.. java/ maranganesan Linux - Software 4 12-31-2007 01:21 PM
compile and run java pelegk2 Programming 3 10-05-2004 10:28 AM
Compile and run java in Linux Redhat medeluckiest Linux - Newbie 1 03-15-2004 10:03 AM
Java: Compile Large number of source files ? mikeshn Programming 7 10-07-2003 12:33 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:24 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration