Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Java Project Setup with JPR supportNew to Visual Studio Code? Get it now.

Java Project Setup with JPR support

Ananda Bibek Ray

|
313 installs
| (1) | Free
Create .project and .classpath file for vscode to recognize java project. Process dependencies from Jdeveloper JPR files.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VSCode Eclipse-Like New Java Project

A VSCode extension for the Java Extension Pack. It creates .classpath and .project file, along with the src and bin directories, similar to eclipse's new java project option. Afterwards, vscode will recognise the folder/src as valid java project. This allows easier control and management of the java projects instead of relying on vscode to create invisible java projects in .vscode workspacestrage area.

Additional abilities are geared towards Fusion Middleware developers working on jdeveloper codebase. It can parse .jpr files and resolve dependencies into classpath file, along with providing handy ADE command shortcuts.

Features

  • Creates .project and .classpath files for vscode to recognise the folder as a Java Project. Classpath is picked up by the Java Extension Pack to enable inner-project class definition go-tos, docs, etc.
  • Process dependencies for JPR files and add to classpath.
  • Having MW_HOME property will allow to resolve jdeveloper libraries.

Usage

  • Press Cmd+Shift+P (Mac) or Ctrl+Shift+P (Windows) and type Create Standard Java Project and hit enter - this will set up generic java project files (.classpath and .project).
  • Right click on a .JPR file and select Process dependencies from JPR - this will add relative JAR dependencies from references projects.
  • It will ask for middleware home folder. If you have working MW_HOME, it could also resolve library dependencies of jdeveloper. If you don't have middleware home, just provide a dummy value.
  • The JPR option menu is available in
    • Explorer Tab right click context menu.
    • Editor right click.
    • Editor Title Bar right click.

Acknowledgements

  • Built on top of vscode-eclipse-new-java-project by Andrew Mellen
  • Oracle Fusion Middleware icon by Icons8

Limitations

  • Many variables in project setup are currently hardcoded like exclusion regex, source folder name, output folder name, etc. It is expected that user can manually manage those properties in the generated .project and .classpath file.
  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft