Skip to content
Advertisement

Tag: java

ant: warning: unmappable character for encoding UTF8

I have seen numerous of questions like mine but they don’t answer my question because I’m using ant and I’m not using eclipse. I run this code: ant clean dist and it tells me numerous times that warning: unmappable character for encoding UTF8. I see on the Java command that there is a -encoding option, but that doesn’t help me

Can i store unix permissions in a zip file (built with apache ant)?

I’m building a linux installer for a Java application, and I end up with an install.jar and a setup.sh that I put in a zip file using ant. The idea is the user unzips the zip file and then runs setup.sh but the trouble is that they always need to chmod setup.sh first to give themselves execute permissions. I want

Change file owner group under Linux with java.nio.Files

I have a Linux server and I’m running an image resize job in Java for multiple websites on my server. The website files are owned by different OS users/groups. Newly created thumbnails/previews are owned by the user running the resize job. Now I was googleing around how to change the file owner of newly created previews/thumbnails in my resize program

java application and x11 forwarding

I need to start jperf on virtual server. I configured X11 forwarding via ssh. xclock – is working. But if I start jperf I get: user@client-32:~/sandbox/jperf-2.0.2$ sh jperf.sh Exception in thread “main” java.lang.ExceptionInInitializerError Caused by: java.awt.HeadlessException at sun.java2d.HeadlessGraphicsEnvironment.getDefaultScreenDevice(HeadlessGraphicsEnvironment.java:77) at net.nlanr.jperf.JPerf.(Unknown Source) java version: java version “1.7.0_03” OpenJDK Runtime Environment (IcedTea7 2.1.1pre) (7~u3-2.1.1~pre1-1ubuntu3) OpenJDK Client VM (build 22.0-b10, mixed mode, sharing)

CommPortIdentifier.getPortIdentifiers with zero ports on Linux

i am trying to connect serial port on ubuntu. However, It doesn’t work for me. I succesfully run the same project on Windows just with different drivers. The problem is that I can’t load any ports while I am using this: CommPortIdentifier.getPortIdentifiers(); // i am using rxtx 2.1.7 It always return zero ports. I would like to use port ttyS0

handling vps numproc limits

this is my vps package £14.99 uk pounds a month, so not to expensive. Thay are limiting numproc to 96, they didn’t make it obvious that this was a limit when I signed up, but I suppose it is my fault for not asking. I am running Tomcat and if I run out of numproc then Java will crash and

Advertisement