Is it possible to use Eclipse (with AppEngine SDK plugin) and Google "push-to-deploy" together? I have managed to install "gcloud"-tools and initialize a project fine! But now I can't figure out how to combine Eclipse project structure and the structure generated by "gcloud init". I mean I would like to do this:
1) Use Eclipse to edit the application and test it locally in Development server as before
2) But also utilize Google "Push-to-deploy" GIT repository (instead of GitHub)
Is this possible or feasible and is there any instructions how to do this kind of project setup correctly.
Thanks for any tips!
After some more experiments with gcloud (Google Cloud SDK) I would recommend creating the project with Maven and use Maven for building & running the development server. Still you can import the Maven project in Eclipse and use that as Java editor + remote debugger. Here's the instruction to get started:
https://developers.google.com/appengine/docs/java/tools/maven
Also Google Endpoints is quite nice tool for building REST APIs (though it still has some weaknesses, like limited support for HttpServletRequest data and poor authorization support in Development server)
https://developers.google.com/appengine/docs/java/endpoints/
Related
I am trying to integrate Amazon SQS into eclipse but I'm having a hard time and I have no clue how to do that. I have watched many you tube videos and they all are with intelliJ or with visual studio code.
I tried with visual studio code but by default location is changing in the credentials.
Can anyone let me know the dependencies to add and how to create a project so that I can integrate AWS and also how to run the final application and how to make changes in the queue created?
To use the AWS SDK for Java V2 in Eclipse, all you need to do is create a Maven Project in Eclipse. Then look at the AWS SDK Github repo here:
https://github.com/awsdocs/aws-doc-sdk-examples/tree/master/javav2/example_code/sqs
See this illustration.
Open the POM located here and copy and paste it into your Maven project's POM file. That will add the required dependencies into your project. Now you can add the examples to your project to get SQS examples working in Eclipse.
Of course, you need to setup your development environment - which includes setting up your AWS credentials. To learn how to do this, see this topic:
Get started with the AWS SDK for Java 2.x
I have installed the latest Google Cloud SDK (200.0.0) and Google Cloud Tools on Eclipse Neon.3. The GCloud App Java Extensions have also been installed as below.
It seems the latest Google App Engine SDK 1.9.63 has been installed at:
C:\Users{USERNAME}.m2\repository\com\google\appengine\appengine-api-1.0-sdk\1.9.63
According to Google App Engine online documentation, I had to download and unzip the SDK (appengine-java-sdk-1.9.63) to a different directory.
I would like to use the SDK that I downloaded but the one in Maven. How can I change the location of the installed Google App Engine SDK in Eclipse?
EDIT:
I would like to clarify a few things:
.m2\repository is where Maven customarily caches Maven artifacts. Whenever any Maven projects make use of any JARs, they will generally be cached in that local repository. Since it is just a cache, you can safely delete the repository anytime in general. mvn package, for example, will download and cache necessary JARs again.
That said, .m2\repository\com\google\appengine\appengine-api-1.0-sdk\1.9.63 just contains a cached JAR: appengine-api-1.0-sdk-1.6.3-jar. Certainly, you wouldn't call a single JAR "Software Development Kit (SDK)"; I would call it, if I have to, an App Engine API JAR. Also, the JAR might have been cached by someone else than "Google Cloud SDK"; any Maven project that makes use of the classes in the JAR would automatically cache it.
"Cloud SDK" is a collection of tools and libraries for Google Cloud development and management.
"App Engine SDK for Java" as in https://cloud.google.com/appengine/docs/standard/java/download is another, different collection of tools and libraries for App Engine Java development, which you won't probably need here. The SDK is separate and independent from the Cloud SDK.
You don't need to download "App Engine SDK for Java" when using "Cloud Tools for Eclipse" (CT4E). CT4E is Cloud SDK-based and not App Engine SDK-based. Why do you need to manually download the App Engine API JAR? For example, you can add the JAR to your project in Eclipse by Preferences > Java Build Path > Libraries > Add Library > Google Cloud Platform Libraries > App Engine API > Finish.
You cannot configure App Engine SDK in Eclipse, you can just configure Google Cloud SDK inside Eclipse Google Cloud Tools.
Google App Engine SDK is a component of the Google Cloud SDK {1} so you can install it this way:
gcloud components install [COMPONENT-ID]
If you are using Java, [COMPONENT-ID] would be app-engine-java.
Good luck!
{1}: https://cloud.google.com/sdk/docs/components
I have been engaged in developing IBM MobileFirst + Ionic applications for the last few months, but I still couldn't figure out a way to use SASS. How I managed till date is, I will have a static Ionic project with SASS setup and I re-use/copy-paste the HTML and CSS from this static www folder to actual MobileFirst project common folder.
Is there a better way around, like to have a node + gulp setup on the MobileFirst project?
NB: I'm using IBM MobileFirst 7.0.0
Cheers!
In Hybrid apps in v7.0, you use Eclipse. This makes things more complicated. In Eclipse you can use Ant scripts to alter the generated folder with anything you may need. Perhaps the Ant script could execute whatever it is that you need.
You can see an Ant script integration example in Studio, here: https://mobilefirstplatform.ibmcloud.com/blog/2015/08/03/integrating-3rd-party-cordova-plug-ins/
This will be easier for you in v7.1, where you can create "pure Cordova" apps using the command line, thus your integration points with other tools such as Node.js and gulp is much more natural, and more feasible.
I have a Java Web Service project which was just handed over to me by a colleague who just resigned (no one is assisting me in my new company). Im new to Java (J2EE) and my background is .Net + frontend + azure so I am pretty much very confused with setting up and running the java project. Also, Since my background is .Net Im referencing everything with how things work in Visual Studio from running a project, setting up a project to setting up and debugging a WCF project which I realized now is very different from eclipse + java.
I would really appreciate if someone could explain to me how I can run this project which is supposedly a java web service (as I was told)?
First I have a project that is like this:
Im assuming that the project boxed as blue is the webservice (and the rest are just libraries)? Is this correct? if so how do I run and debug the project using eclipse
Second when I click on debug as -> debug on server this is all I see:
Another colleague told me to install JBOSS (I haven't installed a server in eclipse) because that is what they used. Is there good documentation (step-by-step guide) on how to install JBOSS to run in eclipse. Im assuming that JBOSS + eclipse is like IIS express + Visual studio. Are there also other alternatives to JBOSS + eclipse like perhaps tomcat + ecplise that I can configure.
I really really find it hard to setup the java web service project in eclipse I have little to no prior experience with java j2ee programming especially with web services so any clarifications with my questions would be much appreciated. To sum up:
How would I really know that the project is a java webservice?
If so, how do I run the project and host the project using debugging in eclipse with tomcat or jboss?
I would appreciate if anyone can point me to the right direction of figuring out the source code
From here we can only guide you, you will have to go through some tutorials to understand how java projects work.
Your project is a webservice project according to your web.xml file because its having context params for rest.
the context param sets a front url to your webservice which in this case is gametime.
Check these tutorials and you will understand how it works
http://www.mkyong.com/tutorials/jax-rs-tutorials/
Create simple examples given in the above tutorial and then you can execute your's program
Jboss is a application server which we use to run our app.
You can install jboss in eclipse or you can use it externally also.
To install eclipse and jboss you can follow the link
http://theopentutorials.com/tutorials/java-ee/installing-jboss-tools-in-eclipse/
The other option is to download eclipse and jboss seperately
and use them.
Go to jbosshome/bin
If you download both of them seperately
then in that case for jboss
Invoke the add-user.sh or add-user.bat script. ...
Choose to add a Management user. ...
Choose the realm for the user. ...
Enter the desired username and password. ...
Choose whether the user represents a remote JBoss Enterprise Application Platform 6 server instance. ...
Enter additional users. ...
Create users non-interactively.
After this go to eclipse and follow steps of below link to add jboss to eclipse
http://www.mastertheboss.com/eclipse/jboss-eclipse/jboss-and-eclipse
A Java web application among other things has a predefined directory structure including folders named WEB-INF, WEB-CONTENT etc.
On how to deploy a web application to Tomcat via Eclipse you can follow the steps in this tutorial.
I'm new in Alfresco I have download and installed "alfresco-community-4.2.f-installer-win-x64.exe" and I'm looking if I can import it as an eclipse project
The Alfresco Installer provides everything you need to run Alfresco. Install it, start it, away you go
However, if you want to either write your own Java code to run on Alfresco, or to extend/change Alfresco, it isn't what you need.
To build your own code on top of Alfresco, you'll most likely want the Alfresco SDK. That contains everything you need to:
Develop Alfresco Repository plug-ins such as:
Custom Actions / Conditions
Custom Aspects
Custom Transformers
Develop Applications against a standalone Alfresco server via Alfresco's Web Service API. In this case, the SDK works as a wrapper for the Alfresco API.
Embed Alfresco into existing Applications via Alfresco's Java Foundation API or standards-compliant JCR API
Alternately, if you want to make changes to Alfresco itself, then you'll need to grab the source code for it. The Source Code Wiki Page has the details of how to do that, and the 4.2f code is here
if you are using Maven you can try with Maven Alfresco SDK