Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Help: ClasspathVariableInitializer: What is the IPath syntax of a user's jar embedded in a plugin's
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 UserFriend
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
Previous Topic:Drag and Drop to Properties View
Next Topic:object contribution menus
Goto Forum:
  


Current Time: Thu May 29 02:16:15 EDT 2025

Powered by FUDForum. Page generated in 0.03969 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top