Skip to content
Advertisement

Tag: java

How to escape java special characters and run Linux commands

I’m writing a java program to find specific files(files with special permissions and by file type) within the directory. The following command executes properly since there aren’t any special characters. Now if i try to execute the following command using my java program, terminal doesn’t give a proper result. Java Program, Program works fine.however, String cmd command doesn’t give me

maven-compiler-plugin broken on linux?

I have a maven project. In the pom.xml file the following is stated: AFAIK this is correct, it should build against JDK 7. I run a Debian based Linux dist and when I do mvn clean install it seems to always build against the javac version I have set in my os. I’ve tried reading up on what the plugin

How can I fix JVM locale issues on our CentOS server?

We’re running multiple servers and a database on our cloud server. The JVM appears to be off by 2 hours, as it’s operating in UTC time when it should be operating in CEST. When I ssh into the server and run date I get the following: Our Database is set to System time and it has the same (correct) time

Adjust context switch frequency in Java on Linux

I’m looking into a potential concurrency issue in some binary Java code. The code sometimes has a strange behavior, but I’m not sure if it’s actually due to concurrency issues in the code itself, or if it’s something else. I haven’t been able to reproduce the strange behavior myself, but only seen it happening in our log files. Is there

javac error: “Cannot find symbol”

I’m trying to compile java files on an EC2 instance, and am having trouble. I have several JAR files as well that are included in the classpath. The example would be a StockTrade.java (which is a stock trade object), which compiles completely without issue. In the same directory, there is the StockTradeGenerator.java, which will create StockTrade objects. When I try

Need to automate SSH commands to router

I need to find a way to automate ssh commands to my router. My goal is to make the router restart whenever I run the script from my Java program. I’m having some issues though. First of all, this is the sequence of output I get from my router’s ssh: First I do: which returns: I enter the password, “admin”.

Download github release with Java/Shell

I want to be able to download a github release (a jar file) and put it in a certain directory on my VPS (running Ubuntu 16.04). How would you go about doing this? Adding the “shell” tag as I think you’d need to use shell Answer See this discussion: Download single files from GitHub In the past, I’ve used something

Glassfish is not working on ReadHat Server

I am trying to install Glassfish 4.0 on a Linux Red Hat Entreprise Linux release 5.11 (Tikanga) Server. Therefore, I successfully installed Java jdk1.7.0_79 and NetBeans 4.0 on this server following this website instructions: https://blog.idrsolutions.com/2014/02/tutorial-setting-up-glassfish-on-a-linux-server/ When I run the server using the linux command ./asadmin start-domain, the console tells me that everything is ok: If I run the sudo netstat

Advertisement