LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-30-2003, 01:11 PM   #1
Juan Araya
LQ Newbie
 
Registered: Mar 2003
Posts: 3

Rep: Reputation: 0
Java and Linux Slackware


Hi

How can I compile and execute and Java application, for example file.java in Linux Slackware?

NOTE: file.java is an application not an applet.

Thanks in advanced,

Juan Araya
josorio1@hotmail.com
 
Old 04-30-2003, 02:11 PM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,778
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
If you already have Java installed then the command is javac file.java to compile it and java file.class to run it.

If you haven't installed java, go to java.sun.com, download the Linux install, install it and then add the java/bin directory to your PATH.
 
  


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
Problems with Java Web Start (java 1.4.2 - 1.5.0) on Slackware Egy Slackware 11 05-10-2005 06:30 AM
install java in Slackware The Chain Linux - General 5 11-13-2004 10:50 PM
Slackware 10, Where is Java? atogbe Slackware 7 08-06-2004 08:13 AM
JAVA:(jwstric2) Problems in JAVA-LINUX nedian123 Programming 1 06-28-2004 04:12 PM
Linux and Java + Java Media Framework (JMF) perry Programming 0 11-03-2003 10:08 AM


All times are GMT -5. The time now is 03:26 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration