VS Code Extension stuck installing - java

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)

Related

Problems with Java on Visual Studio Code

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.

Libgdx could not determine java version 11.0.1

I tried everything I installed every possible Java file a million times I installed the newest gradle version but it continues to show this error. I'm on Mac. Please help thanks
IF you do not want to develop for Android Java 11 works fine libgdx.
You have to change some things before everything builds and runs.
Here's what I did to get my project working.
My context Mac OSX 10.14 and openJDK 11.0.2, new project, Desktop launcher and a bunch of Extensions (not important).
The error you get about not being able to find java 11.0.x comes from gradle. Java 11 is only supported since gradle 5. In order to use gradle 5 instead of 4.6 the generated project is configured with, go to <project-dir>/gradle/wrapper/gradle-wrapper.properties and change distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip into distributionUrl=https\://services.gradle.org/distributions/gradle-5.0-all.zip.
That resolves the java 11 error just to confront you with a new error Could not get unknown property 'classesDir' for main classes of type org.gradle.api.internal.tasks.DefaultSourceSetOutput.
To get rid of that, open <project-dir>/desktop/build.gradle and change line 27 (might be different for you)
from files(sourceSets.main.output.classesDir) into
from files(sourceSets.main.output.classesDirs)
thats classesDir into classesDirs
This should resolve all build errors and you're good to go.
I am strongly recommend to use Java version not greater than 8. It is many incompatibility issues I faced just on 9 version of JDK in Android Dev environment.
Uninstall all java you have, use this article, because it is not as such easy without knowledge: https://www.java.com/en/download/help/mac_uninstall_java.xml
After download the 8th version from here: https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
I did same some time ago and all problems left

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 :)

autocomplete is broken in Eclipse Latest May upgrade with JAva 6?

I have a PC right now which have installed Java in July 2011. When i run my latest download ADT it's work without anything required (I thing they take old installed Java).
Now My trouble is I never see autocomplete. After too many CTRL + Space I got autocomplete but never in Java files.
I found that their is AVD already crated for Android 1.6. Look like someone have used Android Eclipse on computer before.
I not want to know what have used in current PC. I just want to run my latest downloaded ADT which not have any kind of code completion when I work on Java files.
I have deleted the workspace folder and it's not useful. Do someone guide us what to do.
I hear in Another answer here (Raghav sood) that Android use Java 6. Do this means it will work. I thing it's about Android use Java 6's customized package not Java 6.
What I need to do now to make it work.
Just download this bundle:
http://developer.android.com/sdk/index.html
Or try the new Android Studio, which still on beta, released at Google I/O 2013:
http://developer.android.com/sdk/installing/studio.html
If I were in your shoes, I would download and install the latest version of Java, Eclipse and the ADT.
Of Course there could be an other solution, but in my opinion its the fastest way. And you get some bugs fixed with the new version. 2 Years are a long time in android development.
EDIT: Some advice: If you've installed all these things, just zip it so in case your eclipse is broken you've a fast backup.

How to Use Eclipse to Debug JNI code (Java & C/C++)

While I can debug my application with the Eclipse JDT debugger for Java code and GDB for C code, I would prefer to use a single tool for all my debugging. I found several projects that enable "mixed-mode" debugging in Eclipse and include support for single stepping between Java and native code.
Intel's Integrated Debugger for Java/JNI Environments
Mariot Chauvin's Summer of Code Project: Support Seamless Debugging between JDT & CDT
Unfortunately, one claims to be pre-release quality and the other is currently unmaintained.
Are there any plug-ins that bring mixed mode debugging functionality to Eclipse in a reliable way or should I continue to use two separate debuggers?
For those looking to debug NDK/JNI code in the Eclipse Juno release, it is essentially built into the software after installing the Android plugins and CDT plugins. You may have issues though since there is a problem that was introduced with the C/C++ Development tools (CDT 8.1) that as of 7/24/12 has not been fixed. For details on the issue see the following link. If you just want to debug, keep reading.
http://code.google.com/p/android/issues/detail?id=33788
If it is working correctly, you simply set your breakpoints in the C and Debug As -> Android Native Application. Unfortunately, you can not debug the java and C at the same time. If the problem is in the Java and you want to debug you do so by clicking Debug As -> Android Application.
If it is not working correctly, and you want to figure out how to get it correctly, the following packages worked for me.
Android DDMS 20.0.1.v201207132230-403220
Android Development Tools 20.0.1.v201207132230-403220
Android Hierarchy Viewer 20.0.1.v201207132230-403220
Android Native Development Tools 20.0.1.v201207132230-403220
Android Traceview 20.0.1.v201207132230-403220
Autotools support for CDT (Incubation) 3.0.1.201202152032
C/C++ Development Tools 8.0.2.201202111925
C/C++ Development Tools SDK 8.0.2.201202111925
C/C++ Library API Documentation Hover Help (Incubation)
Eclipse SDK 4.2.0.I20120608-1400
Tracer for OpenGL ES 20.0.1.v201207132230-403220
The android packages came from setting Work With: option on the Eclipse Help->Install New Software... dialog to
dl-ssl.google.com/android/eclipse/
The older 8.02... CDT packages came from setting the Work With: option to the Indigo release packages.
download.eclipse.org/releases/indigo
If installed, you will need to remove the Android tools, and the new version of the CDT prior to installing the old version of the CDT. Once the 8.02... version of CDT is installed, you can install the Android tools and commence debugging.
Ensure you use the Build command "ndk-build NDK_DEBUG=1"
Autotools may not be required but since it is installed I have it listed.
Note that stepping through the code can be quirky sometimes.
I don't think there is anything available today which will fix it, but I know that Doug Schaefer has this pretty high on his list of things he wants to get done. Keep an eye on his blog for updates on that.
ARM itself seems to have a toolkit: http://ds.arm.com/ds-5-community-edition/
Requires Eclipse 4.4 ("Luna").
With the new Android ADT bundle (as of 05/12/2013), there is no longer a need for the older 8.02 software package. If you find yourself editing text files to get the debugging working, you are following old directions that no longer apply. Use the android ADT and Debug As-> Android Native Application. You may still need to set NDK_DEBUG=1 if its not already done in the setup.
Eclipse Sequoyah 1.0 has android ndk features..Eclipse 3.6 release train and 3.5 release early June.

Categories