Matlab installation stuck on WIndows 10 Enterprise (64 bit) - java

I have installed Windows 10 Enterprise (64 bit). I have also successfully installed the Java Runtime Environment (v9.Build.83.x64).
The problem is, I cannot install any version of Matlab on the PC. I have tried to install different versions. Each one of the installations became stuck when I clicked on setup of Matlab. The installation does not run Java programs and only its icon in the taskbar is shown, but would not run. This also causes the PC to freeze and makes me run task manager and end task setup of Matlab. I did an install and uninstall java but that does not help either.
What could be wrong?

First, make sure that you right-click the Matlab installer file “setup.exe” and select "Run as administrator". If the installer auto-launches from the dvd, cancel the installation, then from the Start menu open “Computer”, then right click on the dvd icon and select “Open in new window” or “Open with file explorer”, the right click on the file “setup.exe” and select "Run as administrator".
Second, the Java Run time Environment may not be the same as full Java. To be sure, go to http://www.java.com/en/download/win10.jsp and download and install java. Windows 10’s Edge does not use java and will fight you a bit on some of the java installation sites.
Third, an old version of matlab (version 7, R14) installed for me on Windows 10, but kept crashing when I started matlab, creating a long dialog with java error references. There are two ways to fix this.
A) As shown in the site:
http://www.vidnis.com/2013/03/how-to-use-matlab-7-in-windows-8-and.html
1) Go to the folder \sys\java\jre\win32. You will find a folder with a name similar to jre1.4.2 or jre1.5.0_07.
2) Open a new window and go to the folder C:\Program Files\Java. You will find a folder named jre1.8.0_91, or a similar version which does not match the Java version in the Matlab folder opened in step #1.
3) Copy (not Move) the entire folder from the folder C:\Program Files\Java to the Matlab folder opened in step #1. You can leave the old Java folder in the Matlab folder or delete it, it doesn’t matter.
4) In the Matlab folder opened in step #1, there is also a file named jre.cfg. Open it with the Notepad text editor, then change the old java version number (such as 1.4.2) to the new Java version (such as 1.8.0_91). Save the jre.cfg file and quit Notepad.
5) Now launch MATLAB, hopefully it works.
B) I also got matlab to run by right-clicking on the matlab.exe icon (or a shortcut icon) in directory MATLAB7\bin\win32, select “Properties”, select the tab “Compatibility”, then under “Compatibility Mode” click the checkbox “Run this program in compatibility mode for” and select “Windows Vista (Service Pack 2)” or any Vista. None of the other options of Widows compatibility worked for me.
Good luck.

Related

Getting error "Unsupported class file major version 61" trying to start Mule 4.4 in Windows

