I'm trying to deploy a nodejs app to swisscom application cloud.
The app uses the node-java module.
While staging the app, I get an error message:
[node-java] Error: not found: javac
is it possible to deploy apps with multiple buildpacks (e.g. nodejs and java) like on heroku (besides creating a custom buildpack)?
#UPDATE:
I'm (now) aware of the (experimental) multi-buildpack for cloudfoundry. unfortunately it won't detect my app as java app (which isn't) and anyway, it would ony install the jre but not the jdk.
Is there a possibility (besides a docker image or custom buildpacks) to have jdk in the app container?
because there seems no way to add custom packages to the cf base image (cflinuxfs2) provided by swisscom, I forked the official cloud foundry buildpack and let it install the openjdk-7-jdk package before doing all the nodejs related stuff (https://github.com/juckerf/nodejs-openjdk-buildpack)
(unfortunately the multi-buildpack with the nodejs buildpack and herokus apt buildpack didn't work for me because the nodejs buildpack was executed before the apt buildpack, regardless of the order in the multi-buildpack.yml)
Related
I have a Java application that uses a native program (Graphviz).
Now I want to run this Java application in Heroku. Is it possible to set up the Heroku application so that Graphviz is available to my Java program?
You should be able to do this using multiple buildpacks via the Heroku CLI:
Set your application's default buildpack:
heroku buildpacks:set heroku/java
Add the apt buildpack so you can install Ubuntu packages:
heroku buildpacks:add --index 1 heroku-community/apt
Look at your configured buildpacks to ensure that the Java buildpack comes last:
heroku buildpacks
Add an Aptfile to the root of your repository listing the packages you want to install, in this case:
graphviz
Commit the Aptfile and deploy. The apt packages listed in Aptfile should get installed first, then your Java application will get built according to the Java buildpack.
I was trying to implement Selendroid in my pc.
I do as follows
1.Installed JDK
2.Installed eclipse
3.Installed SDk
4.Created Environmental Variables
5.Created a Java Application in eclipse
6.Mapped Selendroid Standalone jar,Selendroid Standalone with dependencies, Selendroid Client and Selenium Client.I used the command in console as follows
java -jar selendroid-standalone-0.17.0-with-dependencies -apk myapk.apk
And verified status using http://localhost:4444/wd/hub/status.I created android application and was stuck after this,What do after this?
here is their official site link http://selendroid.io/setup.html from where you can complete instruction regarding your question if you face any issue than feel free to contact
It may sound like a noobie question, but all I want to know is how to install java on ubuntu, does Apache support Java Web Applications, and What other resources I need.
Apache isn't typically used to run Java applications.
If you want the Apache project most typically used for Java on the web, you should take a look at Tomcat. Tomcat is it's own web server, separate from Apache.
In some configurations, Apache is used in front of or besides an install of Tomcat to serve static content; images, for example.
For installing Tomcat on Ubuntu, it should be pretty easy:
sudo apt-get install tomcat7
Then check http://localhost:8080, which is where it serves by default.
First check that java is not already installed by typing "java -version" in a console. If java is installed it will print out the version. To install java run the following
sudo apt-get update
sudo apt-get install default-jdk
This will install openJDK.
There are many web application frameworks you can use with Java. One of the more popular ones is the play framework. you can grab it here https://www.playframework.com/
and there are installation instructions for Apache here https://www.playframework.com/documentation/2.0/HTTPServer
My apps are web app projects (java liberty pack).
I want to run executables with java process builder in servlets but I am getting errors. That executables depends to GLIBC.
How can I solve them?
First project:
libstdc++.so.6: version `GLIBCXX_3.4.20' not found
Second Project:
/lib/libc.so.6: version `GLIBC_2.14' not found
Cloud Foundry supports "stacks" which define the operating system runtime your application will be deployed onto.
[10:04:11 ~]$ cf stacks
Getting stacks in org james.thomas#uk.ibm.com / space dev as james.thomas#uk.ibm.com...
OK
name description
lucid64 Ubuntu 10.04
seDEA private
cflinuxfs2 Ubuntu 14.04.2 trusty
Currently, IBM Bluemix is deploying applications onto the older Ubuntu 10.04 stack by default. This environment contains GLIBC 2.11.
You can specify which stack to deploy your application onto using the "-s" command line flag or setting this in the manifest.
Choosing cflinuxfs2 will use a more recent version of Ubuntu with an updated version of the glibc libraries.
This should hopefully work.
I have been learning about Java web start and got interested in its features. But can my Java app downloaded and run from browser run on a device without a JRE(Java environment) installed?
I have tried download a sample jar from browser with Java web start but my app can't run.
Second question: Is there a feature in Java web start to check for an installed JRE and automatically setup the environment?
a JRE is required on the client to run your java Web Start application as it is downloaded and executed localy and all Java applications need an installed JRE.
Java Web Start provides the option to declare a JRE (with version number) and download it if it is not installed. (But I never used it so I can't tell you how to set this up) found on wikipedia.
You cannot do such a things with applet/jnlp, but you can package your jar into an application package: http://docs.oracle.com/javafx/2/deployment/self-contained-packaging.htm
Java Webstart (JavaWS) is part of the Java Runtime Environment (JRE)
http://www.java.com/en/download/faq/java_webstart.xml
An installed JRE is - as far as I know - required to run JavaWS applications.
I'm not aware of any method which would facilitate an automatic download/install of the current JRE.
However, JavaWS allows you to enforce the use of a specific JRE version.
If "setup" refers to checking if a runtime is installed - that feature cannot of course be part of the Java runtime - that would turn it into a chicken-egg type of situation. At best an existing runtime will be able to detect that it is outdated.
But Oracle provides the Java Deployment Toolkit which is based on javascript:
http://www.java.com/en/download/faq/deployment_toolkit.xml
http://docs.oracle.com/javase/tutorial/deployment/deploymentInDepth/depltoolkit_index.html
JavaFX 2 provides ant tasks to automate those things away:
http://docs.oracle.com/javafx/2/deployment/deployment_toolkit.htm#BABJHEJA