#82 [linux] deleting files dowsn't work

0.7.0
open
sky_HALud
OS Specific (9)
6
2012-10-29
2006-03-07
Achim Weßling
No

I try to use jcommander 0.7.0 on Ubuntu, but deleting
files isn't possible!

Yes, I've the rights to delete the files!

This are the errors displayed in the shell when running
jcommander:

achim@lni90213:~/Programme/jcommander-0.7.0$ ./jcmd
log4j:ERROR Could not open
[plugins/org.jcommander.ui.logger_0.7.0/log4j.xml].
java.io.FileNotFoundException:
plugins/org.jcommander.ui.logger_0.7.0/log4j.xml (No
such file or directory)
at java.io.FileInputStream.open(Native Method)
at
java.io.FileInputStream.<init>(FileInputStream.java:106)
at
java.io.FileInputStream.<init>(FileInputStream.java:66)
at
org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:583)
at
org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:694)
at
org.jcommander.ui.logger.LoggerPlugin.start(LoggerPlugin.java:37)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:994)
at
java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:988)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:969)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:313)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:264)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:116)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:337)
at
org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackage.java:37)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:386)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:350)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:78)
at
java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at
org.jcommander.ui.app.PlatformRunnable.run(PlatformRunnable.java:32)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
at
org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at
org.eclipse.core.launcher.Main.run(Main.java:973)
at
org.eclipse.core.launcher.Main.main(Main.java:948)
log4j:WARN No appenders could be found for logger (root).
log4j:WARN Please initialize the log4j system properly.
Unhandled Exception
Reason:
Unable to execute early startup code for an extension
Bad extension specification
Reason:
startup class must implement org.eclipse.ui.IStartup
Unhandled event loop exception
Reason:
0
java.lang.UnsupportedOperationException: Your platform
doesn't support this method
at
org.jdesktop.jdic.fileutil.UnixNativeFileUtil.recycle(Unknown
Source) at
org.jdesktop.jdic.fileutil.FileUtil.recycle(Unknown Source)
at
org.jcommander.vfsextensions.VfsManagerExtension.delete(VfsManagerExtension.java:110)
at
org.jcommander.vfsextensions.VfsManagerExtension.delete(VfsManagerExtension.java:137)
at
org.jcommander.ui.filepanel.performers.FileDeletePerformer.performDeletion(FileDeletePerformer.java:195)
at
org.jcommander.ui.filepanel.performers.FileDeletePerformer.doDelete(FileDeletePerformer.java:125)
at
org.jcommander.ui.filepanel.performers.FileDeletePerformer$1.run(FileDeletePerformer.java:76)
at java.lang.Thread.run(Thread.java:595)

Discussion

  • sky_HALud
    sky_HALud
    2006-03-07

    Logged In: YES
    user_id=940779

    Thanks for reporting this. It seems that the JDIC FileUtil
    package does not have an implementation for the recycle()
    native method under Linux.

    We should be able to detect when "move to trash" operation
    is not available on a certain platform.

    Is the normal delete functionality (with the "move to trash"
    checkbox unchecked) working?

     
  • Achim Weßling
    Achim Weßling
    2006-03-07

    Logged In: YES
    user_id=547026

    Both delete functions don't work.

     
  • sky_HALud
    sky_HALud
    2006-03-07

    Logged In: YES
    user_id=940779

    I understand. I will try to reproduce this on an Ubuntu
    Linux installation and provide a fix for it.

    Please let us know any other usability issues or feature
    requests that would make your file management experience
    better with JCommander under Linux.