eclipse mvn installinstall new software出问题了

eclipse安装ADT出错&&&&&&&&&&&&&&&&&&配置eclipse问题
Android 配置eclipse问题
安装ADT,遇到问题:
Cannot complete the install because one or more required items
could not be found.
&&Software being installed:
Android Development Tools 10.0.1.v-110841
(com.android.ide.eclipse.adt.feature.group
10.0.1.v-110841)
&&Missing requirement: Android
Development Tools 10.0.1.v-110841
(com.android.ide.eclipse.adt.feature.group
10.0.1.v-110841) requires 'org.eclipse.gef 0.0.0' but
it could not be found
找到一个解决方法,分享给大家:
1.启动eclipse,点击window——&preferences——&install/update——&available
software sites,点击Add,把如下几个网址添加过去
Eclipse GEF&
Eclipse EMF& &&
Eclipse GMF& &&
Eclipse Webtools&&
Google eclipse Plugin&&
2.重新安装ADT插件
问题二 
eclipse.buildId=M3
java.version=1.6.0_18-ea
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32,
Command-line arguments: &-os win32 -ws win32
-arch x86 -data D:\new
Wed Mar 30 08:52:08 CST 2011
Failed to load properties file for project ‘MenuTest’
eclipse.buildId=M3java.version=1.6.0_18-eajava.vendor=Sun
Microsystems Inc.BootLoader constants: OS=win32, ARCH=x86,
WS=win32, NL=zh_CNCommand-line arguments: &-os
win32 -ws win32 -arch x86 -data D:\new
ErrorWed Mar 30 08:52:08 CST 2011Failed to load properties file
for project ‘MenuTest’
解决方法 &:设置ANDROID_SDK_HOME环境变量(android
sdk安装目录)可以解决。
During installation, there's an error
about requiring org.eclipse.wst.sse.ui. How do I fix that?
The Google Plugin for Eclipse depends on other specific Eclipse
components, such as . Your
installation of Eclipse may not yet include all of them, but they
can be easily installed by following these instructions.
Eclipse 3.6 (Helios)
Select Help & Install New
Software...
Click the link for Available Software
Ensure there is an update site named Helios.
If this is not present, click Add... and enter
http://download.eclipse.org/releases/helios for the
N Eclipse should download and install the plugin's
dependencies.
Eclipse 3.5 (Galileo)
Select Help & Install New
Software...
Click the link for Available Software
Ensure there is an update site named Galileo.
If this is not present, click Add... and enter
http://download.eclipse.org/releases/galileo for the
N Eclipse should download and install the plugin's
dependencies.
Eclipse 3.4 (Ganymede)
Select Help & Software
Updates...
Select the Available Software tab.
Click Manage Sites...
Make sure the Ganymede Update Site is in your list of Available
Software Sites, and checked. If it's not in the list, click
Add... to add it. The Ganymede Update Site's URL
is http://download.eclipse.org/releases/ganymede/
N Eclipse should download and install the plugin's
dependencies.
& 转载于:
已投稿到:
以上网友发言只代表其个人观点,不代表新浪网的观点或立场。<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
您的访问请求被拒绝 403 Forbidden - ITeye技术社区
您的访问请求被拒绝
亲爱的会员,您的IP地址所在网段被ITeye拒绝服务,这可能是以下两种情况导致:
一、您所在的网段内有网络爬虫大量抓取ITeye网页,为保证其他人流畅的访问ITeye,该网段被ITeye拒绝
二、您通过某个代理服务器访问ITeye网站,该代理服务器被网络爬虫利用,大量抓取ITeye网页
请您点击按钮解除封锁&随笔 - 1130&
文章 - 32&评论 - 157&trackbacks - 0
http://www3.ntu.edu.sg/home/ehchua/programming/howto/EclipseCpp_HowTo.html
Eclipse is an open-source Integrated Development Environment (IDE) supported by IBM. The mother site is @ . Eclipse is popular for Java project development. It also supports C/C++, PHP, Python, Perl, and other web project developments via extensible plug-ins. Eclipse is cross-platform and runs under Windows, Linux and Mac OS.
1.&&How to Install Eclipse C/C++ Development Tool (CDT) 8.1.2 for Eclipse 4.2.2 (Juno)
Step 0: Install MinGW GCC or Cygwin GCC
To use Eclipse for C/C++ programming, you need a C/C++ compiler. On Windows, you could install either MinGW GCC or Cygwin GCC. Choose MinGW if you are not sure, because MinGW is lighter and easier to install, but having less features.
MinGW GCC: Read "".
Cygwin GCC: Read "". Make sure that you select "gcc", "g++", "gdb", and "make" packages under the "Devel" (Development) category - these packages are not part of the default installation.
Step 1: Install Eclipse C/C++ Development Tool (CDT)
Two ways to install CDT, depending on whether you have previously installed an Eclipse:
If you have already installed "Eclipse for Java Developers" or other Eclipse packages, you could install the CDT plug-in as follows:
Launch Eclipse &rA Help &rA Install New Software &rA In "Work with" field,
pull down the drop-down menu and select "Kepler -
http://download.eclipse.org/releases/kepler" (or juno for Eclipse 4.2;
or helios for Eclipse 3.7).
In "Name" box, expand "Programming Language" node
&rA Check "C/C++ Development Tools"
&rA "Next" &rA ... &rA "Finish".
If you have not install any Eclipse package, you could download "Eclipse IDE for C/C++ Developers" from , and unzip the downloaded file into a directory of your choice.
Step 2: Configuration
You do NOT need to do any configuration, as long as the Cygwin or MinGW binaries are included in the PATH environment variable. CDT searches the PATH to discover the C/C++ compilers.
2.&&Writing your First C/C++ Program in Eclipse
2.1&&C++ Program
Step 0: Launch Eclipse
Start Eclipse by running "eclipse.exe" in the Eclipse installed directory.
Choose an appropriate directory for your workspace (i.e., where you would like to save your works).
If the "welcome" screen shows up, close it by clicking the "close" button.
Step 1: Create a new C++ Project
For each C++ application, you need to create a project to keep all the
source codes, object files, executable files, and relevant resources.
To create a new C++ project:
Choose "File" menu &rA "New" &rA Project... &rA C/C++ &rA C++ project.
The "C++ Project" dialog pops up.
In "Project name" field, enter "FirstProject".
In "Project Types" box, select "Executable" &rA "Empty Project".
In "Toolchains" box, choose your compiler, e.g., "Cygwin GCC" or "MinGW GCC" &rA Next.
The "Select Configurations" dialog appears. Select both "Debug" and "Release" &rA Finish.
Step 2: Write a Hello-world C++ Program
In the "Project Explorer" (leftmost panel) &rA
Right-click on "FirstProject" (or use the "File" menu) &rA
New &rA Source File.
The "New Source File" dialog pops up.
In "Source file" field, enter "Hello.cpp".
Click "Finish".
The source file "Hello.cpp" opens on the editor panel (double-click on "test.cpp" to open if necessary). Enter the following codes:
#include &iostream&
int main() {
cout && "Hello, world!" &&
If "Unresolved Inclusion Error"
If error "unresolved inclusion" appears next to #include statement, the "include paths for headers" are not set properly. Select "Project" menu &rA Properties &rA C/C++ General &rA Paths and Symbols &rA In "Includes" tab:
For Cygwin GCC:
"Add" the following directories to "GNU C", where $CYGWIN_HOME is your Cygwin installed directory:
$CYGWIN_HOME\lib\gcc\i686-pc-cygwin\4.5.x\include
$CYGWIN_HOME\lib\gcc\i686-pc-cygwin\4.5.x\include-fixed
$CYGWIN_HOME\usr\include
$CYGWIN_HOME\usr\include\w32api
"Add" the following directories to "GNU C++", where $CYGWIN_HOME is your Cygwin installed directory:
$CYGWIN_HOME\lib\gcc\i686-pc-cygwin\4.5.x\include\c++
$CYGWIN_HOME\lib\gcc\i686-pc-cygwin\4.5.x\include\c++\i686-pc-cygwin
$CYGWIN_HOME\lib\gcc\i686-pc-cygwin\4.5.x\include\c++\backward
$CYGWIN_HOME\lib\gcc\i686-pc-cygwin\4.5.x\include
$CYGWIN_HOME\lib\gcc\i686-pc-cygwin\4.5.x\include-fixed
$CYGWIN_HOME\usr\include
$CYGWIN_HOME\usr\include\w32api
For MinGW GCC:
"Add" the following directories to "GNU C", where $MINGW_HOME is your MinGW installed directory:
$MINGW_HOME\lib\gcc\mingw32\4.6.x\include
$MINGW_HOME\include
$MINGW_HOME\lib\gcc\mingw32\4.6.x\include-fixed
"Add" the following directories to "GNU C++", where $MINGW_HOME is your Cygwin installed directory:
$MINGW_HOME\lib\gcc\mingw32\4.6.x\include\c++
$MINGW_HOME\lib\gcc\mingw32\4.6.x\include\c++\mingw32
$MINGW_HOME\lib\gcc\mingw32\4.6.x\include\c++\backward
$MINGW_HOME\lib\gcc\mingw32\4.6.x\include
$MINGW_HOME\include
$MINGW_HOME\lib\gcc\mingw32\4.6.x\include-fixed
NOTE: To find the header paths, you can do a search on headers such as "stdio.h" (for C) and "iostream" (for C++) under the Cygwin or MinGW installed directory.
Step 3: Compile/Build
Right-click on the "FirstProject" (or use the "Project" menu) &rA choose "Build Project" to compile and link the program.
Step 4: Run
To run the program, right-click on the "FirstProject" (or anywhere on the source "test.cpp", or select the "Run" menu) &rA Run As &rA Local C/C++ Application &rA (If ask, choose Cygwin's gdb debugger) &rA The output "Hello, world!" appears on the "Console" panel.
NOTE: You need to create a new C++ project for EACH of your programming problems. This is messy for writing toy programs!
2.2&&C Program
Follow the same steps as above. Create a "C Project" (instead of "C++ Project"). Try the following Hello-world program (called "Hello.c").
#include &stdio.h&
int main() {
printf("Hello, world!\n");
2.3&&C++ Program with Makefile
In the previous examples, we use so-called managed-make where Eclipse automatically generated a makefile to build the program. We can also choose to write our own makefile for complete control of the building process.
Step 1: Create a C++ Makefile Project
From "File" menu &rA New &rA Project... &rA C/C++ &rA C++ project &rA In "Project name", enter "HelloCppMakefile" &rA In "Project type", choose "Makefile Project ", "Empty Project" &rA In "Toolchains", choose "Cygwin GCC" or "MinGW GCC". Ignore the warning message.
Step 2: Write a C++ Program
Right-click on the project &rA New &rA Source File &rA In "Source file", enter "Hello.cpp" &rA Enter the following source codes:
#include &iostream&
int main() {
cout && "Hello, world!" &&
Step 3: Write a Makefile
Right-click on the project &rA New &rA File &rA In "File name", enter "makefile" &rA Enter the following codes. Take note that you need to use a Tab (NOT Spaces) for the indent.
all: Hello.exe
rm Hello.o Hello.exe
Hello.exe: Hello.o
g++ -g -o Hello.exe Hello.o
Hello.o: Hello.cpp
g++ -c -g Hello.cpp
Step 4: Build the Project
Right-click on the project &rA Build Project.
Step 5: Run the Program
Right-click on the project &rA Run As &rA Local C/C++ Application.
[TODO] Write a makefile to compile toy-programs under one project.
3.&&Read the Documentation
At a minimum, you SHOULD browse through Eclipse's "Workbench User Guide" and "C/C++ Development User Guide"
- accessible via the Eclipse's "Welcome" page or "Help" menu. This will
save you many agonizing hours trying to figure out how to do some
things later.
4.&&Debugging C/C++ Programs in Eclipse CDT
Able to use a graphics debugger to debug program is crucial in
programming. It could save you countless of hours guessing on what went
The following program computes and prints the factorial of n (=1*2*3*...*n).
The program, however, has a logical error and produce a wrong answer for n=20 ("The Factorial of 20 is -" - a negative number?!).
#include &iostream&
int main() {
int n = 20;
int factorial = 1;
for (int i = 1; i &= i++) {
factorial *=
cout && "The Factorial of " && n && " is " && factorial &&
The Factorial of 20 is -
Let us use the graphic debugger to debug the program.
A breakpoint suspends program execution for you to examine the internal states (e.g., value of variables) of the program. Before starting the debugger, you need to set at least one breakpoint to suspend the execution inside the program. Set a breakpoint at main() function by double-clicking on the left-margin of the line containing main(). A blue circle appears in the left-margin indicating a breakpoint is set at that line.
Right click on the project (or use the "Run" menu) &rA "Debug As" &rA "Local C/C++ Application" &rA choose "Yes" to switch into "Debug" perspective (A perspective is a particular arrangement of panels to suits a certain development task such as editing or debugging). The program begins execution but suspends its operation at the breakpoint, i.e., the main() function.
As illustrated in the following diagram, the highlighted line (also pointed to by a blue arrow) indicates the statement to be executed in the next step.
Click the "Step Over" button (or select "Step Over" from "Run" menu) to single-step thru your program. At each of the step, examine the value of the variables (in the "Variable" panel) and the outputs produced by your program (in the "Console" Panel), if any. You can also place your cursor at any variable to inspect the content of the variable.
Single-stepping thru the program and watching the values of internal variables and the outputs produced is the ultimate mean in debugging programs - because it is exactly how the computer runs your program!
As mentioned, a breakpoint suspends program execution and let you examine the internal states of the program. To set a breakpoint on a particular statement, double-click the left-margin of that line (or select "Toggle Breakpoint" from "Run" menu).
"Resume" continues the program execution, up to the next breakpoint, or till the end of the program.
"Single-step" thru a loop with a large count is time-consuming. You could set a breakpoint at the statement immediately outside the loop (e.g., Line 12 of the above program), and issue "Resume" to complete the loop.
Alternatively, you can place the cursor on a particular statement, and issue "Run-To-Line" from the "Run" menu to continue execution up to the line.
"Terminate" ends the debugging session. Always terminate your current debugging session using "Terminate" or "Resume" till the end of the program.
Click the "C/C++" perspective icon on the upper-right corner to switch back to the "C/C++" perspective for further programming (or "Window" menu &rA Open Perspective &rA C/C++).
I can's stress more that mastering the use of debugger is crucial in programming. Explore the features provided by the debuggers.
Other Debugger's Features
You can modify the value of a variable by entering a new value in the "Variable" panel. This is handy for temporarily modifying the behavior of a program, without changing the source code.
To debug a function, you need to use "Step-Into" to step into the first statement of the method. You could use "Step-Return" to return back to the caller, anywhere within the method. Alternatively, you could set a breakpoint inside a method.
NOTE: If you receive error message "Can't find a source file at /cygdrive/c..." during debugging, you need to configure a mapping between "/cygdrive/c" and "c:/" (assuming that your program in kept in drive c. From "Window" &rA "Preferences" &rA "C/C++" &rA "Debug" &rA "Common Source Lookup Path", select "Add" &rA "Path Mapping".
5.&&Tips & Tricks
Read Eclipse for Java's
for general tips in using Eclipse.
5.1&&C/C++ Software Development Using GCC
You can find the commands used in Eclipse CDT for build the project at "&workspace&\.metadata\.plugins\org.eclipse.cdt.ui\global-build.log".
When building the program, the compiler needs the header files to comp the linker needs the libraries to resolve external references. The compiler searches the "include-paths" for the headers specified in #include directives. The linker searches the "library-paths" for "libraries" needed to link the program. In GCC, include-path is specified via -Idir option or environment variable CPATH. The library-path is specified via -Ldir option, or environment variable LIBRARY_PATH. The library libxxx.a is specified via -lxxx option (lowercase letter 'l', without the prefix lib and .a extension).
In Eclipse CDT, you can set the include paths, library paths and
libraries by right-click on the project
&rA Properties &rA C/C++ General
Paths and Symbols &rA Under tabs "Includes", "Library Paths" and
"Libraries". The settings are applicable to the selected project only.
To set the include paths and library paths for all the projects, set the environment variables CPATH and LIBRARY_PATH. In Eclipse, choose "Window" &rA Preferences &rA C/C++ &rA Build &rA Environment.
Alternatively, copy the headers and libraries into system directories, and you can omit the include-paths and library-paths.
For Cygwin, you
need to install gcc, g++, gdb, make (under Devel category) and opengl,
freeglut (under graphics category). The headers gl.h, glu.h, glut.h are kept in $cygwin\usr\include\w32api\GL. Use #include &GL/gl__.h& to include the headers. The libraries libopengl32.a libglu32.a and libglut32.a are kept in $cygwin\lib\w32api. To specify these libraries in linking, use -lopengl32 -lglu32 -lglut32 options (without the lib prefix and .a extension).
Download SDL from . Choose Development Libraries &rA win32 &rA
mingw32 &rA Unzip. Copy the headers directory SDL (under include) to $cygwin\usr\include\w32api; copy all the library files in lib into $cygwin\lib\w32api; copy the run-time library SDL.dll (under bin) into Windows/System32. In your program, include these two headers: #include &SDL/sdl.h& and #include &SDL/sdl_opengl.h&. For linking, add these libraries: -lSDL -lSDLmain.
Comment Directive: pragma comment directive, e.g., #pragma comment(lib, "opengl32.lib"), is often used to include a particular library (same as -l option). This system-dependent directive works on Windows's compiler, but NOT in GCC.
There is a problem with GNU make (at $Cygwin\bin\make.exe). Replaced by this copy @ .
The gcc library uses buffered I/O (in accordance with the C
Specification). Output is only written out to the output stream after a
newline character. You can flush the output with a fflush().
If you name your C/C++ project with a name including the word "setup", then the resultant "*setup*.exe"
will trigger UAC (User Authorization Control) and require administrator
right to run. (This took me a few hours to figure out! Try renaming a "hello.exe" to "mysetup.exe".)
6.&& File I/O in Eclipse
Refer to Eclipse for Java's .
REFERENCES & RESOURCES
Eclipse's "C/C++ Development Tool User Guide", accessible via Eclipse's Help menu.
GCC (GNU compilers) mother site @ ; GCC manual @ .
An Introduction to GCC @ .
阅读(...) 评论()Help & Install New Software
eclipse3.4 里面没有这个选项怎么处理 - Eclipse当前位置:& &&&Help & Install New Software
eclipse3.4 里面Help & Install New Software
eclipse3.4 里面没有这个选项怎么处理&&网友分享于:&&浏览:1006次Help & Install New Software
eclipse3.4 里面没有这个选项怎么办我想安装m2eclipse按照http://m2eclipse.sonatype.org/installing-m2eclipse.html的手顺第一步是 Select Help & Install New Software. This should display the &Install& dialog.但是我没有Install New Software。。。只有Updates选项 我在Updates选项里面 追加 http://m2eclipse.sonatype.org/sites/m2e但是出错了 消息大概是找不到这个url。。。我该怎么办。。。。------解决方案--------------------
确认你的Eclipse能联网,没有被防火墙Block。再不行就换3.5了...
12345678910
12345678910
12345678910 上一篇:下一篇:文章评论相关解决方案 12345678910 Copyright & &&版权所有

我要回帖

更多关于 eclipse mvn install 的文章

 

随机推荐