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 — GitHub - juniffiro/java-ExtraLoader: Utility for URLClassLoader and Classpath.

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
src/ua/juniffiro/extra/classpath
src/ua/juniffiro/extra/classpath
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

URLExtraLoader

or Java extra classpath

URLExtraLoader is a utility that allows you to quickly and easily create a URLClassLoader or work with an existing instance. Functions:

  1. Create your own URLClassLoader with dynamic modification of Classpath on the fly and control of resources loaded into Classpath.
  2. Extension of the standard URLClassLoader with a wrapper.
  3. A utility to work on the fly. It is sufficient to pass a reference to the loader object.

Default way to work with URLClassLoader. In this way, we cannot add files to Classpath.

URLClassLoader classLoader = new URLClassLoader(new URL[]{
        new URL("file:\\test.jar")
});

URLExtraClassLoader

Extra extra = new ExtraURLClassloader(new URL[]{
        new URL("file:\\test.jar")
});

We can now add and remove files to Classpath dynamically.

extra.add(new File("test.jar"));

Example of using the URLClassLoader wrapper

Extra extra = new URLClassloaderWrapper(new URLClassLoader(new URL[0]));
extra.add(new File("test.jar"));

You can also use ClasspathUtils.
Let's create a new instance of URLClassLoader and add a test jar file to Classpath.

URLClassLoader urlClassLoader = new URLClassLoader(new URL[0]);
ClasspathUtils.addToPath(new URL("file:\\test.jar"), urlClassLoader);

Open source

URLExtraLoader is an open source project distributed under the Apache License 2.0

Getting started

  1. Download the latest build from releases
  2. Read the FAQ and examples
  3. Enjoy!

Status

The project is in beta. Use at your own risk.

About

Utility for URLClassLoader and Classpath.

Topics

java-classloaderjava-utility

Resources

Readme
Apache-2.0 license
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Contributors

Languages

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.