w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
Getting Error while adding new MVC 4 Project
For some reason, the nuget package manager is not always installed by default. I came across this problem a few times already. What you want to do is this. First: You need to unistall npm(nuget package manager), you did this already, you can try this again, just to be sure :) Visual studio -> Tools -> Extensions and Updates -> Npm -> unistall Second: after you unistall npm, you need to install it again to use it (ofc). There are several ways to install npm: 1) install it under Visual studio -> tools -> extenstions and Updates> npm -> install 2) GOTO http://nuget.org, search the install nuget link and click on it, downlaod the .vsix file and install in on your visual studio Third: after the installation, close and re-open visual studio, hopefully you will never get that error

Categories : Asp Net

Undeclared identifier error when adding Core Data to existing Xcode project
You've set everything up correctly (note that you don't need to add the PCH to the Copy Bundle Resources build phase). The reason you're getting that error is because the _managedObjectContext ivar is not getting synthesized, because you're overriding the getter on a read-only property. You either need to change the property to be readwrite (which I wouldn't recommend), redefine the property as readwrite in a class extension, or define the ivar manually in a class extension or the implementation block.

Categories : Iphone

Error #1009: null object reference - When adding a DataGrid to a ActionScript Mobile project
Try if possible rebuilding in CS6. I'm trying to resolve a similar random error 'Error #1009: Cannot access a property or method of a null object reference' and I can only surmise that CC is the culprit. If rebuilding in CS6 solves your problem, please let me know!

Categories : Actionscript

Java reflection: How can I load a class from another project without adding that project or JAR to my classpath?
You need to implement a custom classloader, something like this Class<?> cls = new ClassLoader() { public java.lang.Class<?> loadClass(String name) throws ClassNotFoundException { byte[] a = read class bytes from known location return defineClass(name, b, 0, a.length); }; }.loadClass("test.MyClass");

Categories : Java

adding a Main JSF project's Classes to another JSF project's Properties/Libraries
I have just found a way to add classes to another web project and it worked on my side. First, is to create a .jar file of your main project's classes and add it to your JSFUnit's project properties. You can't create a .jar file for a web project using netbeans IDE, so locate your build.xml from your project's folder and add this: <target name="-post-compile"> <jar destfile="${basedir}/dist/my_web_app.jar"> <fileset dir="${basedir}/build/web/WEB-INF/classes"> </fileset> </jar>

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

Maven error: Failed to execute goal on project : Could not resolve dependencies for project
The first thing is you are having the wrong credentials for the repository ...(http://www.jets3t.org/maven2): Access denied to: http://www.jets3t.org/maven2/org/... Apart from that the repository does not look like Maven repository. And also the http://ericbottard.github.com/cloudfoundry-tomcat-7 gives a page not found which gives me the impression this is not a valid repository. Furthermore i would suggest first to use Maven Central only which means no repository entries in your pom.xml files which is the wrong way at all. Just check if it works without the repository definition. If you really need to define other repository better use a repository manager (Artifactory, Nexus, Archiva). One other thing is that i see in your pom the version which is a released versions already in c

Categories : Maven

Failed to import Gradle project error creating new project with Android Studio
I had same issue with the latest Android Studio () today, and I finally found that configuring a https proxy for Gradle can solve the issue. I only set a http proxy at the beginning. Gradle needs to sync some files via HTTPS. Use IP address instead if hostname of proxy can't work.

Categories : Android

Getting error while running AppFuse project: "Failed to execute goal on project"
As you said you are using modular appfuse application. In appfuse modular application two module exists: core and web. Web module depends to core module. So you should first install the core module. Try this code in your core module directory: mvn install

Categories : Java

Trying to create a project in a sub folder gives " overlaps the location of another project" error
1-Take for workspace "MyBook" 2-In eclipse, create a "Java project" ch-01. 3-right click on ch-01 , new, project "MyExampleApple" for each folder like ch-01 do number 2 and 3. :) This will create a subFolder in your Workspace and a project inside this subFolder. workspace subfolder project MyBook Ch-01 MyExampleApple :D

Categories : Java

VS2012 Project Xaml reports cannot find namespace error, but project compiles fine
Try download the assembly from http://scsf2012.codeplex.com/Download/AttachmentDownload.ashx?ProjectName=scsf2012&WorkItemId=1&FileAttachmentId=630895 (the link can be found at http://scsf2012.codeplex.com/workitem/1 ). PS: just copied error message to google.

Categories : C#

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

Import maven project error in mac: 'project was marked as readonly'
Navigate to project folder through console (cmd in windows, terminal in linux) type mvn eclipse:eclipse Press Enter. If it is web application, type mvn eclipse:eclipse -Dwtpversion=2.0 Press Enter. Delete the project (not physically) from eclipse and reimport.

Categories : Eclipse

adding dll to C# project
Not sure if this is it, but I've ran into a somewhat similar problem with images from ProjectA, where I want them to be shown in ProjectB. This however is not possible in Store Projects, the image should be in the same project and cannot be referenced from ProjectB to ProjectA (without returning any error). A workaround (if possible) would be to put the two projects in the same solution and add the charm flyouts (if they are images) as linked items in ProjectB... Hope this gets you towards a solution.

Categories : Xaml

Project has no project.properties file! Edit the project properties to set one error
Why don't you do this Right click on Project Root folder > properties > Java BuildPath > Library Tab Check whether any of library is missing (showing error with red cross) if yes then add this library to your project don't forget to CHECK it on Order and Export Do one more thing Right click on Project Root folder > properties > Android > set your Project Build Target check any one target Check your Android-sdk path from Window > Preference > Android

Categories : Android

Getting Error while adding Email composer plugin in phonegap "Error adding plugin com.example.abc"
The plugin needs updating for more recent versions of Cordova. You can download my Eclipse test project containing the updated plugin code and the resulting APK from here. Note that because of this this bug in Android 4.x I had to replace this line in EmailComposer.java: emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, body); with ArrayList<String> extra_text = new ArrayList<String>(); extra_text.add(body); emailIntent.putStringArrayListExtra(android.content.Intent.EXTRA_TEXT, extra_text); This works around the problem for plain text emails but won't work for HTML emails because Spanned (returned by Html.fromHtml) is not a subclass of Charsequence. When I tried casting the result of Html.fromHtml() to a string, the tags appeared as part of the text :-( Also when

