Trouble installing the Android SDK on Windows 10 through cmd - java

I am having trouble installing the Android SDK on Windows 10. I am following a brazilian course on app development using react-native on android. This is a documentation page explaining how to create the development enviroment to do so: https://docs.rocketseat.dev/ambiente-react-native/android/windows (use google translate on the website to see the english version). However, on the part where they execute the following command :
$ C:\Android\Sdk\tools\bin\sdkmanager "platform-tools" "platforms;android-27" "build-tools;27.0.3"
the console returns:
Error: Could not find or load main class com.android.sdklib.tool.sdkmanager.SdkManagerCli
Caused by: java.lang.ClassNotFoundException: com.android.sdklib.tool.sdkmanager.SdkManagerCli
I have searched an entire day for a solution and discovered that, to my sorrowing dissapointment, this is a incredibly generic error when working with java in general. So I tried a plethra of things to no avail.
Reinstalling java(64-bit version)
Reinstalling jdk
Checking and rechecking what could possibly be wrong with the enviroment variables(I found no problems)
Searching through a dozen tutorials on how to install de Sdk via cmd.
Trying to get the Sdk on my machine through Android Studio(but couldnt use any of the Sdk commands necessary for the tutorial)
Some other stuff(I spent an entire day trying to fix this)
TLDR: I know this question has been posted in some form or regard before, I've read through all of them though, and none of them helped me.
If anyone has any idea of what I'm dealing with here, or has gone through this before, I would very much appreciate any advice that can be given. This problem has been drilling on me for a while now and I would really like to move on from it. I'm willing to provide any details on my current configuration but must of it you can find on the tutorial I linked earlier. Thank you for your attention.

It turns out there really are a billion reasons as to why this happens, and in my experience with stack, I don't think this will be answered anytime soon. So for future reference I will be giving some advice to anyone who ends up stumbling onto this problem.
Dual-boot your machine with Linux. I know this sounds like a non solution but it really is the only feasible solution. I spent an entire week trying to solve a problem that really wasn't worth solving. There are a ton of tutorials on how to do it. It took me less than 30 minutes to set up the whole thing and voilá, everything worked as a charm. Don't waste your time trying to make stuff like this work on Windows, especially since Java is involved.
The tutorial I used: https://docs.rocketseat.dev/dual-boot-windows-linux/introducao
PS: The tutorial is in Portuguese but Google Translate works pretty much perfectly on the page, so there should be no issues.

Related

Downloading libGDX setup

I've recently come across libGDX for java game development and wanted to give it a try. Every tutorial i've looked up showed that i have to download the setup.jar from https://libgdx.badlogicgames.com. The problem i'm having is that upon visiting this site, i always get redirected to https://libgdx.com, where all i can find are features, a doc, news... and a git repo with code.
Can someone explain to me how i can still download the setup app. Or do i have to run the code from git? Maybe this is a completely stupid question and i'm missing something really obvious but currently i'm completely lost.
It looks like the Website of the libGdx Developers has changed.
I researched a bit and found out that they provide you useful tools for programming with libgdx.
The tool list contains the Setup Tool.
You can find a list of the tools here:
https://libgdx.com/dev/tools/
However I have had ungreat experiences with the tool.
If the tool installation does not work properly. I would recommend you to try to install it manually.
You can find informations about the Manual installation here:
https://libgdx.com/dev/project-generation/

Tizen package manger not recognizing JDK

First and foremost I am very novice to this so I may not understand all technical terms or how to do everything but will try to and ask followup questions if I have. I've been trying to install TiZen studio, which worked fine until I tried to open the package manager. I can open Tizen Studio, but cannot open the package manager. I've tried to redownload latest jdks etc and read that it may also be due to wrongly implemented environment variables, so I tried to set them but nothing works. Error message when trying to open package-manager
My systemvariables looks like these;these are my PATH variables. Am I doing something obvious wrong? I am sorry for the inconvenience, and what environment variables should I set, where and how?
Computer runs on windows 10!
UPDATE: Can't open Tizen studio anymore. Might've happened sometime after I've changed those environtment variables or something. Not sure, and can't make out what the log means. This is the log I got from the last attempted startup. I know it's tons of text, but I have no idea what it means or what to look for, and maybe someone knows what to do or what anything means.
Thanks in advance!
Regards
I had similar issue and stated in this question that later I updated with solution.
For your issues, here's probable solution that might help you.
You need to set JAVA_HOME variable with value of correct version of JDK that Tizen studio supports. This Guide states the requirements.
Let me know if it helped you.

