project

Convert Android project to 'regular' Java project inside Eclipse?

怎甘沉沦 提交于 2019-12-19 11:47:20
问题 Ive inherited some code which started out as an Android project but really is just an API to be used by other applications. Hence, the 'build' process usually just produces a JAR file. The problem Im having is that I get errors from the Android build tools in my console which seem to fire everytime I make a change to some files. How do I fix that? Im using Eclipse 3.5 (Galileo). 回答1: Check run configuration and remove any reference to the Android Sdk. Create a new Java project and copy

NullPointerException when trying to use image resource

一世执手 提交于 2019-12-19 10:48:19
问题 I made a game in Java. It works completly fine in Eclipse. I exported it as a Runnable JAR. When double-clicking on it's icon, it doesn't open. So I tried running the JAR from the command line. I get a NullPointerException error, in a line of code that's trying to retrieve an image resource (as I said, it works fine inside Eclipse). This is the line of code where the error happens: ball = new ImageIcon(this.getClass().getResource("sprites/ball.PNG")); I have no idea what's wrong. Here is the

Library project build version higher than projects using it

大兔子大兔子 提交于 2019-12-19 06:14:12
问题 I am using Android Library Project. I have set my library project build target to say 11 to use api 11 and to have forward compatibility and I am putting check for min sdk version so that app will not crash when run on os < 11 My other projects have build target set to 8 so I want to know is it the correct way to set library project build version higher than the projects with lower build target going to use it? right now I haven't observed any crash. Just wanted to know can the library with

Eclipse: fully remove an old project?

南楼画角 提交于 2019-12-19 05:05:09
问题 I run eclipse on Ubuntu 11.10. I originally created a project in folder foo . I subsequently deleted that project to re-organise folders and I now want to create a new project in folder foo/bar but Eclipse won't let me because it says the the new directory is a sub-directory of an existing project. How can I force Eclipse to forget about the original project so that I can create the new one? 回答1: In general, the deleting the project from the "/.metadata/.plugins/org.eclipse.core.resources/

When I unload projects in visual studio, where does VS save this setting?

人盡茶涼 提交于 2019-12-19 05:03:02
问题 I checked the solution file and the project file, and can not find anything related to this setting. When people get latest version from TFS source control, they always see the 'loaded' status, which is not really what I want. 回答1: This information is stored in the solution user options file (.suo) which you can find in the same directory as the solution file. As the name implies this is user specific information which means sharing this across the team will be difficult because then everyone

Exclude files from TFS via project file

℡╲_俬逩灬. 提交于 2019-12-18 23:49:11
问题 I am searching for a possibility to exclude some files of my generated VS project file from TFS. I know that it is possibly afterwards with the .vspscc file. But what i want is, that i can tell the VS project file, that some of it's files are not allowed to get added to TFS, before I add the project to TFS. 回答1: There are several levels of excluding files in TFS: Manually by excluding a file or folder on the check-in dialog. Manually by excluding a file or folder on the Add items to Folder

Error while removing project dependency in VS2010

你说的曾经没有我的故事 提交于 2019-12-18 13:53:06
问题 I have a large solution with number of projects. Some the projects depend on others (never a circular dependency though). When I tried to remove a dependency of a project, I am getting an error message like "The dependency was added by the project system and cannot be removed". What is the cause for this error? How I can solve this? 回答1: I sometimes get this problem when I try to manually edit projects/solutions generated by our CMake system. I solve it manually: Open the dependent .vcproj

New iPhone App - How to Choose which Xcode Template to Use?

天大地大妈咪最大 提交于 2019-12-18 12:14:13
问题 In general I'd like to understand which templates to use when, when I'm making new iPhone apps. Could anyone offer some guidelines, tips, rules-of-thumb? Also, how much should I agonize over this? If I start off with the wrong one, can I add the missing pieces manually, is it hard? For reference here are the choices I'm seeing: Navigation-Based Application OpenGL ES Application Tab Bar Application Utility Application View-Based Application Window-Based Application 回答1: Start with your

Adding a C/C++ nature to an Eclipse project

左心房为你撑大大i 提交于 2019-12-18 12:04:42
问题 Does anybody know how to add a C/C++ project nature to an Eclipse project through the UI ? I'm importing a project and working with legacy code that was originally started in Visual Studio 4 and I'd really like to be able to make as much use of Eclipse's helpers as possible. 回答1: Assuming you've got the CDT plugin installed Right-click on the project. Select: New -> Other Under C/C++, select "Convert to a C/C++ project" 回答2: Create a new C project using the existing source code. 来源: https:/

Adding a C/C++ nature to an Eclipse project

回眸只為那壹抹淺笑 提交于 2019-12-18 12:04:13
问题 Does anybody know how to add a C/C++ project nature to an Eclipse project through the UI ? I'm importing a project and working with legacy code that was originally started in Visual Studio 4 and I'd really like to be able to make as much use of Eclipse's helpers as possible. 回答1: Assuming you've got the CDT plugin installed Right-click on the project. Select: New -> Other Under C/C++, select "Convert to a C/C++ project" 回答2: Create a new C project using the existing source code. 来源: https:/