I had JDK 1.7.0_25 and Netbeans 7.3.1 as well as Javafx + Scenebuilder 1.1 installed on Window 7 64-bit. All worked fine. Now that a newer JAVA is out, I uninstalled everything then downloaded and installed the Netbeans 7.3.1 + JDK 1.7.0_40 bundle and installed Scene builder 1.1. Supposedly, this should have JAVAFX included. I've also changed the PATH variable to point to C:\Program files\Java\jdk1.7.0_40\bin. Java projects compile fine. However, JAVAFX projects fail with the message:
java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.7.0_25\bin\java"
The java platforms all point to JDK 1.7.0_40.
Is there some other place which might still be pointing to jdk1.7.0_25?
Any help is much appreciated!
Many thanks!
It sounds a lot like you need to edit your project settings and set the project's build and run SDKs to the right location. If these are set, they'll be overriding the PATH variable.
Related
I followed the answer given here:
https://stackoverflow.com/a/27647491/5904193 to install Netbeans ide 8.2 with jdk 10.0.2 on windows 10 64 bits OS.
After installation, I found that the jdk was generally incompatible with the ide. So I finally got the latest Netbeans version 9.1 from Apache.
This works with my jdk so I decided to clean things up by uninstalling Netbeans 8.2. Attempting to uninstall directly with the uninstall executable fails with the same error as the installer. That is it requests jdk 8 or higher (I have only jdk 10 installed).
I then tried using the jar file trick by extracting the Uninstaller and executing the jar file with Java. Things happened (lots of output in the console screen and uninstall actually completed) but all the program files remain, I can still see the program in Programs and Features and I could even start the app using the desktop shortcut that was not even touched by the uninstall.
I suspect I could uninstall it normally if I installed jdk 8. But, I mean, there has to be a way to uninstall it without jdk 8 after being able to install without that jdk. Thanks.
"But, I mean, there has to be a way to uninstall it without jdk 8
after being able to install without that jdk."
There is no reason that should be true since you did not did not meet the "required software" standard for NetBeans 8.2, which states "Java SE 8 is required to install and run NetBeans IDE 8.2", nor did you follow the standard installation process.
So you "installed" NetBeans 8.2, but not successfully. Since it wasn't installed properly it's not surprising that the uninstall process is failing.
After installation, I found that the jdk was generally incompatible
with the ide.
That's because:
You didn't install NetBeans properly.
Regardless of that, NetBeans 8.2 does not support the use of any JDK > 8.
I suspect I could uninstall it normally if I installed jdk 8.
Perhaps, and unfortunately I think that is what you need to try. However, since you chose not to follow the normal NetBeans 8.2 installation process don't be too surprised if you still have problems.
This appears in netbeans IDE Installer,
what should I do here?
I had that issue when my JDK version was too far ahead of NetBeans. JDK 11 was a problem.
When I installed JDK 8.x, the NetBeans installation worked.
Also, note that the NetBeans installer requires the JRE in addition to the JDK, but doesn't mention this at first. (Again, I used JRE 8.x).
This error means, that you put invaild JDK directory. Maybe it happens becouse you are addin "\lib" at the end - try without this.
You need to find place, where JDK is installed. Try to use "where javac" or this code below:
C:> for %i in (javac.exe) do #echo. %~$PATH:i
Write this into cmd.exe, and then copy and paste this address in NetBeans (JDK for the Netbeans IDE).
The project window within Netbeans IDE is not being displayed. I tried bunch of different things, but the Project window does not open at all.
Things I already tried:
Tried with multiple version of Netbeans and JDE, currently using Netbeans IDE 8.2 on MAC.
Tried to reset windows using Reset Windows, cmd 1, open existing project,
create new project. But still the project window does not open within
Netbeans IDE.
I made a clean install on MAC with different version of Netbeans, but the issue remains in all. Any suggestion would be helpful.
Have you tried running it with java 8? If you're using java 9 or 10, you don't get a Projects window because NB 8.2 isn't compatible with them.
There's more info at How can I install Netbeans with JDK 10.
This is a known issue in Netbeans 8.2. It happened to me when I upgraded my Ubuntu from 16.04 to 18.04. The root cause is that the java version was upgraded to 11 along with the OS.
You can fix this by doing one of the following:
Change the default jdk/jre version in the OS to java 8.
Change the jdk version to 8 in Netbeans by changing its configuration (etc/netbeans.conf). The configuration name is netbeans_jdkhome
like #rocko say, (I don't have 'add comment' right yet, so answer this frame )
I encounter same problem in NB 12.0 .
DEAL) ...my action
I changed JDK1.8 → JDK 11 setting in netbeans/etc/netbeans.conf
After launch NB, then open new project.
Project tree appeared and usable again.
#netbeans_jdkhome="C:\xxx\jdk1.8.0_242"
netbeans_jdkhome="C:\xxx\jdk11.0.3_7"
Environment
win10
corretto
To see projects or files when they disappear on NetBeans, just follow the steps in the image below.
I have just installed Xamarin into my existing VS2015. I have a Win 7 64 bit machine. When I start a simple Xamarin.Forms project and try to build and deploy onto an Android emulator, it throws an error -
"The specified task executable location "C:\Program Files (x86)\Java\jdk1.7.0_71\bin\java.exe" is invalid."
In Options->Xamarin->JDK Settings = "C:\Program Files (x86)\Java\jdk1.8.0_91\"
I have uninstalled JDK 1.7 from my machine, and restarted my machine. There is no difference.
I also have a 64 bit version of JDK and my JAVA_HOME points to that, which I cannot change just for Xamarin.
Where in the world is Xamarin picking up this path from?
How to fix this issue?
I had this problem too and I solved it deleting the file sdks.cache.
You will find it in the folders OBJ (Debug or Release) and BIN (Debug or Release) of your project.
This file contains some variables configuration. This problem is because the node is targeting to wrong path (C:\Program Files (x86)\Java\jdk1.7.0_71).
Deleting the file is safe because it will be regenerated again with the next build but in this time will use your Xamarin configuration to set node with the configured path.
I hope this help you to solve your problem.
I had a similar problem when I had both versions of Java installed in my system (1.7 and 1.8). Despite Xamarin -> JDK settings pointing to 1.8 version, the error
specified task executable location "C:\Program Files (x86)\Java\jdk1.7.0_71\bin\java.exe" is invalid
was still displayed.
This issue can be resolved by following the steps below:
Uninstall Java 1.7
In Microsoft visual studio, click on the solution (in solution explorer) right click and select "Clean"
Ensure your Xamarin -> JDK settings point to Java 1.8 version
Rebuild the solution
Java installed version and Xamarin referred different version .. Please config correct Java version in the Xamarin In Options->Xamarin->JDK Settings.
Thanks
Xamarin.Android currently requires 32-bit Java JDK 7 (1.7). The latest version is 1.7 update 79.
Xamarin.Android also requires that a 32-bit Java JDK 7 (1.7) be installed. Later versions of the JDK can also be installed alongside JDK 7, if required by your machine.
I am building a desktop application using JavaFX, and have installed scene builder integrated with NetBeans. Now I am trying to install fx experience tool on my windows platform but getting some JRE problem.
All my NetBeans and Scene Builder with JDK 8 environment working fine only error with installing FX Experience Tool.
** Log File Link **
Since you didn't specify the name of the tool, I initially assumed you were referring to ScenicView.
But you are using fxetools, I was able to install and run it on Java 1.7.0_71 under Windows 8.1.
Here's what you do:
In the directory that contains fxetools, there is a jre directory that is included (1.6.0_30).
RENAME this directory from jre to jre6.
NOW, when you start fxetools, it should look to your currently installed jre, or at least, to the jre specified by JAVA_HOME. I don't know whether the application is fully functional, but at least it should run for you now as it did for me. See http://i.stack.imgur.com/HO7n8.jpg