LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 12-03-2008, 01:48 PM   #1
itouchlm
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 (Evento.java) now I want to compile it then run the class File after compiling. Thanx In advance.
 
Old 12-03-2008, 02:40 PM   #2
jstephens84
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
Code:
javac [filename.java]
this will output the application as filename.class then run the program by typeing
Code:
java [filename.class]
 
  


Reply


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 03:56 AM
cant compile java files in fedora 8.. java/ maranganesan Linux - Software 4 12-31-2007 12:21 PM
compile and run java pelegk2 Programming 3 10-05-2004 09:28 AM
Compile and run java in Linux Redhat medeluckiest Linux - Newbie 1 03-15-2004 09:03 AM
Java: Compile Large number of source files ? mikeshn Programming 7 10-07-2003 11:33 AM


All times are GMT -5. The time now is 05:54 AM.

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