Netbeans - Can not install jdk 1.9.0 Build b53 - netbeans

I'm trying to install jdk 1.9.0 early release package to be used with NetBeans 8. I realized that jdk is installed without private jre (there is no jre folder inside of jdk1.9.0 folder). And Netbeans don't work . In Java Platform Manager after selecting jdk1.9 field under Class tab contains no platform classpaths.See picture below.
jre1.9.0 folder is installed only as a seperated folder.
What can I do about it so I could compile and run my programs?

There will not be jre folder in JDK 9, as it is restructured. Plus you don't really need it as JDK has all files to compile and execute code.
As internal files of JDK and format are changed too, any IDE will not work, until it is updated to Java 9 support.

NetBeans9.0 is planned to be supporting JDK9 and JPMS.
You can though get started to use Java9 modules with the Early Access build of the same.
There is a confluence wiki to keep track of the new and noteworthy features marked to be exposed with the GA release of NetBeans.

Related

MyEclipse doesnt accept JDK for creating Runtime

I am trying to create a JBoss Runtime in Eclipse. I have added 2 JRE entries in my Eclipse - one for JDK1.7 and another for 1.8.
Still Eclipse wont identify my 1.7 entry. See screenshots attached.
P.S: I got my JDK 1.7 by extracting the MSI/Exe setup file using 7 zip. I have done regular installation of Java 1.8 and My Java_Home is set to 1.8 in the PC. I don't want to modify it to point to lower version as it will impact other projects.
Your JRE definition won't be recognized as valid for the JBoss runtime if it is not a JDK. Your extraction of the JDK may have resulted in a JRE instead. Why not just run the JDK installer and change the installation folder to something other than your Program Files folder; it won't switch your system to Java 1.7 that way (I just tried this myself to check). Then define a new JRE to point to the newly installed JDK 1.7 and you'll be able to use that for the JBoss runtime.

Netbeans Installation cannot find JRE

I am trying to install Netbeans 8.2 on my Microsoft surface pro and I am using JDK 10.0.2. When I run the Netbeans installer it is unable to find the JDK. So I used the --javahome command with the correct file destination and I suppose it finds the JDK. But then it throws the same error for the JRE. I do not know why the JRE cannot be found. I have been reading many similar questions and am seeing directions saying to use JAVA_HOME and set the environment variables. I am very unfamiliar with the windows command prompt, so I would appreciate a more specific solution.
As much as I know, JDK doesn't come with JRE, so check in your Java folder if you got JRE installed, if not, try downloading it manually.
Hope that helps
Version 8.2 of NetBeans does not support JDK 10.
However, ownership of NetBeans has recently been moved from Oracle to Apache and you can use JDK 10 with NetBeans 9.0 RC1 (RC = "Release Candidate").
Just download the zip file, unzip it and then locate and run netbeans64.exe (or netbeans.exe for 32-bit) within the unzipped folder. Those steps are the same regardless of operating system.
When NetBeans starts it should automatically locate your installed JDKs, but verify that you have JDK 10 included as a Java Platform from the Tools > Java Platforms screen:
You can explicitly add JDK 10 to NetBeans if necessary:
Tools > Java Platforms
Click Add Platform and complete the wizard to add JDK 10.
Once you have JDK 10 included in Java Platforms you can create a trivial Java 10 project, although the process is not completely intuitive:
File > New Project > Java > Java Application
Accept all the default options. A new project with a name of the form JavaApplication{n} will be created.
In the Projects panel select the project's node, right click and select Properties from the popup menu.
Select Libraries from the list of Categories and set Java Platform to JDK 10.
Select Sources from the list of Categories, set Source/Binary Format to JDK 10 and click OK.
You now have a Java 10 project. To verify that, make sure that the following code compiles as your main() method:
public static void main(String[] args) {
var v = 7;
}

Can't get Eclipse Kepler CheckStyle plugin to work

I am downloading it from here: http://eclipse-cs.sourceforge.net/update/
- Checkstyle version 6.2.0.20150
My eclipse build is: 4.3.2
I have tried downloading it from both the marketplace and the website above, though both ways do not create a "checkstyle" link in the preferences window.
Anyone have any idea what's going on here?
I've also encountered the mentioned problem. But the reason is simple. In the release notes we can read:
Please note that as of this version Java 7 is the minimum runtime
environment supported. This requires you to run Eclipse on a Java 7
(or newer) JVM in order to use this plugin version.
Checkstyle since version 6.2.0 (released in January 2015) needs Java 7 as the minimum runtime environment.
So in order to run Eclipse on a Java 7, you can for example edit eclipse.ini file and add at the beginning something like:
-vm
C:\Program Files\Java\jdk1.7.0_75\bin\javaw.exe
Your exact path to javaw.exe could be different, of course. Alternatively make JDK 7 (or newer) as the default JVM for your system.

How Do I make the Install4j IDE to upgrade to Java7 instead of Java6

I have upgraded to Java7 recently.
I had my install4j Project file in Java6.
Now in the Install4j IDE, I go to Media wizard and download 1.7 JRE's and select them for Windows. (I have window 7 64 bit.)
But When I go the Installer tab in IDE , where for some of the screens I have my custom code which is compiled in Java7.
It gives an error for the IDE java version lower than the compiled version(for those class files).
The Common Location where is the JRE for 1.6 was downloaded C:\Program Files\Common Files\i4j_jres
But the JREs for 1.7 somehow are never downloaded in the common location.
How Do I make the Install4j IDE to upgrade to Java7 instead of Java6.
Thanks
Sony
We had the same problem as you, so we just swapped out install4j's built-in JRE with the one we used to compile our custom code.
i.e. - replace "C:\Program Files\install4j5\jre" with the jre you use to build your custom actions.
Under General Settings->Java version, change the minimum version to 1.7

How to specify which JRE to use in Netbeans?

I have two JRE in my system. One is 32-bit and the other one 64-bit. In Eclipse I can configure both and choose which one to use when running my application.
I'm wondering if I can do the same thing in Netbeans. I've tried to go to Project Properties, Libraries and then tried to configure a new JRE there, through Manage Platforms, but it doesn't accept the directory of my JRE. How should I proceed?
Be aware that I'm talking about JRE, and not JDK ;)
EDIT: I managed to make it work by downloading a new 32-bit JDK and selecting its directory. I still couldn't make it accept a JRE directory.
Whether or not you can run Netbeans with just the JRE depends on what bundle you have downloaded. In Netbeans 7 only C/C++ and PHP bundles can be run with the JRE.
Older versions of Netbeans include more languages under this JRE umbrella, but the principle is the same.
The JDK contains the JRE plus tools to debug and compile code, so if you're doing anything Java based apart from just running the IDE, netbeans depends on the JDK.