Get Button Inputs in Java - java

so im writing an application that is supposed to use 6 game pads as input. i have found alot of documentation about a library called JINPUT. but the official download link gives me a 404 error. it would be awesome if someone here knew an alternative i could use. or knew a good download link. thanks!

JInput can be found there :
http://java.net/projects/jinput
You can use SVN to get it :
http://java.net/projects/jinput/sources/svn/show/trunk?rev=252
There are some tutorials around the web you could use.

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/

Trouble installing the Android SDK on Windows 10 through cmd

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.

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!

What are the steps to upload a java web application

After a lot of work i manage to finish a java web aplication with netbeans using primefaces/glassfish server (it is a e-shop that we developed for a school project). I use xampp (mySql) in order to fiddle around with a database that i use in the web app.
My problem is that i have no idea on how to upload this to a server. What am i supposed to install on it ?, i dont even know what os to use :/ . Im really bad at the "internet part" of this project and since this was my last school year i can not reach for my professor to ask him for help.
I know my question is vague but please help me to finish this project because it would help me a lot to find a job in the future.
I should also mention that i use a mysql-connector-java-5.1.38-bin.jar .If im not wrong this allows me to send data throw a TCP connection right? My main problem is that im missing the Full picture ,I know how to write basic code in java , i know how to build the xhtml pages and how to bind them to the java code behind but other than that i dont get how the rest of this works.
Any help is greatly appreciated.
Edit: as i said im bad at this. if you just post a generic link on "how to set up a Javaweb" i will not be able to follow . Im asking here ,on this forum because i want human answer. I need someone to post a 4-5 line explanation and like 8 bulletins on what to do like
*install linux
*Build and export your project.
*install glassfish standalone.
etc
The thinks google returns to me are like 400 pages of glassfish documentation and really hard to follow guides on how to do what i want. Of course i could waste the next month or so just reading and trying to figure out how everything comes together (witch i inevitably have to do)but i feel like im only 15 clicks away. I just want a practical answer.
You need an application server to "upload" the code. Use tomcat, its simple and has plenty of documentation available.
If you are using XAMPP, you may be familiar with Apache Server, which runs , among other things PHP. For Java, you need application server to run the server side code.
It doesnt matter which OS you want to use, Java runs on all. You just need to download and install tomcat for the OS you want to run it on.
Please refer to http://tomcat.apache.org/
I must point out that there are many more Application servers which are available. Tomcat is one of the most popular for learning purpose.

Bubble in OSMDROID

In the main screen of OSMDROID's webpage can be saw the use of bubble of information but I don't know how implement this funcionality. I searched how do it in the official documentation, internet and stackoverflow but I don't find anything.
Does this functionality available in the library or just is part of OSMViewer?
Check out this thread, Post #5:
https://groups.google.com/group/osmdroid/browse_frm/thread/262444b24373385b?hl=en#
With this new library you can have much better 'infowindows' than the rather limited ItemizedOverlayWithFocus:
http://code.google.com/p/osmbonuspack/
I haven't tested it myself yet but it looks good.
The source code for the viewer program is on Google Code so you can see how they've done everything:
http://code.google.com/p/osmdroid/source/browse/#svn%2Ftrunk%2FOpenStreetMapViewer
I think that what you're looking for is a ItemizedOverlayWithFocus, used here:
http://code.google.com/p/osmdroid/source/browse/trunk/OpenStreetMapViewer/src/org/osmdroid/samples/SampleWithMinimapItemizedoverlayWithFocus.java

Categories

Resources