Skip to content

A collection of useful imports, snippets, libraries, and other things for using JShell

Notifications You must be signed in to change notification settings

dustinschultz/jshell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JShell Utilities Example

In this repo, you'll find several folders:

  • imports
  • libs
  • startups
  • utils

Imports

This directory contains pre-defined, commonly used imports.

You'll find as you use JShell more and more that it becomes quite painful to have to re-type a bunch of import statements when you want to use or experiment with a particular external library.

Instead, you can save all the necessary import statements into a file and then utilize the /open command to bring them in.

Libs

This directory is pretty self-explanatory and contains any and all external libraries that you might use with JShell. You can choose to organize your libraries in whatever fashion makes the most sense, whether it's all in one directory or on a per-project basis. Whatever it is, having all your external libraries organized in an easily loadable way will save you time in the end, as we saw in the Classpath Tips section.

Startups

You can utilize this directory to store any startup or initialization code. This is a feature that's directly supported by JShell with the --startup parameter.

These files are similar, in nature, to the type of files located in the imports directory but they go beyond just imports. These files are meant to contain any necessary commands, imports, snippets, methods, classes, etc needed to initailize your JShell environment.

Utils

We all know how verbose Java can be. This directory, as it's aptly named, is meant to contain any utility or "shortcut code", that will make your time spent with JShell more enjoyable. The type of files you would store here are very similiar to the special PRINTING file that comes with JShell, which defines a number of shortcut methods for printing text.

About

A collection of useful imports, snippets, libraries, and other things for using JShell

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published