Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6049339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:33:56+00:00 2026-05-23T07:33:56+00:00

I have a really simple program where I’m trying to add a directory to

  • 0

I have a really simple program where I’m trying to add a directory to a new zip file. The code:

public class Encrypt {
    public static void main(String[] args) {
        TFile srcFile = new TFile(args[0]);
        TFile destFile = new TFile("/home/myuser/archive.zip");
        try {
            TFile.umount();
        } catch (FsSyncException e1) {
            e1.printStackTrace();
        }

        try {
            if (destFile.isArchive() || destFile.isDirectory())
                 destFile = new TFile(destFile, srcFile.getName());
            srcFile.cp_rp(destFile);
        } catch (IOException e) {
            e.printStackTrace();
        }

        try {
            TFile.umount();
        } catch (FsSyncException e) {
            e.printStackTrace();
        }
    }
}

This is pretty much the code from here.
The exception:

Jun 17, 2011 12:10:26 PM de.schlichtherle.truezip.fs.sl.FsDriverLocator$Boot <clinit>
WARNING: No provider available for class de.schlichtherle.truezip.fs.spi.FsDriverService
Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.util.ServiceConfigurationError: file (unknown file system scheme - check run time class path configuration)
        at de.schlichtherle.truezip.file.TArchiveDetector.newController(TArchiveDetector.java:341)
        at de.schlichtherle.truezip.fs.FsDefaultManager.getController(FsDefaultManager.java:75)
        at de.schlichtherle.truezip.fs.FsDefaultManager.getController(FsDefaultManager.java:65)
        at de.schlichtherle.truezip.fs.FsFailSafeManager.getController(FsFailSafeManager.java:59)
        at de.schlichtherle.truezip.file.TBIO.getInputSocket(TBIO.java:291)
        at de.schlichtherle.truezip.file.TBIO.cp0(TBIO.java:229)
        at de.schlichtherle.truezip.file.TBIO.cp_r0(TBIO.java:193)
        at de.schlichtherle.truezip.file.TBIO.cp_r0(TBIO.java:183)
        at de.schlichtherle.truezip.file.TBIO.cp_r0(TBIO.java:183)
        at de.schlichtherle.truezip.file.TBIO.cp_r0(TBIO.java:183)
        at de.schlichtherle.truezip.file.TBIO.cp_r0(TBIO.java:183)
        at de.schlichtherle.truezip.file.TBIO.cp_r0(TBIO.java:183)
        at de.schlichtherle.truezip.file.TBIO.cp_r0(TBIO.java:183)
        at de.schlichtherle.truezip.file.TBIO.cp_r0(TBIO.java:183)
        at de.schlichtherle.truezip.file.TBIO.cp_r0(TBIO.java:183)
        at de.schlichtherle.truezip.file.TBIO.cp_r0(TBIO.java:183)
        at de.schlichtherle.truezip.file.TBIO.cp_r0(TBIO.java:183)
        at de.schlichtherle.truezip.file.TBIO.cp_r0(TBIO.java:183)
        at de.schlichtherle.truezip.file.TBIO.cp_r0(TBIO.java:183)
        at de.schlichtherle.truezip.file.TBIO.cp_r0(TBIO.java:183)
        at de.schlichtherle.truezip.file.TBIO.cp_r(TBIO.java:154)
        at de.schlichtherle.truezip.file.TFile.cp_rp(TFile.java:3161)
        at Encrypt.main(Encrypt.java:38)
        ... 5 more

I’m not able to find anything related to this exception on the project page or other pages. Has anyone seen this before? I’m using TrueZip 7.1.4.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T07:33:57+00:00Added an answer on May 23, 2026 at 7:33 am

    Right, there are run time dependencies on the file system driver modules you want to access.

    E.g. if you want to access ZIP files, you need to have the JARs of the modules TrueZIP Driver ZIP (truezip-driver-zip) and TrueZIP Driver File (truezip-driver-file) on the run time class path.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a really simple WPF UserControl: <UserControl x:Class=dr.SitecoreCompare.WPF.ConnectionEntry xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml x:Name=connEntry BorderBrush=Navy BorderThickness=1
I have a really simple Java class that effectively decorates a Map with input
I have a really simple class with two methods; One that will be called
I have a simple code that looks up a text file, reads the line
I have a really simple search form with the following Label (Search) Textbox (fixed
I have a really simple ASP.NET web application and a web setup project that
This is a (hopefully) really simple question - I have been told recently that
We’ve found that the unit tests we’ve written for our C#/C++ code have really
What should i use to code Classic ASP under Linux. I have really tried
I have some really complicated legacy code I've been working on that crashes when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.