Problems with Java on Visual Studio Code - java

I only have a Raspberry Pi to practice, and Visual Studio Code runs smoothly on it for many languages I've tried, but I can't seem to run Java on it. I installed the Extension Pack for Java, but when I create a Java Project and try to run it, the Debugger keeps loading and doesn't start at all. I tried uninstalling/reinstalling the Extension Pack and the Debugger, but without success. I know the solution might be obvious, but I tried googling it and found nothing.

Found out that the latest version of the extension "Language Support for Java by RedHat" wasn't working properly on my VSCode. I installed version 1.0.0 and it loaded everything and now I can run Java smoothly.

Related

Java runtime error on Flutter VScode for Mac

I used to work on Flutter months ago daily and when I came back I had this error showed while trying to debug:
Unable to locate a Java Runtime
After trying several solutions from Stackoverflow and redownload java from the internet I am still stick with this problem:
Kotlin could not find the required JDK tools in the Java installation '/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home' used by Gradle. Make sure Gradle is running on a JDK, not JRE.
I know there is a solution on Android Studio but can't get to it on VsCode. Where is the package I have to create the JDK so I can debug normally ?
Thanks in advance.

VS Code Extension stuck installing

I'm trying to install the Java programming extension in visual studio code to learn Java. However the "Language Support for Java by Red Hat" and "Debugger for Java" extensions get stuck on installing. I tried using the insider version of VS Code and reinstalling the extensions already. All the other extensions installed properly but these two. From where I've looked, the last things to try are changing the proxy settings (but I don't think that's the problem), and manually installing the extensions. Screen shot of issue(they've been stuck on installing for about an hour)

Play! Framework + Java

when I try to create a new play app and then launch my play application (without modifying any code) locally I get the following error:
http://cl.ly/image/1x311s1w3S2w
which says I have a continuation error. However I cannot fix it as I have other older play projects which I can still launch and they still work perfectly. My java version in eclipse 1.7 and my play version is 1.2.5.
I realise now that my JVM is 1.8, will this make a difference? Although then why do they older apps still work, when they are also written using 1.7.
Any help at all would be great, thanks!
I don't think the JVM version would be the issue. The issue is with the loading of your class ContinuationEnhancer. Try replacing the jar of that class.

UI twitching and missing letters when using JRE 8

I am having a problem with my Java on my personal laptop. I have Java 8u11(JDK and JRE). I am working in Eclipse Kepler and making applications. Until now I was working on my office computer and I had no problems(I have Java v7u55 on the office one).
Starting yesterday after I created a small Swing-GUI program as a test in Eclipse and I ran it on my personal computer the program came up all weird and twisted with all the letters twitching or missing.
You can see more from the screenshot below.
Something like this:
The same thing happens with all my executable JAR files.
The button are not empty there is text in them:
I've tried re-installing Java and installing it again and it won't work. I have the Java added to my System Variables Path.
I think it is a problem with the JRE/JDK. Maybe downgrading the Java version I have installed ?
Restart of the computer didn't work. Any other ideas or solutions ?
This question can be closed as answered, as the solution from the question: Swing rendering appears broken in JDK 1.8, correct in JDK 1.7
helped in solving my issue.
I changed my 3D Settings in NVIDIA Control Panel to High-performance NVIDIA processor and was able to run my Java programs with JDK 8u11 without any problems.
Thanks :)

Set up Tomcat server on a Mac

I need to get a local setup of Java working so I can start coding locally and doing builds.
I know that Java is built into macs automatically. I am running version 1.6.0_22
I found an article on how to install tomcat:
Tomcat on a Mac
I got the Tomcat server running to where i can see the default Tomcat Page.
Started to dig deeper but hit a huge wall on getting to a point where i could use an IDE to get coding.
I downloaded Eclipse for the mac (because it was free and seemed to be the more popular one out there)
So where do i need to go from here to get a working environment to test code from our svn?
Any good articles that i can read. It was hard to find some (recent) documentation on how to get this working on a mac.
Which version of Eclipse did you download? I'm guessing you downloaded Eclipse IDE for Java Developers, which doesn't have the nice WTP stuff that you probably want.
You'll need a heavier flavor of Eclipse, like Eclipse IDE for Java EE Developers. I'm not sure if there's a lighter (in-between) flavor that has WTP, etc., without all the Java EE stuff.
Assuming you have some sort of SVN client and know how to create a trunk on your local machine, do that, and then all you have to do from there is open the java project in that trunk within Eclipse. Once you have that open, on the Eclipse toolbar just build your code, make sure that works, and then run it in the same fashion.

Categories