When double-clicking on mule.bat I get the following error message.
Error message:
Caught: BUG! exception in phase 'semantic analysis' in source unit 'C:\NihaMule\mule-ee-distribution-standalone-4.4.0\mule-enterprise-standalone-4.4.0\bin\additional.groovy' Unsupported class file major version 61
Class file Major version - 61 , that means your system have JDK 17 ( latest Java version).
Kindly install JDK 11 to be compatible with Mule
Update the JAVA_HOME windows environment variable
Update the PATH windows environment variable.
Run mule.bat
You seem to be using an incompatible Java version to start Mule. Either use a compatible Java version and set it first in Windows PATH environment variable, or alternatively configure the full path of the Java executable in the configuration file wrapper.conf (example: wrapper.java.command=<Java Home>/bin/java).
Note that compatible Java versions for Mule 4.4 are JDK 8 or JDK 11 only. Any other Java/OpenJDK versions are not supported.
As a developer in need of several Java jdk's (or at least the latest LTS), I need a different approach. Firstly, you need to know that Anystudio only works with jdk8 (pre-installed), or jdk11 (configurable). You can forget about the rest. Secondly, being a derivative from Eclipse, your JAVA_HOME needs to point towards the correct jdk or you'll get the afformentioned error where the 61 means the user had jdk17 configured.
STEPS TO CONFIGURE JDK 11 (for Anypoint v7.14.0)
right click on your project
go to "Run As" and select "Mule Application (configure). A new window opens.
In that window you'll see multiple tabs. Select "JRE"
Choose "Alternate JRE" and click on the "Installed JRE's" button. A new window opens
In that window you'll see an "Add..." button. Select "Standard VM", click "Next >"
Choose your jdk directory. Click "Finish" and select your jdk from the dropdown.
Alternatively:
locate your AnypointStudio.ini file and configure your -vm option described here, or in code:
-vm
C:\Program Files\Java\jdk-11.0.4\bin\javaw.exe
There are a few alternatives when configuring the Anystudio.ini file, so if the change above doesn't work, search the Mule forums for the latest info on Configure studio to use your own jdk.
Go to your configuration and choose "Execution environment" instead of Alternate JRE. Though make sure that it points to CDC-1.0/Foundation-1.0 (your_jdk_version)
This should work when your JAVA_HOME points to the correct jdk. If, like me, you need to switch to other versions, it can be bothersome to constantly change it manually. For this, I created .bat-files which I execute before starting up Anystudio. Make sure that your computer's path references JAVA_HOME instead of a hardcoded path. Otherwise the steps below won't be enough.
CREATING .BAT-FILES TO PROGRAMMATICLY CHANGE YOUR JAVA_HOME (for Windows 11)
Open notepad
type the following, keeping in mind to change the jdk to your personal path/version:
setx /M JAVA_HOME "C:\Program Files\Java\jdk-11.0.4"
Save file with your_file_name.bat as "All files"
Create a shortcut from your bat-file
Right-mouse click on the shortcut and go to "Properties". A new window opens
In the window that opened, go to "Advanced"
Select "Run as administrator", click "Ok", click "Apply"
Keep in mind, you'll need 2 of those .bat-files. One for downgrading your JAVA_HOME (execute before opening Anystudio) and one for restoring it (execute it after you're done working in Anystudio). Both system settings and commandlines don't show a changed JAVA_HOME path directly. close/reopen them to see that the changes have been applied.
Removing the the other java installations from c:\program files\java (for windows), solved for me.
I didn't have any environment variables pointing to any specific java installation what makes it odd how AnyPoint studio was using those installations.
 
I'm running on a windows 11 workstation.
Note: some posts advise to change mule runtime version to 4.2.x, but that will break some functionalities, like database connector. In my case the mule services become very unstable when some features like that were added to the project.

Netbean does not install

I am trying to start this MOOC here: http://mooc.fi/courses/2013/programming-part-1/, and it instructs me to install Netbean. I have downloaded JDK as instructed on the website, and then tried to install Netbean, but the installer would not open. What happens is the computer appears as if it is loading (blue circle on Windows 8), but never actually opens the installer.
I have an intel i5-4210Y CPU at 1.50GHz, 8gb of RAM, and 64 bit OS. I have 743mb remaining on my C drive.
Any help would be greatly appreciated.
A easy way to "Install" Netbeans if you are having issues with the installer is to use the zip.
It can easily be found here:
https://netbeans.org/downloads/zip.html
Depending on what you want to do you will select the package you want. Im guessing since you're taking an online course in java, then you are not a professional programmer, so you wont need JavaEE. I think your best bet is to download "netbeans-8.1-201510222201-javaee.zip" and extract it to a place you can find it, maybe your desktop, or Program Files if you are an admin. Your executable will be in the BIN folder after you extract netbeans. You will see netbeans.exe, netbeans (this is a linux sh file, you don't need it), and netbeans64.exe.
Depending on what system you have, run the appropriate application.
netbeans.exe for x86 windows
netbeans for linux
netbeans64.exe for x64 windows.

Why Netbeans 8.0 is not showing Source code

