java.lang.NoClassDefFoundError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Produces Internal error during Initializing Java Tooling during startup after switching from Mule 1.3 to Mule 1.4 distribution. From Eclipse 3.2 log: !ENTRY org.eclipse.core.jobs 4 2 2007-11-07 12:38:29.171 !MESSAGE An internal error occurred during: "Initializing Java Tooling". !STACK 0 java.lang.NoClassDefFoundError: org/mule/ide/core/distribution/MuleFullDistribution$2 at org.mule.ide.core.distribution.MuleFullDistribution.findCoreJarPath(MuleFullDistribution.java:231) at org.mule.ide.core.distribution.AbstractMuleDistribution.initialize(AbstractMuleDistribution.java:37) at org.mule.ide.core.distribution.MuleDistributionFactory.createMuleDistribution(MuleDistributionFactory.java:39) at org.mule.ide.core.distribution.MuleDistributionClasspathInitializer.initialize(MuleDistributionClasspathInitializer.java:68) at org.eclipse.jdt.internal.core.JavaModelManager.initializeContainer(JavaModelManager.java:1900) at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathContainer(JavaModelManager.java:1267) at org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore.java:1470) at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:2169) at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:2073) at org.eclipse.jdt.internal.core.search.JavaSearchScope.add(JavaSearchScope.java:107) at org.eclipse.jdt.internal.core.search.JavaWorkspaceScope.initialize(JavaWorkspaceScope.java:84) at org.eclipse.jdt.internal.core.search.JavaSearchScope.<init>(JavaSearchScope.java:61) at org.eclipse.jdt.internal.core.search.JavaSearchScope.<init>(JavaSearchScope.java:57) at org.eclipse.jdt.internal.core.search.JavaWorkspaceScope.<init>(JavaWorkspaceScope.java:29) at org.eclipse.jdt.internal.core.JavaModelManager.getWorkspaceScope(JavaModelManager.java:1705) at org.eclipse.jdt.internal.core.search.BasicSearchEngine.createWorkspaceScope(BasicSearchEngine.java:155) at org.eclipse.jdt.core.search.SearchEngine.createWorkspaceScope(SearchEngine.java:397) at org.eclipse.jdt.core.JavaCore.initializeAfterLoad(JavaCore.java:2855) at org.eclipse.jdt.internal.ui.InitializeAfterLoadJob$RealJob.run(InitializeAfterLoadJob.java:35) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58) -------------------------- The following preserves current behaviour for 1.3 and changes it in accordance with 1.4 distribution structure for other releases. May be also changed to "if (1.4) then new else old" to support 1.3- but dissuport 1.4+ (if any) releases. public File getSourcePath() { if (getVersion().startsWith("1.3")) { if (getName().equals(CORE_BUNDLE_NAME)) { return new File(getLocation(), "src/core/target/mule-core-" + getVersion() + "-sources.jar"); } else if (getName().startsWith(MODULE_PREFIX)) { String moduleName = getName().substring( MODULE_PREFIX.length()); return new File(getLocation(), "src/modules/" + moduleName + "/target/mule-" + getName() + "-" + getVersion() + "-sources.jar"); } else if (getName().startsWith(TRANSPORT_PREFIX)) { String transportName = getName().substring( TRANSPORT_PREFIX.length()); return new File(getLocation(), "src/transports/" + transportName + "/target/mule-" + getName() + "-" + getVersion() + "-sources.jar"); } } else { if (getName().startsWith(MODULE_PREFIX) || getName().startsWith(TRANSPORT_PREFIX) || getName().equals(CORE_BUNDLE_NAME)) return new File(getLocation(), "src/mule-" + getVersion() + "-src.zip"); else return new File(getLocation() , "src"); } return null; }
    via by Dmitry Seminikhin,
  • Produces Internal error during Initializing Java Tooling during startup after switching from Mule 1.3 to Mule 1.4 distribution. From Eclipse 3.2 log: !ENTRY org.eclipse.core.jobs 4 2 2007-11-07 12:38:29.171 !MESSAGE An internal error occurred during: "Initializing Java Tooling". !STACK 0 java.lang.NoClassDefFoundError: org/mule/ide/core/distribution/MuleFullDistribution$2 at org.mule.ide.core.distribution.MuleFullDistribution.findCoreJarPath(MuleFullDistribution.java:231) at org.mule.ide.core.distribution.AbstractMuleDistribution.initialize(AbstractMuleDistribution.java:37) at org.mule.ide.core.distribution.MuleDistributionFactory.createMuleDistribution(MuleDistributionFactory.java:39) at org.mule.ide.core.distribution.MuleDistributionClasspathInitializer.initialize(MuleDistributionClasspathInitializer.java:68) at org.eclipse.jdt.internal.core.JavaModelManager.initializeContainer(JavaModelManager.java:1900) at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathContainer(JavaModelManager.java:1267) at org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore.java:1470) at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:2169) at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:2073) at org.eclipse.jdt.internal.core.search.JavaSearchScope.add(JavaSearchScope.java:107) at org.eclipse.jdt.internal.core.search.JavaWorkspaceScope.initialize(JavaWorkspaceScope.java:84) at org.eclipse.jdt.internal.core.search.JavaSearchScope.<init>(JavaSearchScope.java:61) at org.eclipse.jdt.internal.core.search.JavaSearchScope.<init>(JavaSearchScope.java:57) at org.eclipse.jdt.internal.core.search.JavaWorkspaceScope.<init>(JavaWorkspaceScope.java:29) at org.eclipse.jdt.internal.core.JavaModelManager.getWorkspaceScope(JavaModelManager.java:1705) at org.eclipse.jdt.internal.core.search.BasicSearchEngine.createWorkspaceScope(BasicSearchEngine.java:155) at org.eclipse.jdt.core.search.SearchEngine.createWorkspaceScope(SearchEngine.java:397) at org.eclipse.jdt.core.JavaCore.initializeAfterLoad(JavaCore.java:2855) at org.eclipse.jdt.internal.ui.InitializeAfterLoadJob$RealJob.run(InitializeAfterLoadJob.java:35) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58) -------------------------- The following preserves current behaviour for 1.3 and changes it in accordance with 1.4 distribution structure for other releases. May be also changed to "if (1.4) then new else old" to support 1.3- but dissuport 1.4+ (if any) releases. public File getSourcePath() { if (getVersion().startsWith("1.3")) { if (getName().equals(CORE_BUNDLE_NAME)) { return new File(getLocation(), "src/core/target/mule-core-" + getVersion() + "-sources.jar"); } else if (getName().startsWith(MODULE_PREFIX)) { String moduleName = getName().substring( MODULE_PREFIX.length()); return new File(getLocation(), "src/modules/" + moduleName + "/target/mule-" + getName() + "-" + getVersion() + "-sources.jar"); } else if (getName().startsWith(TRANSPORT_PREFIX)) { String transportName = getName().substring( TRANSPORT_PREFIX.length()); return new File(getLocation(), "src/transports/" + transportName + "/target/mule-" + getName() + "-" + getVersion() + "-sources.jar"); } } else { if (getName().startsWith(MODULE_PREFIX) || getName().startsWith(TRANSPORT_PREFIX) || getName().equals(CORE_BUNDLE_NAME)) return new File(getLocation(), "src/mule-" + getVersion() + "-src.zip"); else return new File(getLocation() , "src"); } return null; }
    via by Dmitry Seminikhin,
    • java.lang.NoClassDefFoundError: org/mule/ide/core/distribution/MuleFullDistribution$2 at org.mule.ide.core.distribution.MuleFullDistribution.findCoreJarPath(MuleFullDistribution.java:231) at org.mule.ide.core.distribution.AbstractMuleDistribution.initialize(AbstractMuleDistribution.java:37) at org.mule.ide.core.distribution.MuleDistributionFactory.createMuleDistribution(MuleDistributionFactory.java:39) at org.mule.ide.core.distribution.MuleDistributionClasspathInitializer.initialize(MuleDistributionClasspathInitializer.java:68) at org.eclipse.jdt.internal.core.JavaModelManager.initializeContainer(JavaModelManager.java:1900) at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathContainer(JavaModelManager.java:1267) at org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore.java:1470) at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:2169) at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:2073) at org.eclipse.jdt.internal.core.search.JavaSearchScope.add(JavaSearchScope.java:107) at org.eclipse.jdt.internal.core.search.JavaWorkspaceScope.initialize(JavaWorkspaceScope.java:84) at org.eclipse.jdt.internal.core.search.JavaSearchScope.<init>(JavaSearchScope.java:61) at org.eclipse.jdt.internal.core.search.JavaSearchScope.<init>(JavaSearchScope.java:57) at org.eclipse.jdt.internal.core.search.JavaWorkspaceScope.<init>(JavaWorkspaceScope.java:29) at org.eclipse.jdt.internal.core.JavaModelManager.getWorkspaceScope(JavaModelManager.java:1705) at org.eclipse.jdt.internal.core.search.BasicSearchEngine.createWorkspaceScope(BasicSearchEngine.java:155) at org.eclipse.jdt.core.search.SearchEngine.createWorkspaceScope(SearchEngine.java:397) at org.eclipse.jdt.core.JavaCore.initializeAfterLoad(JavaCore.java:2855) at org.eclipse.jdt.internal.ui.InitializeAfterLoadJob$RealJob.run(InitializeAfterLoadJob.java:35) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
    No Bugmate found.