Unable to run java console app using codenvy SDK - java

I installed codenvy SDK in my linux machine from github:
https://github.com/codenvy/sdk
After starting the server localhost:8080
I tried to run the simple hello java console application.
But when I run this app, I am getting the following error. Can someone please help?
"Runner environment 'system:/java/standalone/simple/cli' is not available for workspace '1q2w3e' on infra 'community'."

AFAIK Codenvy SDK does not support console app, only web-apps. To support different types of applications in the SDK docker can be used. But I don't know how to use it in SDK.
By the way you can use hosted version of Codenvy which support console apps (will be started in the docker.) You should not configure docker to use it, but custom receipts are supported too.
Here is console hello world app created in my workspace with Codenvy wizard.
This URL is factory - feature that allow to share projects easily. To copy this project to your workspace click "Persist" button on the top of IDE. Or create your own with a project wizard.

Console apps already supported in cloud version, while there are some problems with Eclipse plugin and as you ran into with Codenvy SDK (Eclipse Che)
Raise an issue at codenvy SDK and/or ask on forum https://groups.google.com/a/codenvy.com/forum/#!forum/codenvy
Don't forget to reference this question.

Related

Visual Studio Code setup for Java WebApp Project without main method

I am looking to setup this project ( https://github.com/afawcett/githubsfdeploy) on my local machine. I'm not too familiar with Java but I feel I've been able to do enough (MAVEN, JAVA environment downloads and system variable settings) to get my windows machine up and running along with Visual Studio Code. I was able to get the spring boot project up and running in visual studio code without any issues so I want to believe I have all the required pieces (https://code.visualstudio.com/docs/java/java-spring-boot).
The spring-boot project has a main method and the one I'm trying to recreate doesn't. I am receiving the error when debugging the githubsfdeploy project that a "main" method could not be found. I've been researching other ways to run a java project without using the main method but haven't recognized the missing piece yet. Would love some direction on what I may not be taking into account. Thanks!
This is a Maven project which based on the concept of a project object model (POM). So first, you should download Maven and Tomcat locally.
My machine: win10, vscode1.49.0, JDK11
VS Code Extension installed: Java Extension Pack, Tomcat for java
and i download: apache-maven-3.6.3-bin.zip and Tomcat9.0.38 and extract them
Add maven to Environment Variables:
---\apache-maven-3.6.3-bin\apache-maven-3.6.3\bin
Open the project in VS Code, add the following code in User settings.json:
"maven.executable.path": "---\apache-maven-3.6.3-bin\apache-maven-3.6.3\bin\mvn",
Follow the picture steps:
Add the tomcat server and run the .war on tomcat, here is a gif tutorial: work with tomcat
Finally, you will observe this result:
When you can run it successfully, debugging is achievable: right click the tomcat server and choose debug war packages:

Run Multi Module Java App Engine (EAR) application on Eclipse App Engine Standard on localhost on debug

My Project looks a lot like this:
https://github.com/GoogleCloudPlatform/appengine-modules-sample-java
Wanted to be able to run it on a eclipse local server on debug mode but does not look like Eclipse App Engine Standard on localhost accepts ears. it says they are not supported. What can I do?
Also I added the war projects individually to the local server but getting:
HTTP ERROR: 503
Problem accessing /. Reason:
SERVICE_UNAVAILABLE
Powered by Jetty://
If I use maven I can build and deploy from the command line, but does not help much since cannot use the eclipse debugger.
I think this two links will help you
https://blog.knoldus.com/2010/06/24/remote-debugging-google-app-engine-application-on-eclipse/
How to setup IntelliJ Java App Engine project to use Services (Modules)
This links will show you how to enable remote debugging for eclipse and how to setup remote debugging for a Multi Modulue Google App Engine Project with Intellij (without the Google App Engine Plugin) and Gradle
Regards
Michael

Does having multiple instances of GAE SDK on your machine cause conflicts?

I would like to install both the Google-Eclipse plugin (which I believe also install the GAE SDK) for my Eclipse instance, so that I may take advantage of a lot of the IDE tools and features it comes with, and also so that I can run my app from inside Eclipse.
I would also like to install just the pure GAE SDK so that I can run my app outside of Eclipse on my regular system.
Because the GAE SDK is a diverse and complex beast, I am worried about having two instances of the GAE SDK installed on the same machine (setting conflicting ENV VARs, trying to open the same port number, etc.).
Obviously, I would take care to never be running the 2 GAE dev servers (1 that ships with the Eclipse plugin, and the other that ships with the pure SDK) at the same time, but that might not guarantee that I have 0 conflicts.
I would also be fine with just installing the Eclipse plugin if there was a way to configure the GAE SDK that it ships with to run both from Eclipse as well as the bash shell. That would probably be the easiest but I don't believe this is possible to do.
Any thoughts as to what my options are here? Thanks in advance!
You can do that by having a single SDK installed and using it for both Eclipse and also for bash shell.You can do that by following the steps below:
Download a Suitable GAE SDK from here and install it.
Open Eclipse and Select Help->Install new software.
In work with box enter the url as http://dl.google.com/eclipse/plugin/4.2 and from the list of available softwares select only "Google Plugin for Eclipse" software and select any other required plugin but not the SDKs. Keep it unchecked!
After installing the selected plugins, in Window->Preferences->Google->AppEngine click on add and then select the installation directory as the directory from step 1 and give a suitable name. Make it as default.
Now you are good to go.If you need to run from shell, invoke dev_appserver from the installation directory. Or if you want to run from from eclipse just run it from there.

Setting up Eclipse and Glassfish offline

I have a Glassfish 3.1 server set up running on my development machine, and I'm trying to write a Java application that uses the OpenMQ JMS server built into Glassfish. I'm using Eclipse EE 3.6 for development (and have to as the application I'm developing is a plug-in for a Eclipse framework application - no changing to NetBeans!).
The problem is that my development machine isn't connected to the internet, so I can't download the Glassfish adapter from within Eclipse as told to do so in pretty much every online tutorial and guide I've found.
Is it possible to download the adapter on another computer, transfer it to the development machine, and install it into Eclipse 'offline'? And if so, how?
If adapter is available as a eclipse plugin(it must be available, if it can be updated via eclipse plugin update site) you can just download and keep it # eclipse_home/plugin folder and restart the eclipse.

Java eclipse run android project

im starting developing android applications and i learned from a Hello World tutorial. but when im running it this comes to the screen
Launch configuration ANSIBuffer references non-existing project Basic.
Please, help me and tell how i can run a android application.
Thanks
I would recommend downloading the official adt (android development tools) plugin for eclipse. You can find instructions on how to do that here: http://developer.android.com/sdk/eclipse-adt.html you need to make sure that you have the most recent version of android sdk installed before you do that. Instructions on how to install that are here (this includes a eclipse tutorial): http://developer.android.com/sdk/installing.html
I believe that that is all you need. Just ask if you need more help!
I did a guide once for a course, but it is in spanish:
http://otfusion.org/android/ (look for day 2)
But basically the guide is this:
Download JDK from here: Java SE - Oracle
Download Android SDK (.zip format, just unzip it in C:\android-sdk or if you are in *nix /home/user/android-sdk) from here: Android SDK - Developer Guide
Start ~android-sdk/tools/android and download your desired android target (eclair, donut, honeycomb, etc)
Download Eclipse for Java Developers* (as far I know, the latest eclipse WORKS on my notebook) from here: Eclipse - Indigo
Install eclipse in a readable/writable location like /home/user/bin or /opt/eclipse but give permission to the file - chown -r user:users /opt/eclipse (in Windows you must not have problems) otherwhise you will have problems.
Install ADT Plugin just add this site in Eclipse "Add Software" option (Help menu) https://dl-ssl.google.com/android/eclipse/
Restart Eclipse
Start one AVD and initiate your project using the Run button (As Android project) or whatever hotkey you use.
Also, Installing guide from developer.android.com Troubleshooting
*Note: Classic didn't work for me

Categories

Resources