This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 251100 - IllegalArgumentException: file:/home/wolf/NetBeansProjects/POSMorphAnnotator/lib/zemberek-core-0.9.0.jar/ is not a valid classpath entry; use a jar-protocol URL.
Summary: IllegalArgumentException: file:/home/wolf/NetBeansProjects/POSMorphAnnotator/...
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-11 13:11 UTC by Exceptions Reporter
Modified: 2015-08-14 09:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 216039


Attachments
stacktrace (4.83 KB, text/plain)
2015-03-11 13:11 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2015-03-11 13:11:31 UTC
This bug was originally marked as duplicate of bug 186213, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.40-b25, Java(TM) SE Runtime Environment, 1.8.0_40-b25
OS: Linux

User Comments:
GUEST: During "Adding jar library to Netbeans Java Application" jars cannot be added then I realized this error.




Stacktrace: 
java.lang.IllegalArgumentException: file:/home/wolf/NetBeansProjects/POSMorphAnnotator/lib/zemberek-core-0.9.0.jar/ is not a valid classpath entry; use a jar-protocol URL.
   at org.netbeans.modules.java.classpath.SimplePathResourceImplementation.verify(SimplePathResourceImplementation.java:104)
   at org.netbeans.modules.java.classpath.SimplePathResourceImplementation.verify(SimplePathResourceImplementation.java:68)
   at org.netbeans.modules.java.classpath.SimplePathResourceImplementation.<init>(SimplePathResourceImplementation.java:131)
   at org.netbeans.spi.java.classpath.support.ClassPathSupport.createResource(ClassPathSupport.java:77)
   at org.netbeans.spi.java.project.classpath.support.ProjectClassPathImplementation.getPath(ProjectClassPathImplementation.java:149)
   at org.netbeans.spi.java.project.classpath.support.ProjectClassPathImplementation.run(ProjectClassPathImplementation.java:126)
Comment 1 Exceptions Reporter 2015-03-11 13:11:33 UTC
Created attachment 152557 [details]
stacktrace
Comment 2 Tomas Zezula 2015-03-12 16:08:52 UTC
Seems that the jar is broken (non empty but not valid).
I will evaluate.
Comment 3 Tomas Zezula 2015-08-14 09:04:11 UTC
2 FileSystems problems:

1st) The FileUtil.urlForArchiveOrDir(f) returns wrong URL

2nd) Valid FileObject for non existent file as seen from:
java.lang.IllegalArgumentException:
File: /home/wolf/NetBeansProjects/POSMorphAnnotator/lib/zemberek-core-0.9.0.jar
Property value: lib/zemberek-core-0.9.0.jar,
Exists: false (java.io.File.exists())
FileObject: valid file
Folder: false
Size: 0
Retry: file:/home/wolf/NetBeansProjects/POSMorphAnnotator/lib/zemberek-core-0.9.0.jar/