GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — exercise/Java at main · dev-SR/exercise

Expand file tree

/

Java

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

Java

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
00fundamentals
00fundamentals
 
 
02String
02String
 
 
Collections/ArrayList
Collections/ArrayList
 
 
IO Streams
IO Streams
 
 
Multithreading
Multithreading
 
 
Swing
Swing
 
 
Web
Web
 
 
functional-programming/00functional_interface_or_function_type
functional-programming/00functional_interface_or_function_type
 
 
maven-junit-starter
maven-junit-starter
 
 
README.md
README.md
 
 

README.md

Outline

Overview

  • Overview
  • Compiling and Running Java Code
    • Manual
    • Vs Code's Project Manager for Java (microsoft)
    • IntelliJ IDEA
      • Basic dir setup with template checked:
      • Basic dir setup with template un-checked:

Compiling and Running Java Code

Manual

dir setup:

├──com
│  ├──company
│     ├──Main.java
│
├──test
│  ├──A.java

Main.java

package com.company;
import test.A;
public class Main {
    public static void main(String[] args) {
 // write your code here
        A a =new A();
        a.run();
    }
}

A.java

package test;
public class A {
    public void  run(){
        System.out.println("Hello World");
    }
}

compile:

javac -d . .\com\company\Main.java

run:

java .\com\company\Main.java

Vs Code's Project Manager for Java (microsoft)

Vs code

Vs code pro name

generated files:

vs code java pro

But not compatible with IntelliJ IDEA!!

intellij problem

Making this setup compatible with IntelliJ IDEA by making a sub dir/package

intellij solve

IntelliJ IDEA

Basic dir setup with template checked:

init:

temp checked

intellij init

Run Configuration:

run config

Basic dir setup with template un-checked:

init:

temp un-checked

intellij init un

Run Configuration:

run config-2

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.