LibGDX is an executable JAR file but will not run when selected - java

I have installed Java version 8 and then proceeded to install libgdx. Once installed I tried to open it but it will not run and appear with the project generator page. The icon is a blank document and doesn't show the Java symbol. I have followed tutorials but for some reason it's just not working. I have changed the environment variables. I'm just confused as to why it won't work. I have followed the following tutorial exactly how it is but I installed version 8 and I did not install the Android related things but that shouldn't have made a difference?
https://www.youtube.com/watch?v=Huifd-C2KrI
Can someone please tell me where I have gone wrong and help?
Thanks

Related

Eclipse installer not showing any packages

When trying to install eclipse, when I run the installer I just get a blank box with no packages to select. Image Link
Any idea on how I could fix it, I have my java environment variable and java_home both set to the \bin location for both my java installations. The versions of java I currently am using are jdk 8 and I got jdk 16 to see if that might fix the issue but it didn't. As well, there weren't any errors or anything it just shows the empty box and shows that there's an update but I'm not sure what it's trying to update. Any idea how I could fix it?
Solution that worked for me:
Ok so after some fiddling around I had to search "eclipse" in the search all bar in windows. Then after some scrolling I was able to find the file "eclipse-isnt.exe" and after running that it showed the stuff to download and solved my problem. The "eclipse-isnt.exe" ended up being located in "C:/Users/(user)/AppData/Local/Temp/(random temp file)/eclipse-inst.exe".
Hope this helps out
Also running the file as administrator worked

Problem in running Stanford assignment on eclipse

I am new learner of public sources of Stanford cs106a. I got sucked when run my assignment1. You can download it from here:
https://see.stanford.edu/materials/icspmcs106a/Assignment1.zip
I suppose to see the image on the following file after press run on Stanford menu and choose CollectNewspaperKarel code.
https://see.stanford.edu/materials/icspmcs106a/07-assignment-1-karel.pdf
But there is no any Karel or his world. I didn’t get any error. I am running eclipse 2018-9 and my JDK version is 11.0.1 on macOS Sierra 10.12.3. I added the Stanford plugin as well. I do the following instruction for installing eclipse and the plugin:
https://web.stanford.edu/dept/cs_edu/eclipse/
How should I solve my problem to see Karel at result window after run assignment?
P.S. My English isn't good actually!
I also had a same problem with those files.
The Assignment1.zip file seems working with the Java 6 runtime only.
You can still run it by downloading the legacy Java 6 runtime here and install it.
https://support.apple.com/kb/DL1572?locale=en_US
Then you need to configure to use the runtime.
Preference -> Java -> Installed JREs
Click Search
Select /Library/Java/JavaVirtualMachines/1.6.0.jdk
Check it
Preference -> Java -> Compiler
Select 1.6
However, I actually found newer assignments files which work with the updated Java runtime.
https://web.stanford.edu/class/archive/cs/cs106a/cs106a.1178/
If you follow the Eclipse link, there are instructions to setup it.
You can also find each assignment page links.
For example, find Assignment 1: Karel the Robot on the above page and follow the assignment page link below.
Find Click here to redownload the starter code if you have already completed the Honor Code form.
You can download CS106A-Assignment1.zip which works with the updated Java runtime.

Eclipse won't load: failed to find a main class

I am trying to download Eclipse onto my flash drive so that it can support itself if I try to use Eclipse on a computer that does not have a JDK/JRE installed and/or I do not have the permissions to install one.
I am able to download it onto the flash drive and run it fine, but the problem arises when I try to make it self-sufficient by downloading a JDK for Eclipse to use on the drive. I have tried many different solutions (yes, I am aware of the abundance of "why is eclipse telling me it cant find main class" questions), but none of them apply to me. I followed this tutorial in my endeavors, but when I run the batch file it comes up with the standard Failed to find a Main Class in "F:\eclipse\\plugins/org.eclipse.equinox.launcher_1.5.200.v20180922-1751.jar.
I know the \\ looks a bit out of place, but I know that's not the problem since I've tried editing the eclipse.ini file to fix the path but it gives the same error (just with F:\eclipse\plugins\org.[...].jar instead)
I'd really appreciate any help anyone could give. Thanks!
Eclipse has required Java 8 or newer since the Neon release, in 2016. Update your version of Java.

Accepted the automatic Java update and now can't open Eclipse,

I'm very new to Java and computing in general. Currently taking an intro to programming course revolving around Java.
I got a notification earlier about a Java update when I wasn't using it and accepted it without much thought. I just now tried to open Eclipse to start doing some homework and when I did, all I got was the following message:
A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations: C:/Program Files/Java/jre1.8.0_144/bin
I have no idea where to go from here. I can't get in touch with my web developer friend helped me set up Java on my computer originally, and my instructor isn't responding to emails. I've tried to fix things like this myself in the past and have only compounded the problem, so I'm reluctant to try anything I'm not certain about, which is to say I'm reluctant to try anything at all. Any help is appreciated.
First, try to find where your jdk locates. If you don't remember where you have installed it, try to search for jdk or jre folder in C:/Programm Files. Then go to Window -> Preferences -> Java -> Installed JRE's tab in Eclipse and set path to your jdk or jre.
Got it figured out from an old question- just had to change the text to the updated JRE in the Eclipse initializer. Thank you for your help!

android.bat not opening Android SDK manager

Yes, this question has been asked before. But the solutions on the internet are not working so that's why I am asking it here. I'm guessing the solutions aren't working because I am using newer versions but I'm not sure.
Bit of Background: So I am making a small game in Unity. I have to test it on Android so I can check if there are any problems or not. So I check around the internet on how I may be able to do that. Turns out, I need to change the build settings to android and I also need JDK installed on my computer along with Android SDK Manager so I download them both. I did not install the Android Studio but just the Command Line Tools because many tutorials say that I do not actually need the whole Android Studio because I'm gonna be making the app in Unity not in Android Studio. So I do that. I install JDK and Extract the command line tools.
I think the JDK installed fine because after installing JDK, I opened Internet Explorer (No, I don't use IE, I use Chrome but I opened it just for fun). And a little notification showed up at the bottom which basically said that I could now run Java on the browser so that's why I don't think there are any problems with the JDK installation.
Problem: I extracted Command Line tools of Android Studio and found that there was only a tools/ folder in it. I opened it and clicked on android.bat but the Android SDK manager doesn't work. A CMD screen just flashes for a moment but then nothing happens.
Solution I have Tried:
Change set java_exe to:
set java_exe="C:\Program Files\Java\jre7\bin\java.exe"
and delete the line:
call libjava_find.bat
But I can't find set java_exe code anywhere in the file. The file doesn't have it. How am I supposed to change it?
Alright, so I figured it out but I was still unable to pinpoint the problem. Here is what I did:
Installed a fresh copy of Windows 10. Note: It is highly unlikely that this will solve the problem. But where I live, it is very common to just install a fresh copy of windows whenever you get a problem. I really don't think you need to do this.
Follow all the instructions from: https://www.youtube.com/watch?v=yLFBu-VlBIw
If you get the following error:
Error building Player: CommandInvokationFailure: Unable to list target platforms. Then use this fix: not finding android sdk (Unity)
These steps solved the problem for me and I was able to run it properly.

Categories