LinuxQuestions.org
Visit Jeremy's Blog.
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 08-04-2004, 09:12 PM   #1
nickhx
Member
 
Registered: Jul 2004
Posts: 35

Rep: Reputation: 15
Question A simple question:how to compile java applet in linux?


how to compile java applet in linux?
before now I just compile java applet in windows,the command is "javac.exe",but I want to
compile it in linux,what commmand should I use?I've tried "javac.exe",it says"command not found".
 
Old 08-04-2004, 09:39 PM   #2
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Rep: Reputation: 30
if you have installed java on your system
Code:
javac filename.java
wait a minute, aren't you the one who asked about the stop button not working? you were on windows?

Last edited by rgiggs; 08-04-2004 at 09:40 PM.
 
Old 08-04-2004, 10:08 PM   #3
nickhx
Member
 
Registered: Jul 2004
Posts: 35

Original Poster
Rep: Reputation: 15
yeah,I was on windows then,but I am on linux now,isn't this command compile java applications?
 
Old 08-05-2004, 01:31 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OEL
Posts: 9,165

Rep: Reputation: 243Reputation: 243Reputation: 243
javac compile a ".java" to a ".class" file, regardless of its purpose: an application, an applet, both or none ...
This is true on both windows and other platforms including linux.
 
Old 08-11-2004, 12:54 AM   #5
german
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Debian etch, Gentoo
Posts: 312

Rep: Reputation: 30
".exe" is for the most part windows specific. Executables in other operating systems generally will have no suffix. If the program "javac" is in your PATH (echo $PATH to check) then you can simple type "javac [program]" to compile it.

HTH
 
Old 08-11-2004, 03:11 AM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OEL
Posts: 9,165

Rep: Reputation: 243Reputation: 243Reputation: 243
I would better say: not having a suffix for executables used to be Unix/Unix like specific.
Most (All?) other operating systems available at the beginning of Unix were using a suffix, ususally (.exe, .com, .bin).
Nowadays, most O/S are no more needing a specific suffix for executables, with the notable exception of DOS descendance, where this archaism is still present.
 
  


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
how to run java applet in linux vijaysh Linux - Software 3 07-11-2004 06:51 AM
Simple Kernel Compile Question. murphaph Linux - Software 7 03-16-2004 02:49 PM
simple kernel compile question Zerodark Slackware 2 09-08-2003 10:23 PM
simple java question? Schizo265 Programming 2 07-15-2003 04:20 AM
Can't compile Java Swing Applet with javac chansky Programming 4 09-23-2002 04:50 PM


All times are GMT -5. The time now is 02:47 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
Open Source Consulting | Domain Registration