w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Eclipse Build Error "A class file was not written. The project may be inconsistent, if so try refreshing this project and building it"
We are using Eclipse here too and have to handle a workspace with more than 200 plug-ins. Every now and then people have similar problems with their workspace and inconsistencies reported in a weird way by Eclipse. What people here usually do is (next step only in case previous step didn't help): - trying to ContextMenu->Team->Clean/Refresh the whole workspace - creating a new workspace and check out all necessary files from the repository - reinstalling Eclipse to a new directory From my experience after using the Eclipse IDE on a daily basis for many years, it doesn't make very much sense to waste too much time with these issues, unless they aren't solved by one of the steps above. It takes too much time to struggle with these things, while starting from scratch is done in an hour or le

Categories : Eclipse

Trouble building VS2012 project with signed ClickOnce manifest on Jenkins
I have no idea what "Jenkins" is, but I know this about certificates and ClickOnce. The certificate must be installed under the user account that is doing the build. Try importing it and use the defaults, which will import it into the user store, rather than importing it into Trusted Publishers or one of the older folders. You can see it after you import it by running certmgr.msc. We hit this when doing automated builds on our TFS server. Every year, we have to log into the account that does the builds and import the new signing certificate.

Categories : Visual Studio 2012

Trouble referencing appCompat in my project on Eclipse
Please see here on how to properly include the appcompat libraries in your Android project.

Categories : Android

Having trouble getting a library working in an eclipse project
The XML code you posted is for the configuration of the "Maven" build tool, which handles dependency resolution for you. When you never used Maven and you do not need additional libraries as dependencies I recommend let Maven be Maven and just add the library to your eclipse project configuration: Download the jar (or the source code and build it to a jar) Put the file into your project (e.g. in a "lib" directory) Right click on your project and on "build path" and "configure build path" In the upcoming dialog, go to the "libraries" tab Click on "Add jar" and choose the jar file you downloaded in the lib directory. close the dialog with "OK" or so. Now you should be able to use the classes in the library in your project. P.S.: I would like to note, that in my opinion Maven needs a li

Categories : Java

Eclipse (Kepler): Qt project as subdirectory in eclipse project
Indeed, you need to use the external tools. Add these in there: "qmake -project" and "qmake". The former is obviously not necessary if you have project file(s) already in there. You can then set the working directory, and arguments like the project file. Then you can just run the externals tools from the menu. I am not sure what you mean by "Qt makefile" and by "Eclipse not seeing it."

Categories : Eclipse

Having trouble building Qt program
Some things you could do to find out the problem: Check if it behave the same way in debug and release mode. Note that the two modes need different DLLs. Check if you are using the correct versions of the DLLs. If you installed different versions of Qt or other dependencies than there could be conflicts around DLLs that are the same but from different versions. Maybe you are in a kind of DLL Hell. You should copy your program to another PC that doesn't have Qt installed. And watch if it works properly.

Categories : C++

Trouble building MSAccess SQL query
Access requires parentheses in a FROM clause which includes more than one join, and the db engine is fussy about their positions. My guess is this FROM clause could work. I substituted a static value, 27, for strGradeID. FROM (dbo_core_profile_member AS mem INNER JOIN dbo_core_person AS p ON mem.person_id = p.person_id) LEFT JOIN ( SELECT person_id, profile_id, selected_value FROM dbo_evnt_registrant_field WHERE custom_field_id = 27 ) AS grade ON mem.person_id = grade.person_id AND mem.profile_id = grade.profile_id Whether or not I got that correct, you should try setting up your joins in a new query with the Access query designer, if possible. The designer knows where to place parentheses t

Categories : SQL

Trouble building hello_world with a makefile in Visual C++
Welp, I just deleted all of the project files and folders and retried the tutorial, making sure to follow directions more carefully. I must have missed something the first time through, because it has now completed its build successfully. I don't think it was the path because I didn't change anything about that. The only thing I know I changed for sure was the output to hello_world.nds rather than hello_world.exe. I imagine that might have caused some issues, but maybe not. I'd still love links to any resources that might be able to excel my Visual C++ learning!

Categories : C++

What's the use of the configuration in classpath for Eclipse project: "org.eclipse.jdt.junit.JUNIT_CONTAINER/4"
Your project needs to use JUnit libraries to run JUnit tests. The entry in CLASSPATH specifies the location of these libraries; in this case it's JUnit 4 from Eclipse. You can use some other version (3, for example) or libraries which are not part of Eclipse. To add this library you can use Eclipse UI. Open project properties, go to Java Build Path, then open Libraries tab. Then click Add Library, you'll get a list of libraries where you can choose JUnit. You have to do it every time you create a new project with JUnit tests.

Categories : Java

Java Eclipse open 2 tabs eclipse.exe and project
i was able to solve my problem adding the line to the FIRST LINE in eclipse.ini file something like -vm C:/Program Files/Java/jdk1.7.0_21/jre/bin/javaw.exe yes in 2 lines not in a single line. my eclipse.ini is like this ready now. -vm C:/Program Files/Java/jdk1.7.0_21/jre/bin/javaw.exe -startup plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.2.R36x_v20101222 -product org.eclipse.epp.package.jee.product --launcher.defaultAction openFile --launcher.XXMaxPermSize 256M -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m --launcher.defaultAction openFile -vmargs -Dosgi.requiredJavaVersion=1.5 -Xms40m -Xmx512m i hope really helps somebody.

Categories : Java

Building 64 bit dll with MinGW 32 bit in Eclipse
You can set -m64 switch to compile a 64 bit lib. These ‘-m’ switches are supported in addition to the above on x86-64 processors in 64-bit environments. -m32 -m64 -mx32 Generate code for a 32-bit or 64-bit environment. The -m32 option sets int, long, and pointer types to 32 bits, and generates code that runs on any i386 system. The -m64 option sets int to 32 bits and long and pointer types to 64 bits, and generates code for the x86-64 architecture. For Darwin only the -m64 option also turns off the -fno-pic and -mdynamic-no-pic options. The -mx32 option sets int, long, and pointer types to 32 bits, and generates code for the x86-64 architecture. ( source: http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html ) Example: 32 Bit: gcc -

Categories : Eclipse

How do you include files from a scala project in eclipse in a java project in netbeans
If you are developing a library in your Scala application, i would suggest to use sbt and package the library as a jar and import that jar to your java project. You will have to define a build file in sbt. I am not sure whether you already defined it and use the sbt package command. sbt package Try using sbt

Categories : Java

NoSuchMethodError occuring in normal java project and not in J2EE project ( Eclipse)
NoSuchMethodError happens when you write code for one version of a class and then run it with another that does not have a the method that you use. From the documentation: Thrown if an application tries to call a specified method of a class (either static or instance), and that class no longer has a definition of that method. Normally, this error is caught by the compiler; this error can only occur at run time if the definition of a class has incompatibly changed. Make sure that you have the same versions of the library that is giving the error in both environments. If the error is thrown for a method that you wrote yourself you have a mixture of classes from different builds. Try deleting all class files and doing a clean build.

Categories : Java

java servlet project and android library project in eclipse - NoClassDefFoundError
First of all - I believe Java Web Project will not work with any of Android specific classes due to many reasons. If your MonitoringModel contains some Java code that you want to share between Android and Web application you can extract it to separate Java project and use a Link Source option in Properties->Build Path to link it to both projects.

Categories : Android

Eclipse: How to import git project as library for Android Project which has to be pushed to Bitbucket
If the library is a .jar file, you can simply paste it into the libs folder of your app. Android should automatically add it to the build path. As far as pushing/pulling from BitBucket goes, as long as you add the .jar file in git the library will be committed like any other file.

Categories : Android

Unable to acces files of other project in a eclipse java project
Make your resources folder also as a source folder. Select Project A, go to project > properties, under java build path> source tab, add resources folder. This will make sure all your files available in resources are copied to bin folder and can be referred as classpath resource.

Categories : Java

Creating a Maven Artifact from (Eclipse) Project, and Generating New Project from it
You need to run the archetype plugin from within your original project to generate an archetype descriptor. Here is an example of how to do this. The complete steps are listed here: http://hello-its-crazy.blogspot.in/2012/08/steps-to-create-maven-archetype-from.html

Categories : Java

Convert an Eclipse "Makefile project from existing code" to an AVR project
Close the project and add the following to the .project file: <nature>de.innot.avreclipse.core.avrnature</nature> This goes at the end of the <natures> section in that XML file. Re-open the project and the AVR nature will have been added, and you can then see the AVR options. Source.

Categories : Eclipse

how to set eclipse not delete some files during building
The solution is here. To summarize (and complement): Copy your external (e.g., libexternal.so) library (or libraries) to another folder inside your 'jni' folder; for example 'myproject/jni/prebuilt'. Add the following block to your existing 'jni/Android.mk' (one block for each external library): include $(CLEAR_VARS) LOCAL_MODULE := libexternal LOCAL_SRC_FILES := prebuilt/libexternal.so include $(PREBUILT_SHARED_LIBRARY) Add 'libexternal' to 'APP_MODULES' in your existing 'jni/Application.mk'. 'APP_MODULES' should already list your JNI module (e.g., 'myjnimodule'): APP_MODULES := libexternal myjnimodule Confirm that the following block exists in 'jni/Application.mk'. Use the appropriate target architecture(s): APP_ABI := armeabi-v7a The result is that, as part of the invocation

Categories : Android

build.xml in eclipse doesn't building jar
Look at the dependencies listed for the "createJar" target. <target name="createJar" depends="compileMcVpc,clean,compile"> If you call the createJar target, before it runs, ant will call compileMcVpc, clean and compile, in that order. The JAR task reads in files that are built during compileMcVpc and then deleted by clean. So by the time createJar begins doing its work, the files it needs are gone. Now what is a little interesting is that you have 2 targets, compileMcVpc, which both output java bytecode to the same directory. Given the order of your targets, I would expect that the "src" classes would be in the JAR but not the "module-thx/source" jars. Try straightening out your dependencies. To simplify and debug, maybe remove all dependencies directly in the order you want

Categories : Java

I'm having trouble understand what PhotoView's getDisplayRect() actually returns (building android photo cropping tool)
Here's the answer: RectF rect = attacher.getDisplayRect(); float viewScale = attacher.getScale(); float imageRatio = (float)size.width() / (float)size.height(); float viewRatio = (float)photoView.getWidth() / (float)photoView.getHeight(); float scale = 0; if (imageRatio > viewRatio) { // scale is based on image width scale = 1 / ((float)size.width() / (float)photoView.getWidth() / viewScale); } else { // scale is based on image height, or 1 scale = 1 / ((float)size.height() / (float)photoView.getHeight() / viewScale); } // translate to bitmap scale rect.left = -rect.left / scale;

Categories : Java

Adding eclipse project dependencies to a Maven project
I'm not sure about your question 1, but if I understand it correctly, you would like to build with Eclipse two Maven projects where A depends on B? Then you may use an Eclipse plugin like m2eclipse. For your second question, I think the solution would be to use the system scope for your dependency that you can't find in any public repository. Of course, if you can deploy the dependency on an entreprise repository it would be better.

Categories : Java

Converting Maven project to Dynamic Web Project for Eclipse
WTP version is rather old, you should add a web project features instead. Edit the .project file and write under the natures tag <nature>org.eclipse.wst.common.project.facet.core.nature</nature> <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature> and under the buildSpec tag add builders <buildCommand> <name>org.eclipse.wst.common.project.facet.core.builder</name> <arguments> </arguments> </buildCommand> <buildCommand> <name>org.eclipse.wst.validation.validationbuilder</name> <arguments> </arguments> </buildCommand>

Categories : Java

Eclipse Project description - NOT .project file - is there such a thing?
Thats an interesting question we also face. Currently there does not seem to exist a solution for this problem. The only thing that could come near to providing one is the Mylyn Intent project, as it aims to provide a comprehensive documentation on design decisions, which takes into account the inter-dependencies between plugins. This inter-dependency is exactly the problem. There exist solutions to document the purpose of java packages which is limited to the classes however. Our solution is a readme.textile embedded in the root of each plugin, providing this specific information. It would, however, be interesting to introduce the documentation used for packages for bundle documentation, which could be used to autogenerate an overview documentation.

Categories : Eclipse

Eclipse: What is the Difference Between "dynamic web project" and a "java ee web project"
According to Jboss documentation, java EE web project "generates a Java EE 6 web project with JSF 2, JPA 2, REST and CDI support enabled. In your scenario, JPA 2, REST and CDI could be more than you need. You should go with dynamic web project, which is the standard profile for web applications. You could insert additional features such as JPA later, if you need them.

Categories : Eclipse

How to add dependency to Play framework project in Eclipse from second project?
If your two projects are tightly coupled, then a multi-project build probably makes the most sense. I found this blog post from fortytwo to be very helpful when setting up a multi-project build locally. When running play eclipse you should automatically end up with multiple Eclipse project files that have the correct dependencies. If your projects are unrelated, externalized dependencies might make more sense. From your first project you can run play publish-local to deploy the jar files to your local Ivy repository; the sbt docs explain how to configure publishing to a central repository. From your second project, you can add a "groupId" % "artifactId" % "1.0-SNAPSHOT" dependency that points to this artifact. Unfortunately Eclipse doesn't play nicely with this configuration, and you

Categories : Eclipse

Building JasperMobile with Eclipse/Maven for Android
It's the issue with maven-android-plugin and latest android ADT from Google: https://code.google.com/p/maven-android-plugin/issues/detail?id=380 It was fixed in v 3.6.0, so you just need to update you android-maven-plugin to this version: <plugin> <groupId>com.jayway.maven.plugins.android.generation2</groupId> <artifactId>android-maven-plugin</artifactId> <version>3.6.0</version> ... </plugin>

Categories : Android

Building fail in Eclipse C/C++ but works well in commandline
default-parameters need to be declared in the header-file as it contains the declarations and not in the cpp file, which contains the definitions. (An additional mistake was to declare them in the definition). Found some help here. But why did it work, as I implemented it in one whole file? Answer: If default-parameter is in the cpp-file, the main file does not see it as it looks only into the header-file But if the whole code is included in just one file, the default-value can be found in the definition too. To explain myself: I considered answering my question, because it gives a better overview of the whole question and the question will now not appear as unanswered. After reading this, I think that it is the right way to do so.

Categories : C++

Warning while building project using Qt 5.1 on OSX
The solution is to call cache() in your main .pro file. Then run qmake (from the QtCreator build menu) and rebuild the project. The warning should be gone. Example .pro: cache() QT += ... //the rest of the .pro file

Categories : Qt

Building Qt project for C++11 standard
Use the qmake project file, add this line: QMAKE_CXXFLAGS += -std=c++11 LE: also 4.6.3 might not support C++11 (as far as i know 4.7 and higher support -std=c++11) so the option for the 0x features implemented might be: QMAKE_CXXFLAGS += -std=c++0x

Categories : Qt

Building executable jar file from .class files in eclipse
If you already have the .class files that you want to convert into a jar, you can make it in a cmd console window, and follow this guide provided by Oracle.

Categories : Java

error while building opencv 2.4.5 application with eclipse and ubuntu 13.04
Your linking step is specifying the libraries incorrectly. If the library is libfoo.so, then you need to say -lfoo. Replace g++ -L/usr/local/lib/ -o "Test_OpenCV01" ./src/main.o -llibopencv_calib3d -llibopencv_contrib -llibopencv_core -llibopencv_features2d -llibopencv_flann -llibopencv_gpu -llibopencv_highgui -llibopencv_imgproc -llibopencv_legacy -llibopencv_ml -llibopencv_nonfree -llibopencv_objdetect -llibopencv_photo -llibopencv_stitching -llibopencv_superres -llibopencv_ts -llibopencv_video -llibopencv_videostab with g++ -L/usr/local/lib/ -o "Test_OpenCV01" ./src/main.o -lopencv_calib3d -lopencv_contrib -lopencv_core -lopencv_features2d -lopencv_flann -lopencv_gpu -lopencv_highgui -lopencv_imgproc -lopencv_legacy -lopencv_ml -lopencv_nonfree -lopencv_objdetect -lopenc

Categories : C++

Can I check out an SVN project to a dynamic web project in Eclipse?
Have you seen Subversive. I use this plugin to checkout projects from SVN. The Subversive project is aimed to integrate the Subversion (SVN) version control system with the Eclipse platform. Using the Subversive plug-in, you can work with projects stored in Subversion repositories directly from the Eclipse workbench in a way similar to work with other Eclipse version control providers, such as CVS and Git.

Categories : Java

Eclipse bug: This project has the JPA facet, but no JPA project could be created
I had the same problem and resolved it by installing both apt and jdt connectors for m2e. Go to Window > Preferences > Maven > Discovery > Open Catalog. Look for m2e-apt and m2e-jdt-compiler. Install and then restart eclipse.

Categories : Eclipse

Using methods of a different Project (Project References in Eclipse)
You need to add the required project into the java build path of your project. Do this in eclipse: Right click on your project -> Java Build Path -> Projects (add the project you want to use)

Categories : Java

Why isn't Xcode building the second target of my project?
I left my answer in the comments section. The build scheme had the lib and target in a drop-down with the lib selected. When I changed that selection from lib to demo and rebuilt it build both targets and downloaded the demo app to my phone.

Categories : Xcode

What does this error mean when building and Android project?
This normally happens when you develop on multiple computers. When you install an application from Eclipse it uses your debug keystore to sign the application. Different computers have different debug keystores (they are just generated automatically), so you have to fully remove the app from your device before installing it again. Not sure why this would happen on the emulator, but just fully remove the app from the emulator and it should work.

Categories : Java

Ivy error while building a project in netbeans
I resolved this error by adding following to the ivysetting <property name="ivy.default.ivy.user.dir" value="${user.home}/.ivy2" /> <caches resolutionCacheDir="${user.home}/.ivy2/cache" defaultCacheDir="${user.home}/.ivy2/cache"/> this way it tries to find the cache in the specified directory. Otherwise it tries to find the cache in the ivy.jar file. This may sound stupid but it is what happens. This is the same problem as reported on ivvybeans forum but it is unresolved yet. https://code.google.com/p/ivybeans/issues/detail?id=103

Categories : Java

Is building the project manually a good way
Integrating Maven is always a good idea. That way the build process isn't IDE-specific, and developers can work on the project in different IDEs. I use NetBeans which has easy Maven integration. I know that Eclipse has a popular and well-maintained Maven plugin. Not familiar with MyEclipse, however... As for learning Maven, I would recommend this free online text: http://books.sonatype.com/mvnex-book/reference/index.html

Categories : Java

New PCL project not building on Mac/Xamarin studio
This is a bug in the current version (3.2.0) You can: use Visual Studio to build your PCL projects or switch to the alpha channel and upgrade to 3.2.1 alpha. Go to Xamarin Studio > Check for Updates > and set the update channel to Alpha. This includes a hotfix for 3.2.0 which I believe is regarding the broken PCL Update Although the alpha build (3.2.1) is able to build a new PCL project but that's all about it. For me it fails to recognise many keywords and gives nonsense errors on my actual project. If I find a fix I'll post it here.

Categories : C#



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.