Failure to import Corda Gradle project in IntelliJ - corda

When I open a Corda Gradle project in IntelliJ and click Import Gradle project, the project fails to import, and I get the following error messages:
Invalid Gradle JDK configuration found. Open Gradle Settings
Project JDK is not specified. Open Project SDK Configuration
What do I need to do to make the Gradle project import correct?

You need to set the project's SDK.
Click on File > Project Structure..., select the correct Java 8 JDK (1.8.0_131 or above), and click Apply.
Then import the Gradle project again. You will have to close and re-open the project to force the Import Gradle project dialog to re-appear.

Related

Problem with building exe from JavaFX project

I have a problem with building exe from JavaFX project. I created artifact with necessary parameters. Set application class, choose "all" in native bundle.
I getting next error when building:
Java FX Packager:
BUILD FAILED
PATH: Error: Bundler "Windows Application Image" (windows.app) failed to produce a bundle.
When i choose "exe" in native bundle, build completes successfully but the exe file is not created. How i can resolve this problem?
SDK: BellSoft Liberica version 11.0.15

How do I resolve this error. Am trying to connect to firebase

Could not parse the Android Application Module's Gradle config. Resolve gradle build issues and/or resync.
I have tried many of the solutions but finally I have resolved this error
Check out my Screenshots and configure it in similar way.
If you are using new Android Studio or any recent version you will not find jcenter in recent version in your build-gradle file.
build-gradle[project]
build-gradle[app]
Dependencies in App level gradle
In settings.gradle comment out jcenter
Settings.gradle
Project Structure Settings
Project Structure Settings
Project Structure Settings 2
Hope this will solve your error.

Could not build Objective-C module 'Firebase'

I am getting this error for import Firebase:
Could not build Objective-C module 'Firebase'
Xcode also complains about FirebaseAnalytics saying
'FirebaseAnalytics/FirebaseAnalytics.h' file not found.
My project used to build just fine until I updated to swift 4.
I am using the latest version of Firebase via Cocoapods version 1.4.0 beta 2.
I just had the same issue. What I had to do was:
Close Xcode
Restart Xcode and made sure I opened the .xcworkspace project file.
Ran a Build on the project.
After that I had no more Firebase error messages.
In Xcode,
Go to Product -> Scheme -> Select New Scheme. Then choose FirebaseCore as Target and Name. Now build the project and then change back to your app target. It works for me in Xcode 9.1
Link Binary with Libraries
Build Phases - under Link Binary With Libraries - this is where the magic happens:
It is very likely, your binary is not linked with the Firebase library - hence the header file cannot be found.
After updating to XCode 9.4 the problem resolved itself.

pom.xml no such file or directory

I've got a problem when I am building my project. I uses the springsource tools (STS) version 3.1.0 on Linux platform. After I imported my project to the STS, the springsource tools told me that "No such file or directory" at the pom.xml file. The file is actually exist in the correct path. I think the project is working fine because I've tried to import the same project with the same procedure in the other computer.
When I use console to compile the project with maven, all of them are complied successfully.
I've also tried the following but still not work:
1. reinstall the STS.
2. re-import the project.
3. create a user profile and re-import project.
4. use older version of STS (3.0.0)
I want to import the project to my computer so that I can work with.
Please suggest to resolve the problem. Thanks!
Had "No such file or directory" error on pom.xml in Eclipse Luna SR1.
Tracked it down to be caused by faulty resolution of other projects within the workspace by M2E.
So there are 2 solutions:
Either close the other project in the workspace (a dependency of the project in error).
Or disable workspace resolution by M2E on the project in error (right-click on the project, Maven --> Disable Workspace Resolution).
Obviously, if you need both projects open then option 2. is the way to go. The dependent project then takes the dependency from the local Maven repo, so to refresh it, you have to build and install the dependency into the local repo (mvn install).
I have the same issue. Still didn't find any smart solution, but this sometimes works for me:
Close eclipse
Go to console and do a maven clean install with update flag "mvn clean install -U"
Reboot the computer (logging out and back in didn't help)
Start eclipse and refresh and rebuild your projects

How to debug spring-social-showcase?

I have downloaded spring-social-showcase project. I can run the project in command prompt using mvn tomcat:run. I can browse the project in url typing http://localhost:8080/spring-social-showcase. How can I debug the project? I also can not run the project in sts because sts does not show the option Project > Run as > Run on server. Is it possible to run/debug the project through sts? Any help would be appreciated.
Import the project as a maven project except general project. Then you can run/debug the project.
Cheers
Open cmd > Go till path of pom > type mvn eclipse:eclipse -Dwtpversion=2.0 > and import the project as general project and run on server .

Resources