I followed instructions given in Flowable Getting Started Guide to setup Flowable REST API on Ubuntu 18.04. After running sudo ./catalina run, I do get Apache Tomcat up and running on port 8080. However, when I try REST APIs of flowable-rest, I get a 404 error.
java --version
java 17.0.1 2021-10-19 LTS
Java(TM) SE Runtime Environment (build 17.0.1+12-LTS-39)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.1+12-LTS-39, mixed mode, sharing)
I tried this on Windows and it worked without a problem. Therefore, I think this happens due to a permissions issue, environment variable issue or Java version/path related issue. However, I'm not that familiar with Java and I'm unable to isolate the exact cause.
Related
Been trying to upgrade elasticsearch from 2.x to 5.x and while doing this, since straight through upgradation is impossible, a fresh install was necessary. Hence, I downloaded the deb file and tried to install the newer version. I was successful in installing elasticsearch. When I tried to start the server the following exception did raise:
* Starting Elasticsearch Server
Exception in thread "main" java.lang.NoSuchMethodError: java.nio.file.Files.readAllLines(Ljava/nio/file/Path;)Ljava/util/List;
at org.elasticsearch.env.ESFileStore.<init>(ESFileStore.java:65)
at org.elasticsearch.env.Environment.<clinit>(Environment.java:111)
at org.elasticsearch.node.InternalSettingsPreparer.prepareEnvironment(InternalSettingsPreparer.java:90)
at org.elasticsearch.cli.EnvironmentAwareCommand.createEnv(EnvironmentAwareCommand.java:72)
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:67)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:122)
at org.elasticsearch.cli.Command.main(Command.java:88)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:91)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:84)
[fail]
Java version of my machine is:
java version "1.8.0-ea"
Java(TM) SE Runtime Environment (build 1.8.0-ea-b108)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b50, mixed mode)
I have an openjdk-7-jre running in the machine as well.
Can't find a workaround to this. Any help would be much appreciated.
After three hours of dwelling over resources, I've fixed the issue. There seems to be a version compatibility mismatch across ES 5.x and openjdk-7-jre. I uninstalled the existing openjdk-7-jre and installed openjdk-8-jre, restarted the server again. Elasticsearch is up and running :)
I am using rjb to connect java classes in my rails application...
But I am getting this error can't create Java VM
My ruby -v gave me
ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]
and java --version
java version "1.7.0_79"
OpenJDK Runtime Environment (IcedTea 2.5.5) (7u79-2.5.5-0ubuntu0.14.04.2)
OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)
I went through this post Error “can't create Java VM” trying to use Ruby Java Bridge (RJB) gem but the problem is I can not install 32 bit java as it is needed by some other application
I would download the jdk from oracle (http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html), the version you need. Then for your application set JAVA_HOME to that install directory. You can have multiple different jvms installed on a system.
I have installed RHEL 6.5 and am facing a performance issue with java.
# time java -version
java version "1.6.0_34"
OpenJDK Runtime Environment (IcedTea6 1.13.6) (rhel-1.13.6.1.el6_6-x86_64)
OpenJDK 64-Bit Server VM (build 23.25-b01, mixed mode)
real 0m45.243s
user 0m0.149s
sys 0m0.086s
Try to install version java version "1.8.0_31" and see if the numbers does improve.
rpm -ivh jdk-8u31-linux-x64.rpm
Also check the configuration page from RHEL. https://access.redhat.com/documentation/en-US/JBoss_Communications_Platform/5.0/html/Platform_Installation_Guide/chap-Installing_and_Configuring_Java.html
I found out that it was McAfee's nails process which was slowing down not only java but many other system processes. Stopping resolved the issue.
I have installed Oracle Java 7 in my /home directory by following steps given here (by just changing the path of installation). But still I cannot see the plugin listed in the chrome://plugins tab.
I also cannot see it running in JavaTester or here. I have tried enabling by following steps provided here but nothing works.
Some specifications:
Operating System: Ubuntu 14.04
output of java -version:
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)
Please comment if anything more is needed for resolving the problem
Just pull it from webupd8 servers. Follow the directions at the following link.
http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html
Also, this belongs on a different forum. This forum is for programming questions, installing a chrome plugin isn't really what we do. Next time post to the Ubuntu stack exchange located here.
I'm running on ubuntu 12.04 and when I put in the terminal java -version I got this message:
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)
but despite that, if I put in the terminal javadoc I receive a message as it isn't installed in my machine.
The Java Runtime Environment (JRE) doesn't include javadoc. It includes only the things required to run Java programs, not to develop them.
You need the JDK (Java Development Kit) which includes developer tools like javadoc, in addition to everything found in the JRE.
See the Ubuntu Java documentation.