Categories : Cordova

Adding area to mvc project
I think problem is that, You have Same Name controller in Both Area and and application. Like You have Home Controller in Normal Application and Also in AREA And, it is causing the Duplicate Declaration of Same Controller. The way doing that is, specifying the NAMESPACE of the Controller Like the Following : public override void RegisterArea(AreaRegistrationContext context) { context.MapRoute( "BEK_default", "BEK/{controller}/{action}/{id}", new { action = "Index", id = UrlParameter.Optional }, new string[] { "MyAppName.Areas.BEK.Controllers" } // specify the new namespace ); } If not that Case, Please post the Error Message you are getting.

Categories : Asp Net Mvc

Adding CoCosDenshion to exsiting project
Unfortunately CocosDenshion does not support of ARC so far. You have you specify not to compile your cocosDenshion files via ARC. For this go to Targets->Build Phases->Compiles Sources then find the specific file you want to remove ARC from it, once you find that file double click on it and add -fno-objc-arc as flag.

Categories : Objective C

bad mapping after adding the XmlViewResolver to the project
Don't extend AbstractController, just annotate using org.springframework.stereotype.controller eg : @Controller @RequestMapping(value = "/") public class RevenueReportController

Categories : Xml

Adding Glimpse plugin to project
Can you share the tab that you have created? That will help figure out the problem. In general through, all tabs in Glimpse are plugins - including the ones that come with the Glimpse NuGet package, so it seems that some are being picked up but not others. A few troubleshooting tips: Check your bin folder and make sure the extension assembly is there Make sure your extension class is public Turn on logging. Glimpse will tell you what any loading exceptions it may of had. Restart your web server

Categories : C#

Adding folders in maven project
Yes, maven needs to "know" what those directories mean, though a clojure build plugin may use that directory by convention - see for example: https://github.com/talios/clojure-maven-plugin

Categories : Java

Adding external .jar to androidstudio project
Change your dependencies like that dependencies { compile 'com.android.support:support-v4:13.0.+' compile 'org.beanshell:bsh:2.0b4' } You can now remove manually downloaded dependencies in libs directory. What you did was adding libraries to Android Studio project only. You should always add them to Gradle build files as only this is interpreted by Android Build Tools. There is also new version of build tools 18.0.1, you can install them and change version in you build.gradle. As far as I know they can handle aar dependencies better.

Categories : Java

Adding library project to Android.mk
You can right click on project A from Package Explorer, then click on Properties --> Java Build Path --> Projects --> Add. Add library projects B and C from here. No need to include them on Manifest. Import classes which you want to use on project A's class.

Categories : Android

Adding a custom jar to grails project
If a jar isn't available in a Maven repo and you can't add a dependency in BuildConfig.groovy, you can add it to the lib directory, but it's not automatically discovered. Run grails compile --refresh-dependencies to get it added to the classpath.

Categories : Spring

Adding Ninject to Legacy Project C#
I don't think there's a set best practice, other than use common sense - it's kind of a case by case scenario. A few important questions to ask yourself: How much effort is going to be required to create interfaces for the current classes? How much additional effort is going to be required to write proper unit tests? Will these unit tests add more value than the time spent? How long is this legacy system even going to be maintained? There's nothing worse than doing a huge upgrade (requiring testing not only by the development staff, but by the product user) to replace it in 18 months. Also, how long has this legacy system been in place without issue? There's no reason to invent work if it appears stable and really has low maintenance.

Categories : C#

Adding Morphia depandancy to a project?
The link you've posted shows how to add Morphia if you're using maven to import your dependencies. It sounds like you're not doing this, so what you (probably) want to do instead is download the latest Morphia jar (currently 0.101.0) from: http://mvnrepository.com/artifact/com.google.code.morphia/morphia Then to add it to your classpath in Netbeans, see the answer to this question: How to add a JAR in NetBeans You should then be able to use the Morphia library

Categories : Java

Adding third party reference dll's to C# project
First, make sure that the Oracle.DataAccess Assembly is indeed in place on the system. It might well be that something failed in your installation process. If it is in place, and you still get the error, you will need to install the Oracle client on this system. ODP is just a wrapper using the client. It will not enable a system without an Oracle client to access an Oracle database as far as I remember.

Categories : C#

Adding a "winmd" reference vs Adding a project reference
Tools + Options, Projects and Solutions, Build and Run. Change the "MSBuild project build output verbosity" setting to Normal. Pay attention to the build output, the messages you see after "XapPackager". Which show which files are getting added to the Xap package. Your DLL needs to be in that list. If it is not then your program will fail as described. In which case you'll need to find out why it is getting skipped. Start that by checking that the Copy Local property of the .winmd reference is True.

Categories : C#

Cant adding JS file, or any other, to a Titanium project folder
This *? indication comes from the git plugin that is shipped with Titanium Studio. It indicates that the file is not commited. To answer your "can't find file" - question, I need to know some more details about your environment (target platform, sdk version, example code, ...)

Categories : Javascript

Adding a project to Xcode Workspace like CocoaPods
I am not sure if I fully understand the question so please forgive if I miss something. I desired a similar setup, multiple projects in a workspace, but all managed by Cocoapods. I needed the projects to link to each other. My motive was promoting MVC separation, so I had an App project (view), a Controller project, a Model project. The shell of a project is here: https://github.com/premosystems/iOSMVCTemplate/tree/1.0/MVC-Example/iOS/MVCApp Here are the basic steps: Create your projects, and add a podspec to each one. (e.g. controller podspec like this one: https://github.com/premosystems/iOSMVCTemplate/blob/1.0/MVC-Example/iOS/MVCApp/Controller/ProximityController/ProximityController.podspec) Add a Podfile that links all of the podspecs together. https://github.com/premosystems/iOSMV

Categories : Xcode

Adding styles to a simple maven project
If you put a file under /resources it ends up in my-project.war/my-project.war/WEB-INF/classes/. This is where things go in your classpath. Instead, you should put the css file under /webapp. This will make them go under my-project.war/. These files will now be directly accessible by going to http://localhost:8080/test.css

Categories : Java

Adding 3party Reference To Project with Powershell
You can use Add-Type cmdlet: Add-Type -Path "path-to-dll.dll" See: http://technet.microsoft.com/en-us/library/hh849914.aspx

Categories : C#

adding external jar to maven project in netbeans
You can follow this tutorial: http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html Example: Install the jar to your local maven repository: mvn install:install-file -Dfile=cxf-2.7.3.jar -DgroupId=org.apache.cxf -DartifactId=cxf-bundle -Dversion=2.7.3 -Dpackaging=jar Edit the pom.xml file in your project to include the newly added dependency: <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-bundle</artifactId> <version>2.7.3</version> </dependency> This should work regardless of the IDE you are using.

Categories : Maven

Adding Fetch button on the project Menu
The closest example of that is to look for commits like this one: "Added a clone button to support one-click clone". As you can see, more than one .haml file is impacted. This isn't the project menu, but can still give you a starting point. You should find more information in the GitLab forum.

Categories : Ruby On Rails

Adding odbc14.jar manually to Spring Roo project
You'll need to manually install the driver from Oracle. In command prompt install the driver to Maven's local repository using mvn install:install-file. > mvn install:install-file -Dfile=your_ojdbc.jar -DgroupId=com.oracle -DartifactId=oracle -Dversion=10.2.0.2.0 -Dpackaging=jar -DgeneratePom=true Now you add the dependency to the pom.xml <dependency> <groupId>com.oracle</groupId> <artifactId>oracle</artifactId> <version>10.2.0.2.0</version> </dependency>

Categories : Maven

Adding Samsung SDK to Android Studio project
Maybe you can follow the instructions in chapter 8 in this document. Click here (invalid link) Be also sure of the .classpath file is not hidden in your project folder, when adding your .jar file. It can typically be the issue.

Categories : Android

Adding Storyboard support in existing project
You need to load the storyboard first: [[UIStoryboard storyboardWithName:@"MainStoryboardName" bundle: nil] instantiateViewControllerWithIdentifier:@"SomeVCInMainStoryboard"]; Assuming that project is setup correctly, you should just need to change the names to load the Storyboard and a subsequent view controller.

Categories : IOS

Android Studio adding external JAR to the project
the error message format shows that you are not using Gradle to build. You either loaded the eclipse project file (.classpath/.project) or had some existing iml files. This means changes to build.gradle will have no effect since Studio uses the IntelliJ internal builders instead. You need to import your build.gradle file instead to create a new Studio project.

Categories : Gradle

Adding Model Attribute with MySQL later in project
You need to use South (or something similar) to do a Schemamigration. Read the documents to see how to do it. It's quite easy, and will be very helpful later in your project (when you have lots of data in your database). The only other option (other than using another migration tool) is to drop the database and create it again, which would lose you all of your data.

Categories : Mysql

adding resources in intellij for java project
The launcher.properties should not be under a folder called Login. It should be placed directly in the src/main/resources/com/abc/xyz folder. It is really as simple as I said but if the resources folder is not marked as a sources folder then this may be the problem. This is the initial class and setup: Now create the resources folder: This newly created folder should be automatically marked as a sources folder and if it is blue color marked then it is. Otherwise you'll have to mark it manually: Now you'll be able to add packages to it: And now you can add the file to it: And rerunning the application will not give you any null value back: And the package view will surely show the launchers.properties file as well:

Categories : Java



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