I'm trying to run Eclipse (Neon 1) on a memory stick. In a first time, the problem was the JVM 1.6 installed on the machine which is too old. To use a compatible JVM, I created a jre directory in Eclipse's directory and placed in it a JVM 1.8 (the last one found on ORACLE's web site).
Now, when I try to run Eclipse, nothing happens. I got the splash screen with "Eclipse Neon 1" then, nothing, not even an error message.
What is the problem and what can I do ?
Important note : I can't install a JVM on the "native machine" as I'm not administrator.
Than, you for all your answers. Have a good day.
When you need programs to run off a USB, always search if a portable version exists first. This is a working portable version of Eclipse Neon but it is another version though.
Finally, I found (one of) my mistake.
I used a jre(...).exe. It's the problem. I downloaded the tar.gz file of the jre and unpacked it. Then, I used the jre of this unpacked version and everything was ok except a problem with an "access restriction" to some libraries.
I fixed that last problem with that question on StackOverFlow. And now, everything is ok !
Great ! Thank you to everyone for your help.
Related
I have thouroughly scoured the internet for anyone who has encountered the same error as me but to no success. I also checked this website for any previous threads asking a similar question and found nothing helpful.
I want to install a Java Development Kit (JDK) which I need to do in order to program a mod for Minecraft. I've downloaded: 'jdk-8u5-windows-x64' from the official Oracle website as I was instructed to by a person's tutorial. The guy said that installing the JDK is "pretty straight-forward" and that all you have to do is "download the executable and run it, and it will install everything for you".
Here's the problem/error. When I open the exe. for the JDK installer I get the following error:
https://i.stack.imgur.com/Exqxj.png
And when I go to the directory I see this:
https://i.stack.imgur.com/2sSB0.png
Notes that may be of interest:
I have previously installed and uninstalled versions of Java in the past.
I'm using this JDK for the program 'Eclipse' which I have recently re-installed.
I have no idea what I'm doing.
Thank you all very much, it's fixed now. I found a folder with a previous version of JDK that I had installed in the past and deleted that. I then navigated to the directory that it gave and deleted the configuration file it was complaining about.
Deleting the file allows it to be regenerated but the error is telling you the actual issue.
If you look at line 1 in your java.settings.cfg, you will see that it doesn't match the Oracle flags. How this happens I don't know but I noticed it installing Java 9 JDK on a new machine.
On an installation of java 8, I had the settings line 1 as "AUTOUPDATE=0"
But if you check the config guidelines.
You will see the actual pair should have 'AUTO_UPDATE not AUTOUPDATE'.
You can delete the file but you are deleting your configuration and hoping it rebuilds correctly.
I had similar issue... I went to that directory it is complaining about in your screenshot.. and I deleted that file. After that, the installer worked. The directory won't show up -- so you have to type it to navigate to it. https://i.stack.imgur.com/Exqxj.png
I'm trying to get Eclipse 4.5.2 running on Macs with OS X 10.10.5 and Oracle Java 8u73 I got to the point where trying to start Eclipse results in
The JVM shared library "$JAVA_HOME/bin../jre/lib/server/libjvm.dylib" does not contain the JNI_CreateJavaVM symbol.
Googling this returns a whole bunch of suggestions, none of which work. Some say you absolutely MUST have the JDK (I'm using the JRE). Others emphatically say the JRE is all you need. Some suggest editing an Info.plist or another, with people responding "Yeah that worked!" right along with "That didn't work"
How do I get past this message?
You need the JDK because, well, to be honest Apple hates Java and has done a thorough job of screwing up what used to be the best OS for Java development.
The "you need legacy Java" message was from OS X, not Eclipse. The advice to download and install it is bad advice, but sadly nothing that Eclipse can remedy. Installing "legacy Java" just reverts your system to a VERY outdated JRE and renders much Java-based software, including Eclipse, broken.
Eclipse requires Java 7 or above (this year's release of Eclipse packages in June will require Java 8 ), so the best thing is to download JDK 1.8 (not just the JRE), install that, then point your eclipse.ini file to it's exact location per the instructions at the eclipse.ini wiki page.
Oracle JDK download links change often, so it's best to Google for "JDK 8 download" and you'll find it. Here's the page as it stands at the time I'm writing this.
[quoted from this Eclipse forums message]
So I downloaded Eclipse Kepler for a beginner's course in java programming. After completing a few activities, I took a break for about a month. None of these programs are really important, so if I need to delete them, that's fine. When I went to open eclipse for an activity about a week ago, I double clicked it and nothing happened. Occasionally, if I moved Eclipse to another folder or something, it would give me a warning message about how it couldn't locate its partner in a shared library. So then I googled my problem and found a solution about deleting something in the workspace/.metadeta/.plugins but I couldn't find that directory. I'm assuming that "workspace" is supposed to be a folder in the C:\eclipse, which is where I installed eclipse, but I couldn't find it anywhere. I found a folder just called "plugins", but deleting that didn't help at all. Finally, I uninstalled and reinstalled it to no avail, then I installed Eclipse Luna I think it's called (whatever is the most recent eclipse to download on the eclipse website) and it wouldn't open either, but when I double clicked it, it sent me this pop-up.
(I would put the picture here, but apparently I need "10 reputation")
Not sure what that means.
But it did seem to be some sort of log and it said "Java was started but returned exit code 13" and then had a whole lot of text after that.
TL;DR:
Can't open Eclipse Kepler or the newer Eclipse. I also can't find the workspace/.metadata/.plugins directory thingy that supposedly solves this problem
Any ideas on how to get Eclipse working again?
Open the eclipse.ini file and add, (make sure it is before -vmargs):
-VM
[path to x64 verstion of jdk]
For example:
-VM
C:\Program Files\Java\jre7\bin
Depends on your Java version, make changes to jre7. Also the reason is because you installed x64 version Eclipse, so you need to download x64 version JDK.
Hopefully someone can help me because I am apparently brain dead. I have searched and read through a lot of this forum as well as others for help in resolving my problem and I am just not getting it.
I have 2 Java WebApps that I need to run for Johnson Control HVAC units. The one unit is old and strictly requires Java 1.6.0_21. There are no upgrade options available for this unit. Just hundreds of thousands of dollars to replace the whole system. But the system works just fine so I am not interested in replacing it.
Now I have another unit which my company just took over at another location that uses a similar control unit but runs on Java 1.7.0_49 or 69 I can't remember. I have both versions installed on my computer but only the newer unit with Java 1.7 works. My older one now comes up with Unable to Launch Application Error. I have tried all these things and either I am just plain doing it wrong or something else that I am not catching is up.
I tried going into the Java Control Panel and unchecking Enable 1.7. That had no affect, even after rebooting.
I went into the Environmental Variables and under Path I have no Path to Java. So I added the path to the Java 1.6 version which also had no affect.
I have a batch file on my desktop to run the older app because it's web URL is a mile long. In this batch file I tried to add set JAVA_HOME variable and a set PATH variable for Java 1.6 which also had no affect.
I tried just doing java -version:1.6 from the cmd prompt which also did not allow the program to start.
I got it so when I did java -version from the cmd prompt it would tell me 1.6.0_21 for the version but I still can't get the program to load.
So I uninstalled 1.7 from the computer and tried it again. Still would not load the program. I had to reinstall the 1.6 before the older program worked. But once I reinstalled 1.7 I was back in the same boat.
I tried re-installing both programs using the STATIC=1 command through cmd prompt and still only version 1.7 runs and the older 1.6 does not.
I do get a message when I try to load the 1.6 that says, the program has requested an older outdated version of the program. Open with new version recommended or open in the older requested version 1.6.0_21. I select open in the older version but still get the Can Not Launch Application Error.
I have also tried going into the advanced settings and unchecking Internet Explorer for the Browser in the 1.7 control panel and going into the 1.6 control panel and checking Internet Explorer.
What am I doing wrong here or what am I missing? Any help would be appreciated.
This is a Windows XP 32 bit computer. Nothing special, just a word processor mostly.
You are swimming upstream, but it isn't a very large or strong stream, and this can be done.
The upstream part is that most instructions for doing this assume you are going to run only one version of the JVM on a given machine.
The good news is that Java doesn't require this, and is not set up so that it is difficult to run two at the same time. You just have to be rigorous about where each of them get their information.
I would recommend not "installing" EITHER of them. Do not put the executables' or the libraries' directories on your path variable, and do not define a CLASSPATH variable on the machine globally. You will need to unpack a runtime environment for each JVM, each in their own directory tree.
Make one batch file to run each version. It will define its own path variable, and its own classpath (either with SET CLASSPATH= or using the classpath JVM argument).
Good luck.
Using NetBeans IDE 7.3.1, I modified a desktop application under Windows 7, using JDK 1.7. Performed clean and build, and tested this application under Windows 7, Windows XP, and on a MAC. All test scenarios run under each operating system performed as expected.
This app is ported to outside vendors, and all vendors, except for one, have loaded and executed the app without any issues.
The one vendor encountering problems, and running under Windows XP, returns an error message - "Could Not find or load main class". After doing a little research, this error usually indicates the JDK is different. They downloaded and installed JDK 1.7, but the same error message appears. I had them go to http://javatester.org/othertesters.html, making sure that java was working on the workstation and verifying the java version (1.7). They reinstalled JDK 1.7 and still receive the same error.
I have duplicated the error by removing JDK 1.7, loading JDK 1.6 and running the app. Receive error ("Could Not find main class"). A little different than what they receive, but basically the same problem. Removed JDK 1.6, loaded JDK 1.7 and problem disappears.
I'm at my wits end! I am going to make an appt. to access their workstation. But before I do, I would like to put a plan in place to try different scenarios to fix the problem. I don't know how to proceed, since I've run out of options. I'm hoping for any suggestions.
OK,
Problem solved. Sent application via outlook, modifying executable file from .jar to .txt b4 sending application. I didn't think about looking in compressed LIB directory. Four files were .jar files.
These files were quarantined. Renaming these files to .txt b4 compressing app would have eliminated the problem. Resent the zip, vendor extracted and renamed all .txt files to .jar. All is well.
Appreciate everyone's input.
I believe they still have a JDK 1.6 on their machine and use this, for some reason, to try to execute the application. I've seen this various times at customer workstations.
Very often, people are not aware of what they have installed. Tell them to remove all JDKs and JREs from their workstation, by way of uninstallers and looking into the program folder and deleting stuff manually. Tell them how to do it. Do this with them during a phone call.
Then have them reinstall JDK 1.7. I'm almost sure it will work afterwards.
Alternatively, you can compile the application for older JDKs. You can also do this using JDK 1.7 by setting the target version for the classfiles.
Make sure that their JAVA_HOME path is pointed towards the JDK 1.7 install. I have had similar issues where I had multiple JDKs installed, needed to use the latest, but the computer was pointing to an older version.
To find what version the java_home is type java -version in the cmd.
How to find java_home: How do I find where JDK is installed on my windows machine?