Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I've forked and imported project from Github using Eclipse. But I am getting red cross at a lot of places which is valid java code. Also the keyword highlighting features etc have gone as a part of this.
I've ran the application in tomcat (from within eclipse) and it seems to work fine. How can I avoid this? What am I doing wrong?
Edit: I am able to solve the red cross issue, answer posted below. But I still can't get the syntax highlighting for Java code to work in the JSP. I've tried solutions posted in stackoverflow like opening it with the JSP Editor, which I am doing. The project is already a webproject. What more can I do to fix this?
This is a very silly error but since I've figured it out, I'll post the answer for others who might encounter the same. The github project I cloned had using a different version of java(1.6). So I went and changed it the version in my system 1.8, and the errors have gone.
Edit: Although the errors are gone, the syntax highlighting for the java code within the jsp is still absent.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 months ago.
Improve this question
I'm pretty new to netbeans and I've ran into this problem:
When i try to open my netbeans project this shows
It also gives me A LOT of exceptions
I have no clue on how to solve this
Tysm
maybe it works.
First, go to Tools-> Choose Option->In Advanced Options->Click Option then Editing and GUI Builder, where you need to set the Layout Generation.
To ensure the Swing Layout Extension library is not part of project
you can clean build/remove project/check java is in correct path/reinstall net beans
BTW why dont you try intellij community edition
A shot in the dark since I had a similar problem once: I tried to pre-inialize a combobox with some values. Those values were supposed to come out of a (in-memory) database. The database was not available when using the NetBeans designer and therefore the designer could not construct the form and crashed.
So, check if your constructor contains code that has any dependency that works only in a certain environment.
Do NOT use "Allow Editing" if you are not knowing what you are doing / don't have a copy of your source. NetBeans will mess up your form.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I cannot create Java record class in IntelliJ, and I could not find the option to enable it.
Is there a way to enable it?
Make sure you have an updated version of the IntelliJ IDEA (2020.1 or later);
Go to the Project Structure and set your Project Language Level to Java 14 (remember, as well, to set Java 14 as your Project SDK, if not done yet).
See more here.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I'm not able to find out why does the manually importing any project even a very small app like "hello World" is not importing successfully.
I receive lots of compilation errors saying that name is not resolved.
Basically name could be anything, it could be variable, it could be package or even class name, it can't be resolved by eclipse.
But when i made explicitly that project into eclipse - it works fine? please help me out?
Try to add new system library, this is like common where we get errors.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
The last thing I remember was changing the web browser preferences in eclipse. I had changed it to WebKit from Chrome. I was trying to test a dynamic web project, and as soon as I changed the browser and ran the application,
eclipse crashed....
It generated an error log when I restarted it, which is here-
https://www.dropbox.com/s/p6g8mitc2ywcz60/hs_err_pid4856.log
If -clean works then great else change the workspace and import your project again will fix your problem
Add a -clean parameter to your shortcut, then start eclipse and then remove the -clean parameter again.
"C:\Program Files(x86)\Eclipse\eclipse.exe" -clean
This will clean your workspace and will probably fix your problem.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I was at a conference and there were one presenter who showed some Java 8 code examples in an application, and I'm looking for the name of that or a similar app.
The application compiled all code examples and showed output but the main thing was that he didnt have to write complete java code. It automatically handled imports and class definitions. He could just focus on code he wanted to show. This made it easy to quickly create examples.
Edit; A clarification, this was not a complete IDE. It appeared to be a program specifically designed for quickly writing and testing short code examples. For example, he wrote and showed a for-each loop in Java 8, without any imports or having to create a main class or any of that syntactic fluff.
Check those Integrated Development Environments:
Eclipse
IntelliJ Idea
NetBeans
To improve your presentation you can create templates which will create necessary code for you.
I found out the contact details of the presenter and asked about the program. It turns out he was using Mac with TextMate.
Eclipse provides a similiar feature with its java scrapbook pages.
You can just enter java statements and they can be run.