Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » falling at the first hurdle
falling at the first hurdle [message #1806334] Tue, 07 May 2019 20:17 Go to next message
who cares is currently offline who caresFriend
Messages: 1
Registered: May 2019
Junior Member
I am trying to do the helloworld tutorial, and there is an error as soon as I create a java project:

Errors occurred during the build.
Errors running builder 'Java Builder' on project 'HelloWorld'.
java.lang.NullPointerException


According to similar posts, I should also paste the error log:


java.lang.NullPointerException
at org.eclipse.jdt.internal.core.builder.ClasspathJrt.addRequired(ClasspathJrt.java:326)
at org.eclipse.jdt.internal.core.builder.ClasspathJrt.selectModules(ClasspathJrt.java:320)
at org.eclipse.jdt.internal.core.builder.ClasspathJrtWithReleaseOption.getModuleNames(ClasspathJrtWithReleaseOption.java:347)
at org.eclipse.jdt.internal.core.builder.NameEnvironment.collectModuleEntries(NameEnvironment.java:397)
at org.eclipse.jdt.internal.core.builder.NameEnvironment.computeClasspathLocations(NameEnvironment.java:319)
at org.eclipse.jdt.internal.core.builder.NameEnvironment.<init>(NameEnvironment.java:62)
at org.eclipse.jdt.internal.core.builder.JavaBuilder.initializeBuilder(JavaBuilder.java:629)
at org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:174)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:833)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:220)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:263)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:316)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:319)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:371)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:392)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:154)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:244)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Re: falling at the first hurdle [message #1806348 is a reply to message #1806334] Wed, 08 May 2019 04:02 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33252
Registered: July 2009
Senior Member
Which version of Eclipse did you install? Which version of Java is being used in Window -> Preferences... -> Java -> Installed JREs?

I ask because these bugs sound related:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=546338
https://bugs.eclipse.org/bugs/show_bug.cgi?id=545558

You'll see in the first bug that the developers are having trouble reproducing the problem, but that they've attempted to fix it in the current development stream of JDT (aimed for the upcoming 2019-06 release)...


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: falling at the first hurdle [message #1806751 is a reply to message #1806348] Tue, 14 May 2019 16:24 Go to previous messageGo to next message
Mark McAllister is currently offline Mark McAllisterFriend
Messages: 2
Registered: May 2019
Junior Member
I am having the same issue. I have installed JAVA JDK 12 and am running Eclipse 2019-03. Is there a way I can fix this?
Re: falling at the first hurdle [message #1806786 is a reply to message #1806751] Wed, 15 May 2019 07:23 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33252
Registered: July 2009
Senior Member
At this point, I think the only fix is to update to the unreleased 2019-06 version using this update site: http://download.eclipse.org/releases/2019-06

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: falling at the first hurdle [message #1858074 is a reply to message #1806334] Tue, 14 March 2023 19:06 Go to previous messageGo to next message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 2
Registered: March 2023
Junior Member
I am using Eclipse Version: 2022-12 (4.26.0) Build id: 20221201-1913.

All of a sudden, Eclipse started showing this error message:

'Building has encountered a problem.
Errors occurred during the build.

Errors occurred during the build.
Errors running builder 'Java Builder' on project
'proj'
Index 1 out of bounds for length 1

Is there any hope to fix this problem? Is there any way I can locate its source?

It is incredibly annoying, it pops up every time I build the project.

Re: falling at the first hurdle [message #1858081 is a reply to message #1858074] Wed, 15 March 2023 06:30 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33252
Registered: July 2009
Senior Member
If you shared a stack trace, we'd have more of a clue of where this is happening. The 2022-03 release is later today, so you could try updating in about 8 hours.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: falling at the first hurdle [message #1858090 is a reply to message #1858081] Wed, 15 March 2023 14:42 Go to previous messageGo to next message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 2
Registered: March 2023
Junior Member
There is no stack trace. I looked for one, but the only thing I can add is a line in the "Problems" section:

Internal compiler error: java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1 at org.eclipse.jdt.internal.compiler.ast.ReferenceExpression.sIsMoreSpecific(ReferenceExpression.java:1290) Reader.java /NewApp/src/project/Reader line 0 Java Problem

Re: falling at the first hurdle [message #1858092 is a reply to message #1858090] Wed, 15 March 2023 15:00 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33252
Registered: July 2009
Senior Member
Sorry, I should have suggested to use the Error Log view; click search/magnifying glass is upper right and type Error to open it. These types of failure will generally log a stack trace here. If you double click and item in that view, you can copy it and paste it.

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Transactions not working in eclipselink
Next Topic:Linux Default Plugins?
Goto Forum:
  


Current Time: Mon Nov 11 21:48:22 GMT 2024

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

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

Back to the top