Okay so the source tab on Netbeans 8.0 shows up on my school computers but not my personal tablet computer. I am frustrated beyond reason because i have no idea how to get my source tabe to appear on my personal computer. Any help beyond uninstalling and reinstalling would be much appreciated as i have tried to uninstall and reinstall.
Try Ctrl-0 or from the menu "Window"/"Editor".
Another possibility is a corrupted userdir. Close NetBeans, remove your userdir, and reopen NetBeans. It will recreate the userdir, and you should have your source tab back. See below, copied from http://wiki.netbeans.org/FaqWhatIsUserdir
NetBeans 7.2 and newer
The default location of the userdir is specific to the given system.
By default on Windows and Mac OS X the userdir is inside a directory NetBeans in application settings folder (usually at C:\Users\\AppData\Roaming\ on Windows 7, and at /Users//Library/Application Support/ on Mac OS X).
On Unix-like systems the userdir is inside a (hidden) directory called .netbeans in the user's home directory. The home directory path is ${HOME}.
On Windows XP system userdir is localised to your language, so in english version it is in: c:\Documents and Settings\Your Name\Application Data\NetBeans\7.3\
As the name suggests, the userdir is unique per user. For each version of NetBeans installed, the userdir will be a unique subdirectory such as NetBeans/.
To find out your exact userdir location, go to the IDE's main menu, and choose Help > About. (Mac: NetBeans > About NetBeans).
Window / Reset Windows could be an option

I can't get Eclipse Luna to run on my mac

I have a mac running os x 10.9.4 and I downloaded the newest version of eclipse. It downloaded fine and installed but whenever I try to open it, I get an error that says, "Version 1.6.0_65 of the JVM is not suitable for this product." I downloaded and installed Java 7 and tried opening eclipse again only to get the same error. Anybody know how to fix this? Thanks
Make sure you have the JDK installed. Google will point you to the runtime engine (JRE) if you search for a Java download (probably called jre-7u67-macosx-x64). Click on "show all Java downloads" in the download page and look for a link "looking for the JDK?" on the left . As of today, the JDK can be found here and should have a name like jdk-7u67-macosx-x64 or jdk-8u20-macosx-x64. Both should be fine for a recent Eclipse Luna install.
If you want to run Eclipse Luna with Java 1.6, you can change the entry in the .ini file. Open the Eclipse application bundle by control-clicking and select "show contents". You will open a new finder window with a single folder "Contents". Open it, then open the folder "MacOS" and edit the file eclipse.ini which you will find inside. Change the line -Dosgi.requiredJavaVersion=1.7 to -Dosgi.requiredJavaVersion=1.6. Close and save, and now Eclipse will run in a minimum configuration. But you really want to install the 1.7 JDK.
For those using Mac OS X Mountain Lion (10.8)+. When you launch Eclipse for the first time, you may see the message "Eclipse can't be opened because it is from an unidentified developer."
To launch Eclipse for the first time, press the control key, click on the Eclipse icon, and select Open.

How to integrate Eclipse Portable with Java Portable?

I recently downloaded Eclipse Portable to do some Java Programming anywhere. I also downloaded Java Portable.
How can I integrate Java Portable with Eclipse Portable?
I know that on the "installed" version of these two, I need to set up the CLASSPATH, PATH and JAVA_HOME variables in order to use the Java Compiler(javac.exe)
How can I set this up on a thumb drive? How can I tell Eclipse to use my portable Java?
Please help me, and if possible please be specific and detailed procedure-wise. I am planning to deploy these applications on Windows XP/7 machines.
Any efforts to answer my question will be greatly appreciated!
The following instructions use the folder /apps as an example, but any folder should work.
Download and install Eclipse Portable to any folder. (64 bit or 32 bit)
Download and install the Portable Java Runtime Environment
For 64 bit users: Install Java Portable (64 bit) to /../CommonFiles/Java64
For 32 bit users: Install Java Portable (32 bit) to /../CommonFiles/Java
Open your Eclipse settings file ../EclipsePortable/App/Eclipse/eclipse.ini
Set the -vm as your portable Java installation. (Must be placed before -vmargs)
For 32 bit
-vm
E:/Apps/CommonFiles/Java/bin/javaw.exe
For 64 bit
-vm
E:/Apps/CommonFiles/Java64/bin/javaw.exe
Actually you should install it from within the program itself. I followed this post by berny23 and it worked perfectly (nothing else worked).
You just need the normal java runtime environment and not the
jdk:https://portableapps.com/apps/utilities/java_portable After
putting the files into the jre folder do this:
- Run Eclipse Portable
- Go to "Help" -> "Install new software"
- Select your eclipse version by clicking the small arrow next to "Add"
- search for "java" in the search bar
- Tick "Eclipse Java Development Tools" and hit finished.
- after installation click on "restart eclipse"
You need to set java compiler in eclipse from below path.
Eclipse -> Windows(one of the menu on top) -> Preferences -> Java -> Compiler

Categories

Resources