I'm using VSCode to make a Java game with my friend. We are using the java.awt libraries. We are using live share so we can both work on the code, but when we compile the game window only shows up for me (the host) and not him. How do we go about working on this game together?
If it's not clear what I'm asking, please ask.
I'd suggest looking into GitHub.
You can upload your code from VSCode to a repository on GitHub that you and your friend can both access.
It's a version control system, so you can both work separately without worrying about overwriting each other's work.\GitHub and VSC both have lots of good tutorials to get you started.
Related
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/
I'm having a really stupid issue and I'm not sure if I'm an idiot or not remembering java correctly or what. I apologize in advance if this is a super dumb question.
Main issue: I'm trying to use web3j with java and I can't figure out how
Background:
1) I know JAVA (I've developed android apps in android studio) but not netbeans. Though I haven't touched java in forever.
2) I am familiar with building and interacting with ethereum contracts from the command line.
Detailed issue:
I need to connect to an ethereum contract through java, so I googled around for a while and found web3j. However... I can't figure out how to actually use/install/require it. There's a sample project, but I'm not sure how to import that to netbeans. And when I google "connect to ethereum with java" or something along those lines all the articles gloss over the web3j part and just assume it's already setup.
I guess the main question is, how do I add this library to my java project in netbeans?
this is relatively vague I know, but it's because I haven't actually been able to make any meaningful progress to say "this is what I've tried." mostly it's been research and I've not found anything that says anything about how to setup web3j other than command-line tools. which I already know how to use.
resource: https://github.com/web3j/web3j
Thanks in advance for any direction you can give me. I feel like maybe I need to redo a java primer, but I'm not sure if that's actually the issue (my possibly lapsed memory where java is concerned).
In Netbeans, create a new "Maven Java Project".
In the file pom.xml, simply add the following code. This will make the "include"
<dependency>
<groupId>org.web3j</groupId>
<artifactId>core</artifactId>
<version>3.2.0</version>
</dependency>
I have a Neatbeans application, that works well and runs well so I want to move it into Android. So I am taking code snippets and moving it into Eclipse, and into a default made droid class. (which compiles, loads, and displays on the virtual device)
The problem, is that a few things that used to "import" into Netbeans, won't in Eclipse, or I am just doing it wrong, not sure.
Usually in Neatbeans I hit "import such and such class" and then it all compiles fine and no red errors appear in the code. In Eclipse, it is not giving any import option to some features, examples are..
DefaultModelList
HTMLUnitDriver/WebDriver (Selenium's program)
JOptionPane
And I am guessing some more will eventually pop up in the future.
Does Eclipse not support those options or something? Or is it Android that does not support those options?
Can someone tell me how to work around those issues, with their respective problems please?
The program itself is a mobile chat application, that will basically be a mobile version, of a chat that already exists on the web. Pulls chat feed data, lets you post chats back; basically the same thing as the chat on the website, but accessible from your smartphone.
Your problem is not with NetBeans vs. Eclipse. It sounds like your app uses the Java UI Framework Swing, from which you have JOptionPane. Swing is not available under Android, and anything that uses Swing will have to be extensively recoded to use the native Android UI instead.
Your app may use other libraries that aren't available in Android, as well.
Eclipse does support those options (press ctrl-shift-o). The problem is most likely the transition to Android -- lots of items change names. The Android native item to use is not JSpinner but Spinner, etc.
Also: In Android most GUI work is done with layout .xml files, a bit different than plain Java programming.
TLDR: you're conflating multiple issues. Eclipse can even import a Netbeans Project directly.
Is Eclipse a strong requirement for you? If you love NetBeans and everything is working, why not to continue with it? I believe you can develop for Android in NetBeans too...
http://binarywasteland.com/2011/07/install-netbeans-android-sdk/
I'm trying to develop a program that simulates the Terminal in Linux. My problem is that I can't clear the screen in the default Eclipse console.
After a lot of searching, I've found a library called JCurses that can do the task. But I can't get it working in Eclipse.
I've searched for a tutorial, but it seems there is not.
Can any one help me how to use it?
OK, I found it.
I have used an external Java console. It's called Eric:
http://cs.roosevelt.edu/eric/console.html
It's very easy to use. It could be run flawlessly on Eclipse although it's said to be for Netbeans only.
Thanks guys very much
For all of you android devs out there that have the Android simulator running on your comp, you know that there are a few built in apps that are already installed on your 'phone'. I had an idea for an app that would utilize a function that is already being done in the spare parts app that comes already installed.
I went on to the android developer site, dug through the source code files, and found the spare parts app, and am now trying to set it up so that running it from eclipse on my machine actually runs the app in the simulator. In other words, I want to be able to make changes to and adjust some of the things in that app for my own needs. But it won't compile, because of a number of different errors.
How do I get that source code running on my local machine? Is there some special trick that I just dont know about? I thought that if I could get the source code than the rest would be easy, but it isn't being too easy.
Not knowing what the error is, it is hard to say. But there are some tricks. First, you want the entire spare parts app in Eclipse, not just the code you are interested in running. Second, right click on your project, and go down to the "Android Tools" menu. Then click on "Fix Project Properties". Do a clean on your project and hopefully that will help.