How to / is it possible to call a matlab finction from a java program?

To begin with i am using Eclipse as my java IDE. Im doing a robotics project where my robot (the lego mindstorms ev3) travels a room using SLAM (programmed in java) and does some image recognition using a webcam which is attached to it.
So far i have an algorithm in matlab for the image recognition and ive installed the plugin to use the ev3 from eclipse but i need to be able to link these two together.
(I haven't started on the mapping yet so if any one is interested and has any suggestions then that might be helpful to me, thank you in advance)
My tutor tells me that he hasn't heard of matlab being used in eclipse before but i have seen a few people on the internet say they have done it. Ive looked for plugins but i haven't found anything that i could get to work so any suggestions would be greatly appreciated.
likewise if any one thinks this cant be done but knows an alternative route that i could take for this project then that would also be appreciated to save me spending further hours researching when im on a tight schedule!
Thanks again guys!

SQL Developer 4.0 won't start on Mac OS Lion (Stock on Loading Screen)

I have been looking for a solution to this problem because I want to use this software in my mac but seems not to work any of the solutions I found..
of course installing the latest version of JAVA -> JDK 7
changing sqldeveloper-Darwin.conf and SetJavaHome /Library/java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home
same but changed to /Home/bin just to try diff solutions to the problem
I also changed the sqldeveloper.conf and put the SetJavaHome /Library/java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home there
try to run the sqldeveloper (/Applications/SQLDeveloper.app/Contents/Resources/sqldeveloper/sqldeveloper/bin) shell waiting to see if was going to prompt me or ask me for JDK or whatever a set it to /usr (but never happened)
going crazy now, so decide to make the post to see if someone can help or figure which step I am missing and maybe not seen the mistake..
This is where the program hangs...
at
org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
at org.netbeans.core.netigso.Netigso.start(Netigso.java:190)
at org.netbeans.NetigsoHandle.startFramework(NetigsoHandle.java:198)
at org.netbeans.ModuleManager.enable(ModuleManager.java:1189)
at org.netbeans.ModuleManager.enable(ModuleManager.java:1011)
at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:340)
at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:276)
at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:301)
at org.netbeans.core.startup.Main.getModuleSystem(Main.java:181)
at org.netbeans.core.startup.Main.getModuleSystem(Main.java:150)
at org.netbeans.core.startup.Main.start(Main.java:307)
at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:123)
at java.lang.Thread.run(Thread.java:744)
I really hope, someone can help me, I really tired of booting on Windows to run SQL Developer plus I find it kinda dumb that Oracle don't encounter this kind of issue to make users experience more nice.. ;)
There is one solution. I have been using SQL Developer for some time now, and i am not happy about it (I am on a MAC btw), there are so many bugs and the intellisense sucks. It is a functional program nevertheless.
Download and use navicat instead. Or try to find another one instead. It might not be the solution you are looking for, but i will recommend it.
http://www.navicat.com

Where have the Eclipse online javadocs gone?

For as long as I've been working on Eclipse plug-ins when I have wanted to read some documentation I have always just googled it. This worked fine up until about a week ago when I started being met with this message:
| Topic not found
The topic that you have requested is not available. The link may be wrong, or you may not have the corresponding product feature installed. This online help only includes documentation for features that are installed.
Today this has tripped me up on the following queries:
http://www.google.co.uk/search?&q=ITreeContentProvider
http://www.google.co.uk/search?&q=IObjectActionDelegate
Sometimes trying different versions of the Eclipse docs works, sometimes it doesn't.
I had assumed this was just a glitch but I'm still noticing this issue, where have the docs gone?
Two suggestions without using Google:
Use the Eclipse documentation directly!
Use Bkekko with my Eclipse slashtag: https://blekko.com/ws/ITreeContentProvider+/timkrueger/eclipse
This issue is now resolved. I contacted the Eclipse web admin but didn't hear back so whether Eclipse fixed the issue or Google figured it out, i'm not sure.

Categories

Resources