Eclipse IDE error,cmd shows "“Java.lang.classnotfoundexception:version”" - java

Does anyone know what should I do after I delete all java program( java SE and eclipse IDE for Java Developer ) and then reinstall them over and over again almost the whole day? But it still can't work when i tried to write Java.
It did successfully install jave when I typed javec at cmd, but then I found cmd show that
Java.lang.classnotfoundexception:version after I typed java version.
And then I open eclipse IDE for Java Developer, the error occurred as below:
An error has occurred. See the log file C:\eclipse\configuration\1528876404969.log
And it did change the number when I reopen it, such as 1528881289007.log
Already installed: jdk-10.0.1 and jre-10.0.1, and add the path at environment variables under window 10 64bits.
It would be appreciate for taking your time for answering my question.

Related

How do I enable java linter when I am using VSCode? It isn't working now

I can't figure out how to enable the linter (red error underline) whenever I use the code editor. So far I have tried enabling other Java linter extensions and re-installing vscode, but no luck. I am currently running v1.28, and my only extensions are the ones in the Java Extension pack.
Side Note:
I encountered is a popup saying "Java runtime could not be located", prompting me to install to install the jdk. I'm not very experienced with vscode and java so I am not sure if this is the error. If anyone has any potential solutions please let me know! Thanks.
You should install jdk on your os , and if you done before , set path in your environment variables.
Make sure the jvm works correctly on your os after installing with this command :
Java -version
Download jdk from here :
https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Codes not works until press the clean and build in NetBeans

I work on a project using database. When i change some query change to get some values from the database NetBeans IDE gives me past coding changes result. But if i press the Clean and Build the project it is working fine. This consumes lot of my time.
How to fix this? Whenever i open NetBeans IDE it shows this dialog box
When i press "Yes" that opens the NetBeans IDE.
This started to happen after i changed the jdk version from 8 to 9. It seems NetBeans 8.1 does not work with jdk 9 so i again installed jdk 8.
After that install this message showing when i start NetBeans. I have no idea this is affect to above problem i have mentioned. So actually i have two problems.
i have installed jdk1.8.0_172 and i given environment variable correct path. but that is still same –
JAVA_HOME: C:\Program Files\Java\jdk1.8.0_172\bin
To solve invalid home specifieid error in netbeans follow below instructions
Go to C:\Program Files\NetBeans 8.0.2\etc
Open the file netbeans.conf then change netbeans_jdkhome to the path of your JDK, netbeans_jdkhome="C:\Program Files\Java\jdk1.8.0_172"
Make sure netbeans.conf run as administrator.
If you are not sure about the version of jdk, you can find it by typing in CMD java -version

BlueJ - tools.jar not found

I installed BlueJ today and I got the program able to load up however when I try to create/open a project the application doesn't do anything. Upon executing the command in terminal I found the error:
class Boot: tools.jar not found. Potential problem for execution. (Java home: /usr/lib/jvm/java-8-openjdk/jre)
I am not sure how to edit the Java home varaible. I have changed the /etc/environment file to contain:
JAVA_HOME="/usr/lib/jvm/java-8-jdk"
export JAVA_HOME
However that doesn't affect anything (I still get the same error message with the same path)
Manjaro 17.1.2
Linux 4.14.14-1-MANJARO
BlueJ 4.1.2-1
I had the same issue today. I run Arch Linux, which from my understanding Manjaro is pretty similar?
The problem I had was when I installed bluej I think I selected the Java 7 option when it gave me a choice between Java 7, 8, and 9.
I ran archlinux-java status to check which version I had selected on my system, and this was the result:
Available Java environments:
java-8-openjdk/jre (default)
So all I had to do was totally remove bluej (pacman -Rns bluej), and then reinstall and ensure I selected the 2) jdk8-openjdk option when given the choice. My bluej installation now creates and opens projects as expected.
Hopefully some of that information is useful, I must admit, I am pretty new to Linux, so don't really know what I am talking about. Just sharing my experience.
EDIT: I had the same problem on my other arch machine, and the issue was simply that I had the java-8-jde/jdk installed but for some reason that meant that bluej was looking in the jre for tools.jar I guess? So I installed java-8-openjdk and that solved my problem, bluej now works on this computer as well. I am yet unsure as to whether that will cause other Java issues on the system though, but I feel like it won't?

Android Eclipse Exit Code=15

I accidentally closed eclipse when I was sending my application to run on my phone, and when I went to open it I got the following error:
Java was started but returned exit code= 15
C:\windows\system32\javaw.exe
Dogsi.requiredJavaVersion=1.6
I have tried restarting my computer but it didn't change this message. I have been using eclipse for a while, and have never seen this error before.
How can I resolve this error?
EDIT:
I ended up just reinstalling eclipse.
It sounds like eclipse didn't get a chance to save its configuration properly while quitting, and now the configuration is invalid when attempting to open.
Please see https://stackoverflow.com/questions/18059686/jdk-error-while-running-eclipse-on-windows-7 and Running Eclipse on Windows 7 JRE and JDK not found . Alternatively, just reinstall the jre and ecipse, but if you don't want to do that, then you're going to have to fiddle with eclipse configuration.

Can't run my project in eclipse because java force closes

I hope this is more worded to be on topic because me not having the ability to code because of a java issue is off topic apparently.
When I try to run my project in eclipse. Eclipse just sais at the bottom with no stack trace. If I compile the jar file and run it with javaw it does nothing. If I run it with java it brings up the java(tm) platform has stopped working.
What I have tried:
Changing association of .jar to use java and javaw
tried uninstalling java and reinstalling
installing windows updates
restarting my computer
cleaned registry
running it in command prompt (just pulls up a window saying "Java(tm) platform se binary has stopped working." There is no stacktrace inside the prompt either.)
scanned for any malware/viruses
using the "fix and restore windows 8 option"
My system:
Windows 8 :/
java 7 latest 64 bit Update 13
java SE dev kit 7 Update 13 (was happening before I installed it)
16 gigs of ram
I can give you more info if need be.
Jars work on my other computer just fine.
edit: Still no luck. 8 out of 8 places I asked for help I got down voted. Looks like im not developing anymore.... Thanks.
Well, there is a known bug with this message, the workaround should be to disable d3d acceleration by adding this as a VM argument: -Dsun.java2d.d3d=false

Categories