Please bear with me as I am brand new to Java and Eclipse programming. I was looking around for some cool example projects to learn from, and I came across this:
http://www.java-gaming.org/index.php?topic=23775.0
It seemed very interesting, and I would love to see how it works on the inside. However, I am having a great deal of trouble compiling and running this project in my personal Eclipse workspace. So in short, how would I run this project in my own Eclipse workspace? Any help is appreciated for this issue. The words "thank you" do not get used nearly enough on this site, so I would like to thank you all for being a part of what makes this forum such a helpful place for beginners.
Go to File -> New -> Java Project. Give your project an arbitrary name. Keep the defaults suggested and press "Finish". Unzip your zip somewhere, then copy the "com" folder to the clip board and paste it into the "src" folder in your Eclipse project. It should start to compile automatically when you do that. Then in your package explorer view, expand the "src" folder and then "com.springworldgames.jcgmusic". Select "SongCreatorApplication" and press the green "Run SongCreatorApplication" button in the menu at the top. It should launch.
Your link does not seem to be a repository, it has a downloadable jar.
Use JD GUI. Open the application, drag and drop your JAR file into it.
After take the code and import it into Eclipse.
Related
How can I get a jar file from a desktop libgdx project in netbeans?
I know it's a bit late and you've probably figured it out by now, but I'll still answer this for those who don't know.
Right click on your desktop project
Go to the "Tasks" menu
Click "dist"
This will create a standalone JAR file in <pathToYourProject>\desktop\build\libs called desktop-1.0.jar (or something like that).
I don't know if that's the proper way to do it, but it's the only one that worked for me.
I have no experience with this but you should be able to unpack/extract the jar file and then load then load the project into Netbeans.
If it's a gradle project.
If it's not search further since I do not know Netbeans.
Import it with Android Studio and work with my favorite IDE. Choose import none android studio project.
For Eclipse my work space is my usb drive that I've always used. I haven't used eclipse in a while so now that I'm trying to open up old projects it won't allow me to and says that my .project files are missing, but when I look at my folders on my usb there is a .project file for every project as there should be. I tried importing projects into a different work space and the projects did open up, but I'm wondering why they aren't working on my usb when that was always the workspace I've used and saved everything on. I'm a little confused and am fairly new to java programming and eclipse. Also any tips on importing/exporting projects in work spaces and using Eclipse would be great. Thanks.
What you can do here is to try and import the project, if that doesn't work open a new project and then drag all the packages into that project then exit Eclipse, it will make a new project folder for you that works.
There is nothing to worry about here, your source code is safe anyway.
I'm currently working on a groupproject. We're using github to save our code. I have just installed eclipse to work on. I foound to open the project to use import. This has opened the project, except the SRC folder is empty whereas the first SRC folder (the main which was made through github) has several .java files within.
Why is this and how do I go about putting them in. I am unable to work on the code through eclipse at the moment due to this. Thank you, much appreciated.
The easiest way would be to:
clone manually the GitHub repo (in command line)
import the Eclipse project in your Eclipse workpace
Then push to the GitHub repo
Or you can clone the GitHub project through Egit directly,, following this tutorial.
The OP pokeairguy reports in the comments an alternative solution:
create a new project in eclipse like normal.
Then drag the contents of the src folder from GitHub into the folder directory within eclipse.
Then selecting link in the pop up window.
I think it works by thinking its a new project but saves everyone done under the GitHub folder, for GitHub to work.
I'm a new Java developer I've only ever done PHP in the past and all the functions I needed to use were built into PHP. This doesn't seem to be the case with Java though!
I downloaded Eclipse and wrote a hello world and some other things and everything is working great for me! I downloaded httpclient (from http://hc.apache.org/downloads.cgi) and I can see two files, httpclient-4.0.2.jar and httpmime-4.0.2.jar but I'm not sure how I can add them into my program and start using them to build something with!
Any help would be appreciated so much and I'm sorry if this comes off as a trolling question of sorts, I'm really new to this!
Hi in any environment weather it be eclipse, jdeveloper, intellj, netbeans or commandline you need to add the downloaded jar files to the classpath/libraries. This is so the JVM know where to look for external libraries.
In Eclipse in the project explorer right click on the root project and go to properties. Then in the left hand list go to Java build path, once selected go to libraries then go to add external libraries. Once selected they should appear in the list next to the button.
hope this helps.
In Eclipse, right click on your project in the Package Explorer and choose Build Path > Add External Archives... Navigate to your jar files, select them, and click Open.
I'm completely new to Eclipse/Java/Android programming, so this might sound like a dumb question, but I can't open the project I was working on last week... it's the "HelloWorld" project.
I'm very familiar with Visual Studio so I've been looking for something like a project file/solution or a way to open a directory in Eclipse, but I'm having no luck and am completely lost.
Any help is appreciated!
Can you try File->Import and then choose Existing Projects into Workspace and then select the directory with your HelloWorld project?
Looks like I had it checked not to show closed projects.
Eclipse will look into the .project file in your project directory and see the original project name, which may be the same as another project. This can happen if you build a new project using some old code.