Java A question about the Eclipse IDE

  • Thread starter Thread starter hagopbul
  • Start date Start date
  • Tags Tags
    Eclipse Libraries
Click For Summary
SUMMARY

The discussion centers on the challenges faced by users of the Eclipse IDE, particularly regarding missing libraries when compiling Java code. A recommended solution is to create a Maven project within Eclipse, which allows users to manage dependencies effectively. The conversation also highlights the differences between Eclipse and other IDEs like NetBeans and Visual Studio Code, noting that while Eclipse offers a robust set of features, it may require additional plugins that can transition to paid options. Users are advised to consider the Java SDK edition for development to access all necessary tools and libraries.

PREREQUISITES
  • Familiarity with Java programming language
  • Understanding of Maven for dependency management
  • Knowledge of Integrated Development Environments (IDEs)
  • Basic concepts of software development kits (SDKs) and runtime environments (JREs)
NEXT STEPS
  • Learn how to set up a Maven project in Eclipse
  • Explore the features and plugins available in NetBeans
  • Investigate the capabilities of Visual Studio Code for Java development
  • Research best practices for managing dependencies in Java projects
USEFUL FOR

Java developers, software engineers, and students learning programming methodologies who are looking to enhance their skills in using Eclipse and managing project dependencies effectively.

hagopbul
Messages
397
Reaction score
45
TL;DR
reviewing my undergraduate physics classes and having a problem with eclips
hello :

i am reviewing my undergraduate physics classes , during my free time , taking a look on CS106 from stanford programming mythology , but i dont know how to use the eclips program , for example when i write a code using that provided in the course , the libraries seems missing from eclips ? thus creating a problem when trying to compile

what is the solution to this problem

Best regards
H
 
Technology news on Phys.org
Eclipse is more of a programming tool that has integrated an intelligent editor that monitors your code and highlights errors the moment you make them. The errors highlighted depend on the programming language you're using. As an example, in Java or C/C++ you must define a variable's type as in:

Java:
int main() {
  
  int x,y,z;
  
  x=1;y=2;z=3;
  
  println(x,y,z);
  
  return 0;
}

However, in python you can simply say:

Python:
x=1; y=2; z=3

print(x,y,z)

Another example is the IDE semicolon checks.

In Java, a semicolon denotes the end of a statement. The IDE will highlight a line without a semicolon at the end. However, a semicolon is a multi-statement separator on the same line in Python.

The Eclipse IDE and others like Netbeans or IntelliJ combine the power of a syntax-highlighting editor with basic language checks, a program compiler, a program debugger, and optionally a source code management system (Github, SVN, CVS...) for code sharing and version control to dramatically speed up the application development process.

Knowing these features of the IDE is a good job skill you should foster.

It's an excellent tool to master. Personally, though, I think NetBeans is the better IDE as many essential plugins come with the initial installation. In contrast, with Eclipse, there are many choices, and often, a good plugin switches from being a free plugin to a subscription-based plugin.

There are several videos and books on how to use Eclipse:







---

Regarding the missing libraries, if this is Java, you could build your code by creating a Maven project and adding dependencies for the missing libraries. Maven is a build tool integrated into Eclipse that gets the requisite libraries from the Maven online repository.

As you get deeper into using Eclipse, you will be learning about many of these other tools and how they work. It can be pretty daunting, but hang in there. It's a great skill to have once you master it.
 
  • Informative
  • Like
Likes DaveE, harborsparrow and berkeman
One other thing is that there are two install editions for Java:
- full software development kit install, aka Java SDK edition (for developers)
- java runtime environment install, aka Java JRE edition (for people who only need to run java code)

The runtime environment is a pared-down environment that lacks some of the tools and libraries in the developer install.

The Eclipse Maven plugin can help you find missing libraries by constructing and maintaining the pom.xml file (see Wikipedia entry below).

https://en.wikipedia.org/wiki/Apache_Maven

It can do many things and initially looks overly complicated, but in software project development, you'll realize it's hard to live without it.

One caveat: Maven uses a repository of libraries uploaded by other open-source developers. Malware and crypto-mining code have been found in the repository from time to time that could compromise your work. Some developer shops use local repositories to mitigate this problem.
 
  • Informative
  • Like
Likes harborsparrow and berkeman
Another insight is that developers tend to use Microsoft's Visual Studio Code Editor over other IDEs. It has a lot more support and plugins.

https://code.visualstudio.com/

I began by using Eclipse at one company but later switched to NetBeans because it offered a GUI editor for Java applications and was the preferred editor at work, featuring many built-in plugins. It always seemed that Eclipse plugins would turn into paid options once the developer gained some traction with Eclipse's.

Now, I tend to use MS Visual Code Editor. It works well on all platforms, including Windows, MacOS, and Linux, and it handles line terminations between Windows (CRLF) and Linux (LF) even in a mixed Windows+WSL environment.
 
  • Like
Likes harborsparrow and pbuk
jedishrfu said:
Another insight is that developers tend to use Microsoft's Visual Studio Code Editor over other IDEs. It has a lot more support and plugins.
Yes, the World has moved on substantially since CS106A: Programming Methodology at Stanford used Eclipse, or Java. It now uses Python and the PyCharm IDE. PyCharm is excellent for Python, but obviously not as versatile as VS Code (which was not as mature when I believe this course moved to Python in 2019).

The version of CS106A on the Stanford Engineering Everywhere website is from 2007 - good luck getting anything from there to work in 2025!
 
  • Like
Likes harborsparrow
I tried a web search "the loss of programming ", and found an article saying that all aspects of writing, developing, and testing software programs will one day all be handled through artificial intelligence. One must wonder then, who is responsible. WHO is responsible for any problems, bugs, deficiencies, or whatever malfunctions which the programs make their users endure? Things may work wrong however the "wrong" happens. AI needs to fix the problems for the users. Any way to...

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
4
Views
5K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 0 ·
Replies
0
Views
675
  • · Replies 9 ·
Replies
9
Views
4K
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
5K