Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during File/New/package-info.java : IllegalStateException: Missing system library (Eclipse 2025-03) #6521

Open
chrisrueger opened this issue Mar 19, 2025 · 1 comment

Comments

@chrisrueger
Copy link
Contributor

chrisrueger commented Mar 19, 2025

Problem

  • Eclipse Version: 2025-03 (4.35.0) Build id: 20250306-0812
  1. Create package-info.java in a package via UI
Image Image

The following error appears

Image
java.lang.IllegalStateException: Missing system library
	at org.eclipse.jdt.core.dom.ASTParser.checkForSystemLibrary(ASTParser.java:311)
	at org.eclipse.jdt.core.dom.ASTParser.getClasspath(ASTParser.java:269)
	at org.eclipse.jdt.core.dom.ASTParser.internalCreateASTCached(ASTParser.java:1395)
	at org.eclipse.jdt.core.dom.ASTParser.lambda$1(ASTParser.java:1274)
	at org.eclipse.jdt.internal.core.JavaModelManager.cacheZipFiles(JavaModelManager.java:5708)
	at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1274)
	at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:918)
	at org.bndtools.refactor.util.ASTEngine.<init>(ASTEngine.java:105)
	at org.bndtools.refactor.util.RefactorAssistant.lambda$new$3(RefactorAssistant.java:1037)
	at aQute.bnd.memoize.MemoizingSupplier.lambda$new$1(MemoizingSupplier.java:31)
	at aQute.bnd.memoize.MemoizingSupplier.get(MemoizingSupplier.java:51)
	at org.bndtools.refactor.util.RefactorAssistant.unit(RefactorAssistant.java:2545)
	at org.bndtools.refactor.util.RefactorAssistant.getImports(RefactorAssistant.java:1673)
	at org.bndtools.refactor.util.RefactorAssistant.init(RefactorAssistant.java:2440)
	at org.bndtools.refactor.util.RefactorAssistant.<init>(RefactorAssistant.java:1044)
	at org.bndtools.core.ui.wizards.packge.NewPackageInfoWizard.lambda$performFinish$1(NewPackageInfoWizard.java:121)
	at bndtools.utils.JobSupport$1.run(JobSupport.java:21)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

Expected Result:

  • no error
  • package-info.java created

Actual Result:

  • error
  • package-info.java created
@chrisrueger chrisrueger changed the title Error during File/New/package-info.java : IllegalStateException: Missing system library Error during File/New/package-info.java : IllegalStateException: Missing system library (Eclipse 2025-03) Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant