Can I import a source folder from Eclipse into Flash Builder? - java

I have the source folder from a friend's Android app and I am going to do all of the design for the app. If I could import the folder that he gave me from Eclipse, it would be easier to create a nice UI for the app.
Is this possible? If not, can I load the XML files into Flash Builder to make the UI?
EDIT: To clarify, I have a project file that I can open in Eclipse. I want to edit the appearance of the project using Flash Builder without interfering with the application's functionality.

I'm not entirely understanding if the first part is asking to import it back into Eclipse, if this is the case, then yes you can.
You can go about this by opening up Eclipse, then go to File > Import... > General > Existing Projects into Workspace. Once in there, you need to navigate to the source folder's location and click on the folder containing all of your project (bin, res, assets, gen, etc.) and then you should see a project appear in the window below the browse buttons. Make sure to check (click) the project you want to import and hit finish.
It should appear in your workspace now in Eclipse.
You can then just treat it as a normal project.

Related

Moving projects from eclipse workspace

I am using eclipse and I moved some projects(Projects with the name Mc Bot) in my workspace to another folder. However, when I open eclipse with my workspace, projects still appear like this in package explorer.
How can I fix that?
You cannot move project folders on your hard drive and expect Eclipse to update automatically. The folders contain metafiles that Eclipse needs to properly load the workspace on startup.
It is better to either rename/move the projects within Eclipse.
Or to remove and then re-add them to Eclipse's project management.
However, make sure to not accidentally delete the files from disk, when removing the old project from Eclipse. There is a checkbox within the confirmation dialog that - in this case - you should not check.
Especially when you are working with a code versioning system (such as Git or SVN), it is important to rename your files and folders within the code editor. Otherwise your repository might get out of sync.
I would just delete it here in eclipse (don't mark the checkbox to delete on disk) and then reimport it. So in this view from the screenshot just open the context-menu, say import and chose your projects again.

Installing and Running a project in Eclipse

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.

having issue with eclipse library

I am new to Droid development using Eclipse. I am trying to use PinnedSectionListView found here: https://github.com/beworker/pinned-section-listview
What I need to understand is how do I import that into my project? Do I need to load the project and create a .jar? I thought to use libraries like the one here it needed to be a .jar lib. I am a bit confused on how to use github libs like that. Also, not a big deal, I am fluent in c/c++/c#/objective c, but I am new to java. Code I can handle, eclipse ide, jar files, etc. not so much.
Any steps would be helpful, or a pointer to an example. Thanks for any help.
You have to download the library folder! Then import it in your Eclipse from the File menu! After you have done this, you have to right click your project and reference the imported library as a library project in your original project!
http://www.androidbegin.com/tutorial/implementing-actionbarsherlock-in-android/
This is a link for another library but the steps are the same.
Download and unpack the zip file
In Eclipse's Package Explorer, right click and select "Import..."
In the Import dialog, select "Existing Android Code into Workspace"
Select the dir of the unpacked file, and click "Finish", the library is now part of your workspace, which leaves the last thing to do:
Right click on your primary project and select "Properties", in the Properties dialog, select "Android" in the left panel, then click on "Add" button on the right side of the panel, select the library, click "Ok". Now you are ready to use its classes and resources.

How to seperate Eclipse workspace as android and normal Java

in eclipse ı have android apps and java web apps together in my workspace . I want to seperate them 2 different workspace so ı created new Folder workspaceAndroid and copied android apps into this folder manually but all projects contains path or jar errors now . So , how can ı seperate them in correct way ?
First you need to Export android projects into a archive. For that choose File -> Export -> General - Archive File. Then select all Android projects you want to move, give a name of archive file and press finish.
Then you need to switch workspace using File -> Switch Workspace -> Other. Choose new workspace directory and press ok.
Now you can import your projects using File - Import - General - Existing Projects into Workspace -> choose Select Archive File option, choose your zip file and press finish.
The projects must be there.
To delete projects from workspace you need to switch back to the old workspace. Then select projects, do right mouse click and choose Delete. Don't forget to set a check on Delete project content on disk checkbox. Otherwise projects' content will stay in the workspace folder.
Don't do it manually, create a new workspace for java projects and then select and import java only projects and check on of copy them into workspace using eclipse only. Workspace has .metadata folder that might be creating problem for u. doing this will solve your problem.
What you are looking for is so called "Working sets". Press the little downwards pointing arrow in the package explorer, and press "Select Working Set...". Press "New..." and select your type of the working set, and simply add the project you want to belong to that set!
When you are done with that, you can press the same arrow as beror, and press "Select Working Set" to choose when you want to use the android- or java-projects.

trying to port eclipse project from mac lap top to windows server

I'v been making a simple target card reading server on eclipse, on my mac portable. I have a windows server set up, which I would like to install it within eclipse and test run it live.
I can't figure out how to move the project over, this is what i did
1. on mac portable selected export, general and archive, saved it as card game.zip.
On my server, I did import from the file menu, deleted general, zip file and selected game.zip.
it got added to my first project, not as a separate project.
I then tried to create a empty project and right click on it, then select import. My game crd a project files where added to this project. But when I tried to run it I got a selection does not contain main type error.
There must be a way to do this....
I believe you're doing everything right up to the import, at which point you want Import > General > Existing Project into Workspace. In that dialog, there is an option (at the top) to import from an archive file.

Categories