Help: ClasspathVariableInitializer: What is the IPath syntax of a user's jar embedded in a plugin's [message #312335] |
Wed, 07 February 2007 03:14 |
Eclipse User |
|
|
|
Originally posted by: francis.andre.easynet.fr
Hi
I need to setup a ClasspathVariable entry from a IPath value as in the following snippet
IPath installPath = Activator.getInstallPath();
JavaCore.setClasspathVariable(
NDTRTS, installPath.append(ndtrts).addFileExtension("jar"),
new NullProgressMonitor()
);
when the Activator is expanded in a directory, everything is ok but when the Activator stays as an Equinanox bundle, the
java.io.File checks a non valide syntax as for example the " file:C:\Eclipse\3.2\eclipse\plugins\com.anubex.ndt.core_1.0. 11.jar! "
getInstallPath: installURL : bundleentry://455/
getInstallPath: resolveURL : jar:file:C:\Eclipse\3.2\eclipse\plugins\com.anubex.ndt.core_ 1.0.11.jar!/
getInstallPath: file : file:C:\Eclipse\3.2\eclipse\plugins\com.anubex.ndt.core_1.0. 11.jar!
!ENTRY com.anubex.ndt.core 4 0 2007-01-23 11:58:04.239
!MESSAGE Plugin.internal_error
!STACK 0
java.io.IOException: The filename, directory name, or volume label syntax is
incorrect
at java.io.WinNTFileSystem.canonicalize0(Native Method)
at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:39 5)
at java.io.File.getCanonicalPath(File.java:531)
at com.anubex.ndt.core.Activator.getInstallPath(Activator.java: 181)
at
com.anubex.ndt.core.builder.ClasspathVariableInitializer.ini tialize(ClasspathVariableInitializer.java:27)
at
org.eclipse.jdt.core.JavaCore.getClasspathVariable(JavaCore. java:1589)
at
org.eclipse.jdt.core.JavaCore.getResolvedVariablePath(JavaCo re.java:2767)
at
org.eclipse.jdt.core.JavaCore.getResolvedClasspathEntry(Java Core.java:2673)
Any help would be appreciated
Francis ANDRE
|
|
|
Powered by
FUDForum. Page generated in 0.03969 seconds