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 10 months ago.
Improve this question
New user here. I have just recently started learning Java programming. Can someone explain in their own words what JDK and IntelliJ have to do for Java programming? I did google, but the answers were not satisfying.
from Wikipedia, Java is a high-level, class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible. JDK or Java Development Kit is a set of tools needed for developing a Java Application, like compiler, interpreter and other tools. For writing a Java program you can use any text editor and save your files with .java extension.
At older times people used to type code in basic editors like notepad.
But now things has changed. To easily understand your code there are some softwares which can format your code, highlight syntax, compile and run your project in just one click, Find your errors at the same time writing the code and many more. A software like that is called an IDE or Integrated Development Environment. There are many IDEs available now and IntelliJ is one of them. Other than IntelliJ, there are many IDes like
Eclipse
NetBeans
BlueJ
DrJava
JDeveloper
and many more
I think now your doubt is cleared.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I am new with Java and unable to execute the simplest code. Do I need an IDE for that or are there alternatives? I am on MacOS.
You don't need an IDE at the beginning at all. Just a text editor and the Java environment with the dev tools it provides. And IDE is just a convenience thing that will make you more productive and organized later on but can be really overwhelming and distracting at the beginning. Distractions eat away from your time to concentrate on learning the actual thing.
The fact that you are unable to run basic code without an IDE tells me you are not suited for an IDE.
Start with the just your command prompt/terminal (depends on your operating system).
javac MyFirstJavaProgram.java
is all you need to build your code and then run it using
java MyFirstJavaProgram
The IDE does the same thing basically but instead you have a button for this and that plus (depending on the project) it uses some arguments for the ´javacandjava` that you don't really need at the beginning.
Some popular IDE's for Java include Eclipse, IntelliJ and VS Code.
I agree with what #rbaleksandar has to say but I think that if you can focus really well on the task at hand (writing code) and IDE is worth it because it will assist you in doing that without having to worry about running code and so and so. Only follow this recommendation if you are SURE you can focus on writing code and ignoring the IDE and stop using it if you get any problems with it as it will just waste your time then. If you decide to use an IDE I recommend IntelliJ IDEA but that is up to you.
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 7 years ago.
Improve this question
I have a piece of java code I would like to run in my web browser and publish online. How can I do this without using applets? I have tried java vertx but I am not sure how to use it and there are no good tutorials online.
The short answer is you can't. Browsers don't "speak" Java natively, which is why applets required a plugin. As you probably know, Google is in the process of removing support for the plugin technology used by the Java plugin (NPAPI) and so soon Java won't work in Chrome at all (it already doesn't under Linux).
Your only real options are:
Provide a means of running it server-side, like http://ideone.com and various other "online" compilers do.
Translate it from Java to JavaScript (either manually or using a tool), which the browser can then run. But note that Java and JavaScript are not only markedly different languages despite a superficial similarity in syntax, but the standard environment for each is also quite different from the other.
How you do either of those is much too broad a question for SO.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I was looking for java plugin in Vim. Yesterday I came across Eclimd. After going through the guide to install Eclimd from http://eclim.org/ I am able to run eclimd.
For running eclimd, eclipse is required and has to run as server.
My question is, why to run eclimd over eclipse? What gains do eclimd over eclipse give?
Also, (it's been only few hours that I have used eclimd) it seems Eclipse is more friendly.
Could anyone suggest reasons for the preference of eclimd over eclipse.
Vim is much better at text editing than Eclipse, even with a Vi-emulation plugin.
Eclipse is much better at understanding your code and interacting with the Java toolchain than Vim, even with all the Java plugins you can find on vim.org.
Eclim is a way to combine the distinctive powers of Vim and Eclipse. If you don't care, by all means don't use it and keep doing what you did before.
Vi doesn't have features for auto complition or code validation afaik for any programming language. It does provide syntax highlighting capabilities , but that's all.
Eclipse provides these features to Eclimd.
Eclimd is a client to Eclipse, that's why you can't run it without eclipse.
I hope that clarified it.
BTW: Eclipse does its syntax checking by running the javac (when used for Java programming),
while vi(m) usually doesn't support direct calls to other tools in its extensions.
But if you are focused on Java Development, you should, imho, use an ide. Eclipse is a good one, there are others such as JDeveloper oder Netbeans.
That's not only because the clear structure of projects, the integration into the build process but also because due to the different stages a Java - Project usually has.
It often starts with a desigining period, where you model your application in UML.
While developing, automated functional test will usually be developed, too, they should be designed also. After that there come the integration tests. Most ides suit much better for this when a vi - plugin could.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I have just learned Java in my college. However, in that I can just write programs that are run in the command line. How can I create GUI softwares using Java, something like Notepad? I'm really sorry for asking such a basic question on this forum, but I am really interested in writing real-world software. Also, I've heard a lot about Python. How can I develop similar software using Python?
Java: Trail: Creating a GUI With JFC/Swing
Python: GUI Programming in Python
And since you mentioned creating a simple text editor, here's an example.
You can use Eclipse to develop Java GUI/desktop applications for Windows.
http://www.eclipse.org/downloads/
NetBeans is also an option.
For Python, check these links:
GUI Programming in Python
Is Python any good for GUI development?
Start by using an integrated development environment such as Eclipse or Netbeans. Both of them are free.
Both have visual editors to graphically design your program and assist you writing the actions performed in the code when you e.g. click a button or so. Personally I prefer Netbeans for this purpose as the gui designer does not need to be added as an optional plugin (maybe this is also not necessary any more for Eclipse).
Of course, to go beyond the first steps, you will need to read some documentation on how to build GUIs as suggested in other answers.
If your goal is to write native windows apps you might also consider switching to .Net (c#) which is not too hard to learn when you know programming basics in java.
.net is much better integrated in the windows environment and I think visual studio has a notepad example lying around somewhere.
Not saying you can't do this in java, sure you can.
Use netbeans, it has a old but good visual development mode. I cannot remember perfectly but it uses swing library i guess. Also it lets you develop not for only windows, but for mobile phones etc if you install the right plugin.
i think for beginners netbean is good because its interface is user friendly.
it manages the code in well define manner and make code easy to understand
You can use IntelliJ:
https://www.jetbrains.com/idea/
This is a very good Java IDE if you want to become,
going to become, or are already a developer.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I've recently learned core Java and want to develop my skills further with practice of programming. Instead of starting out with my own project, i would like to follow a well documented and organized project which would help me understand the language better.
Can anyone please suggest some open source projects to get involved in ?
look at http://java-source.net/
my personal favourite open source java project is JDownloader
I would advise you go through some of the Free / Open Source Software sites that host the projects and start filtering your searches for Java projects with a high number of users / downloads, as they tend to be fairly mature and will allow you to start looking through them.
My main recommendation is Arianne (http://arianne.sourceforge.net/). It's won several awards and is quite professional. There are only two listed developers, and they seem quite friendly. Plus, it's a multi-tier video game engine, so there's plenty of fun you could get out of working on it.
Otherwise, check-out java.net, kenai.com, and sourceforge.net for more possibilities.
If you want an early project with potential, there are plenty, but it can often be the luck of the drawer with those.
Following are good places to contribute in open source projects..
Sourceforge
IBM DEV
I also Advise you to use Android (Mobile development) . You can make business apps and Mobile Apps using Android.