Skip to content

Instantly share code, notes, and snippets.

@zixuan75
Last active February 11, 2018 02:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zixuan75/4450ace32cdc9c0afb9c5b91df3f1899 to your computer and use it in GitHub Desktop.
Save zixuan75/4450ace32cdc9c0afb9c5b91df3f1899 to your computer and use it in GitHub Desktop.

java_project - Use Eclipse/Netbeans support for Java to run our program.

Use Eclipse/Netbeans Java to run our program, but remember, title is called "Sourcejav", and following screenshot is showing this program running and output text. Please install the newest version of Java (Java 8 update 121), because the program only support for Java 8 update 121. Usage quote required (JPanel) is only support for Java 8 update 121, the Java 9 also support for code "JPanel a = new JPanel()" but Java 9 does not support for code "JPanel a = new JPanel("blah blah blah")". Actually, this code is not using in Java 9, so you do not install Java 9 in this reason, but also you can install Java 8 when you are using "JPanel a = new JPanel("blah blah blah")" on a line. Download Java 8 update 161 also you can do, but safely you just to run the Java support for the version Java 8 update 121 at the same time you do that.

Alternatively, Eclipse/Netbeans can run like "killall java" to stop your program and Eclipse/Netbeans. This command when Eclipse/Netbeans GUI does not stops working, do not run like "killall java" or "killall -9 java", but if Eclipse/Netbeans stops working, you need to run things like type "killall java" or "killall -9 java". The command "killall -9 java"/"killall java" to close all program written in Java, so do not do it in terminal when it is responding at Eclipse/Netbeans.

If you have encountered a bug, please open an issue on this project (not lincongNMR/java_project). The Java support does not use Eclipse to support Java Application, so you post them as an issue if you have an error and a problem you've encountered on zixuan75/java_project. Issue do not post as you have an question on this project, please post as an comment on a pull request "Beta folder".

We does not have an instance for installation, so we add installation and usage description. I added usage before I added installation.

Following is the usage and installation:

Installation

If you are no Java, download at here (www.java.com/download) but need install Java 8 update 121 or please type following command (On Debian/Ubuntu):

sudo apt-get install openjdk-8-jre

or:

sudo apt-get install java

-->

If you are no Eclipse/Netbeans, install within following details:

Eclipse:

Download Eclipse at www.eclipse.org or using following command:

sudo apt-get install eclipse

This command only support for Debian/Ubuntu.

Netbeans:

Download Netbeans at www.netbeans.org or using following command:

sudo apt-get install netbeans

This command only support for Debian/Ubuntu.

If you want to install all of them Eclipse and Netbeans, you also can type following command:

sudo apt-get install netbeans eclipse

This command only support for Debian/Ubuntu. They are rarely install using those command, because it is similar to download it at web site.

or:

Download on website Eclipse(www.eclipse.org) then download on Netbeans(www.netbeans.org).

Usage

Clone this program please type following command:

git clone git@github.com:zixuan75/java_project

If it dosen't work, click Clone or download button to download.

-->

In Eclipse/Netbeans, import this project. -->

See Problems list in your Eclipse/Netbeans. -->

If it has an error and problem you've encountered, please add a issue instead of edit my code written in Java. -->

Open in Project Explorer , click right of your mouse and Press Run.

Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment