LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 11-21-2012, 10:36 AM   #1
graphicsmanx1
Member
 
Registered: Oct 2012
Posts: 81

Rep: Reputation: Disabled
Languages in Linux


I was curious to know how or if you can run languages within the terminal?? I wanted to run a java applet and a few programs but Im unsure how and what to look up. I typically use eclipse but I thought I saw netbeans in the software. Can you write a bash that will run a java file??? ideas or guidance please

Last edited by graphicsmanx1; 11-21-2012 at 11:07 AM.
 
Old 11-21-2012, 10:50 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,388
Blog Entries: 2

Rep: Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900
If your programming language is an interpretive language that can run as a she-bang style script, or if the language compiles to executable object code, then of course you can execute it from the commandline. After all, how did all of the applications that we routinely use get created?
Your last question isn't clear whether you are talking about Java or Javascript, which are two completely different languages. Java bytecode can be run by the Java VM from a shell commandline. Javascript tends to run as interpreted by the Javascript interpreter built into web browsers. There may by some other standalone Javascript interpreter, but I've never used one.

--- rod.
 
Old 11-21-2012, 05:48 PM   #3
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,045

Rep: Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953Reputation: 953
The #!shebang facility allows you to identify to the shell what command-processor should be invoked to run a particular command. You'll see this in most if not all of the (scripted) commands that now exist on your system.

Linux/Unix environments have "an embarrassment of riches" with regard to available (free!) command processing systems (and compiled programming languages). All of them can be used, and freely intermingled, with the user being none the wiser. (Honestly, if I may say, there is basically zero need to use "bash scripting." Why bother to use a tool that really isn't designed for programming, when you have a tremendous choice of equally-usable tools that were?)

Last edited by sundialsvcs; 11-21-2012 at 05:49 PM.
 
Old 11-21-2012, 07:57 PM   #4
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian
Posts: 2,307

Rep: Reputation: 767Reputation: 767Reputation: 767Reputation: 767Reputation: 767Reputation: 767Reputation: 767
Quote:
Originally Posted by graphicsmanx1 View Post
I was curious to know how or if you can run languages within the terminal?? I wanted to run a java applet and a few programs but Im unsure how and what to look up. I typically use eclipse but I thought I saw netbeans in the software. Can you write a bash that will run a java file??? ideas or guidance please
Are you asking how to run a Java applet from the command line? You'll want to look at appletviewer.
 
Old 11-23-2012, 08:33 AM   #5
graphicsmanx1
Member
 
Registered: Oct 2012
Posts: 81

Original Poster
Rep: Reputation: Disabled
thanks guys great knowledge and the java applet is what I needed!!
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Scripting languages Deepa Linux - Newbie 5 03-07-2011 08:53 AM
languages of linux: which languages can be choosen in suse and red-hat distributions? Klaus Schnorr Linux - Software 3 09-10-2005 02:19 AM
Changing linux languages kornboy89 Linux - Newbie 1 03-29-2004 12:11 PM
languages supported by linux? stevoman098 Linux - Newbie 4 01-24-2004 02:30 AM
Programming languages on Linux? Imek Programming 6 01-04-2004 03:07 AM


All times are GMT -5. The time now is 01:02 AM.

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