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.
Related
Trying to deploy an external jar file to Google Cloud App Engine via Eclipse (via Google Cloud Tools plugin).
app.yaml
runtime: java11
entrypoint: 'java -jar cord.jar'
On Eclipse, shows "runtime: java 1" in app.yaml is not "java"
Runtime java11 is not a supported runtime in App Engine Flexible. Instead you should use runtime: java
Here you can see a sample java app.yaml and the Java documentation for flex
You can use java11 if you deploy your application in Standard environment which supports Java 11
If you are deploying to App engine standard you can select in the menu which version you want to deploy
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)
I am trying to trigger a java 8 install using a wix generated msi. I included once the offline installer and once the online installer and each time i get the same error "actual error code 1618". And the java install fails. If i do a standalone java install the install completes with no problems.
1618 is ERROR_INSTALL_ALREADY_ RUNNING. Basically MSI enforces a system wide mutex that prevents two installations running at the same time. One MSI cannot install another MSI. You should have to create a bootstrapper / chainer ( WiX has one called Burn ) to install Java and then install your MSI.
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.