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 last year.
Improve this question
I have a Maven Project which was written using Java 8. If I try to run it in Intelliji using SDK 17 everything is red and it doesn't work at all. If I use Java 8 however it works. Why doesn't it work with SDK 17? It should be compatible.
Errors in my Code
Those errors are JavaFX related, not Java in general. JavaFX has never been a standard part of Java SE.
You need to either:
Add an implementation of JavaFX to your project. Add dependencies to your project for the OpenJFX library. That code base for that implementation is housed as a subproject on the OpenJDK site, and is co-led by Gluon and Oracle.
Use a Java implementation that includes the OpenJFX library. At least two vendors offer an edition of their JDK product with OpenJFX: ZuluFX by Azul Systems, and LibericaFX by BellSoft.
Related
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 3 years ago.
Improve this question
Seems that Oracle will change the license for the new version of java (>= 1.8, april 2019). Seems that the legacy version will continue to be free, as stated by Oracle post:
What happens to the Oracle Java SE releases I downloaded under previous licenses, such as the BCL?
You may continue to use releases you have downloaded under the terms
of the license under which you downloaded them. Legacy releases are
still available in the Java Archives. Note that older versions of the
JRE and JDK are provided to help developers debug issues in older
systems. They are not updated with the latest security patches and are
not recommended for use in production. Oracle strongly recommends that
you remain on an up-to-date version of Java with the latest
performance, stability and security updates.
This means that "production customer" that are using an older version of java in production (1.6, 1.7) are not affected by this license change?
How do you see the future of Java related to this license change?
Related to your experience openJDK can replace the "official" Java distribution without touch the code (naturally using same version)? Have someone succesfully swap the distribution for this particular license change?
This means that "production customer" that are using an older version
of java in production (1.6, 1.7) are not affected by this license
change?
Correct
How do you see the future of Java related to this license change?
Many projects have already started switching to OpenJDK and most likely, this trend will continue. The discussion at Differences between Oracle JDK and OpenJDK will help you understand more about it.
Related to your experience openJDK can replace the "official" Java
distribution without touch the code (naturally using same version)?
Have someone succesfully swap the distribution for this particular
license change?
Already answered in point#2 above.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I need to run java applet in my Linux machine. So I tried the steps in java.com to install JRE. What should I do after extracting JRE .tar file.I want the java to be available in my Firefox?
You're most likely not looking for JRE, but instead to install the JVM Java install. ie. 'Java 8 update 56' (or the simplified revision download) etc. rather than JRE 8.56.#... Note: The differences in both installs is quite small, but should follow the same steps either way.
The official home of Java and respective download links.
It should be as simple as following the install requirements here. Download the RPM and as an administrator account run (replacing rpm location):
rpm -i /path/to/java.rpm
More information on installing the Java RPM
Edit: If using Ubuntu, there's a perfect answer for this over in the Ubuntu distro forum.
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 8 years ago.
Improve this question
I have looked in different places, but I am not REALLY sure as to what to use. I'll explain:
I'm self-teaching myself, with various books and tutorials. I use Eclipse with the ADT, but it seems now that Google is really pushing people to use AStudio (especially after its recent stable release). I have heard that AStudio has the following benefits:
Gradle Build
Improved Visual Editor
Improved code completion
Amongst many other benefits...
For starters, what are the benefits of AStudio put simply? (For example, what actually IS Gradle building?!)
However, for a novice like myself, would it be beneficial for me to switch to AStudio? (considering that I'm also trying to teach myself some CORE Java)
Sorry if this seems like a repetition, but I was just hoping to recieve information in terminology that I can understand...
Thanks!
Android Studio is the new IDE for developing Android apps. Google decided to change it, and so we must follow. I found an article that compares Eclipse and Studio for you: http://news.dice.com/2014/03/19/googles-android-studio-vs-eclipse-fits-needs/
You want to know what Gradle is?
Gradle can automate the building, testing, publishing, deployment and more of software packages or other types of projects such as generated static websites, generated documentation or anything else.For example, it is possible to simply add a Sonar connection, to check your code.
Also Gradle uses dependency management, which will make it a lot easier to add libraries to your projects, and sharing them with other developers.
Where Eclipse required to have a local copy of a library downloaded on your pc, gradle automates this. Add the library to your graddle file, and it will download the package for you.
Gradle will do this again when your project is transfered to another workstation. So no more cursing about libraries that were not sent to you.
Learning Java can still be done in Eclipse, or transfer to IntelliJ IDEA. AS is powered by IntelliJ, and has the same interface. IntelliJ and AS both get updates frequently, a lot more then what I saw with Eclipse.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I am having an application that runs on JVM. So, I need to build custom linux with JVM and my application that comes with installation.
Take a look at:
http://www.linuxfromscratch.org/ - let's you build your own Linux distribution. It a little overhead, IMO, since you have...
Red Hat's Kickstarter - use Red Hat, but with custom install script which will be able to install a JVM and your app automatically, during installation.
Ubuntu has preliminary support for Kickstarter as well, so you're not limited to Red Hat.
I don't think you need custom Linux Distribution for your use case. Just take one of the well-tested, supported distros out there (Red Hat, Ubuntu, Debian) and create an automate installation script. This way your app will be live right after installation, and you'll still get the benefit of having support, package manager etc.
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 7 years ago.
Improve this question
I want to download and try an Open-Source OS (Emulation) written in Java. So, I searched and download the, arguably, most famous one I found, which was NACHOS 5.0j.
I have just installed a fresh Ubuntu 10.04 LTS and installed the open-JDK 1.6 through apt-get and then installed eclipse in a similar manner.
After following the readme in NACHOS, I fired terminal, and used gmake (make), and got a bunch of errors and warnings. The one that's bothering me the most is:
as of release 1.4, 'assert' is a keyword, and may not be used as an identifier
(use -source 1.3 or lower to use 'assert' as an identifier)
Debug.assert(isReadyForApply);
Problem is, I tried downloading another open-source OS called JX, and had a similar problem.
Any help in this issue is appreciated! Any other ideas on where to start learning about operating systems and Java is even more appreciated! (But something practical.)
I think you need to add a argument -source 1.3 while compiling or running that OS
I found following information from web, basically, you should use java 1.3.1. it is open source, and you can modify the source code to make it run under JDK1.6 if you like.
The Java version of Nachos only
supports Java 1.3.1, as the security
manager and set of reserved keywords
has changed in later versions.
Instructional machines already have
1.3.1 installed. For remote users, you can download 1.3.1 here:
http://java.sun.com/j2se/1.3/download.html
. If you are curious to see what
version of java you are using you can
run the following command "java
-version". We cannot stress strongly enough that you should not use java
1.4 or java 1.5. You might run into transient errors that will not show up
as warnings or errors during compile
time.