README.md

December 5, 2022 · View on GitHub

Compiling .java files with right click (windows)

Description

This allows you to right click on any java source file and Compile it.

More Info

Submitted On
ByAlcodes
LevelBeginner
User Rating5.0 (15 globes from 3 users)
CompatibilityJava (JDK 1.1), Java (JDK 1.2), Java (JDK 1.3), Java (JDK 1.4), Java (JDK 1.5)
CategoryBrowser/ System Services
WorldJava
Archive File

Source Code


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 ;)