Important alert: (current site time 7/15/2013 2:41:22 PM EDT)
 

article

Compiling .java files with right click (windows)

Email
Submitted on: 10/12/2004 9:04:55 PM
By: Alcodes  
Level: Beginner
User Rating: By 3 Users
Compatibility: Java (JDK 1.1), Java (JDK 1.2), Java (JDK 1.3), Java (JDK 1.4), Java (JDK 1.5)
Views: 7338
(About the author)
 
     This allows you to right click on any java source file and Compile it.

 
 
Terms of Agreement:   
By using this article, you agree to the following terms...   
  1. You may use this article in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this article (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this article from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the article or article's description.
				
This was done in windows by me because I became sick and tired of typing javac Foo.java, so if you too are tired of doing so and dont have something like forte, you can do the following:

1. Go to ANY folder
2. at the menu at the top of the page click:

    view then click on file types

3. search for java(manually), once you have found this, click on edit
IF YOU DONT FIND IT, click on new type, then type a description of the file (Java Source File for me), and the associated extension (java), you should also put in a mime type, but it isnt necessary

4. Below Where it says actions, there should be a button saying "New", click on that button and add the following for action: Compile
and for the application performed, look for javac.exe (C:\j2sdk141\bin\javac.exe for me) and ad a % sign after it

Woo hoo, you done, now enjoy compiling java files the lazy way ;)


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this article (in the Beginner category)?
(The article with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

10/13/2004 4:50:40 PM

Sorry, I can't follow what you said. Clear instructions might help. Thanks.

Here is my follow-up:
1) Click on My Computer and go to any folder
2) Go to View Menu? -> I am stuck here.


(If this comment was disrespectful, please report it.)

 
10/13/2004 8:18:31 PMAlcodes

I think it should eb a bit clearer now, I also added a few newline tage, I noticed I missed them before
(If this comment was disrespectful, please report it.)

 
10/13/2004 11:08:35 PMRde

It is pretty clear now Alcodes, and a good idea. I like handy things like this so 5 biggies for this simple context menu enhancement :)
(If this comment was disrespectful, please report it.)

 
10/14/2004 3:56:59 AM

Please help.

Am I blind or ignorant?
Where is download link for this jvaa rt. click compiler?

Greg
gregricemail@yahoo.com
(If this comment was disrespectful, please report it.)

 
10/14/2004 4:56:07 AMAlcodes

this is instructions on how to set up a right click in windows to compile java source code, there is no download, just follow the steps
(If this comment was disrespectful, please report it.)

 
3/4/2005 4:02:18 PM

I need a code in borland c++ & java that encrypts a text.
(If this comment was disrespectful, please report it.)

 
3/19/2006 3:31:51 AMvinoth

excellent and new
(If this comment was disrespectful, please report it.)

 
8/24/2007 2:05:13 AMAnandan

Pretty good one, It shows how rusty was I on Windows :)
(If this comment was disrespectful, please report it.)

 
11/2/2007 7:29:19 AM

hi
(If this comment was disrespectful, please report it.)

 
9/24/2008 4:30:13 PMTejas

hey it compiles and closes command prompt so how can v know if there are any errors or not?
(If this comment was disrespectful, please report it.)

 
2/27/2009 12:32:49 PMkala billa

i still can't find "file types" in view
?? please explain again
(If this comment was disrespectful, please report it.)

 
9/12/2009 1:45:13 AMMuthukumar Lakshmipathi

Great.
I would like to log the compile time errors in a files. could you please help me out doing this
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular article, please click here instead.)
 

To post feedback, first please login.