Java is a general-purpose programming language and a computing platform called the Java Virtual Machine (JVM).

learn more… | top users | synonyms

2
votes
1answer
29 views

Allow non-root unmodifiable sofware to bind to ports 80 & 443

The company I'm in uses the Java Secure Application Manager to "secure" non-internal connections their webmail and electronic collaboration software. Aside from using expired certificates, and ...
1
vote
2answers
31 views

How to increase the memory used by Java in linux?

I have a program Vuze that is written in Java, which I use to download very large files, and I'm having a problem with it. I need to increase the amount of memory it uses. I've followed the directions ...
0
votes
1answer
21 views

How do I remove Java from Mint 17?

I got a version of Java 7 lying in /opt/java/jdk1.7.0_60/ That I don't seem to remember having installed myself. I want to replace it with OpenJDK 8, but I'm afraid I'll break something if I just rm ...
0
votes
1answer
14 views

mysql jdbc connection issues in RHEL 6

I have setup the mysql database in one of the RHEL 6 servers. I would like to connect to this server's database from any other machine using a java program. How should I do it?
-1
votes
1answer
32 views

Launching a sudo gui from desktop

Environment: CentOS 5.10 on 32 Bit. test.sh: #!/bin/bash cd /dump sudo /opt/java/jre1.7.0_60/bin/java -jar mytest.jar mytest.jar will pop a GUI app in the desktop, username is in sudoers with ...
4
votes
1answer
79 views

Poorly performing java application vs poorly performing server

This is a very generic question, but it has been coming up more and more often for me. I would like to try and determine an appropriate course of action for this generic case, as I think it could ...
0
votes
1answer
38 views

Tomcat: no xmx/xms value set, where is the heap value being defined?

I have a Tomcat 7 install running with Java 1.7 on a Linux 2.6 server, and jinfo shows no xmx or xms values. ps output shows nothing set for xmx/xms on the command line for the java process. Tomcat ...
3
votes
1answer
38 views

locate java source code in jdk7

I have installed Jdk7 in Ubuntu 14.04 and it is successfully configured and I can use java libraries in code. The problem is that I am trying to locate java source code, but not able to find the jar ...
1
vote
1answer
14 views

Why uninstalling openjdk automatically triggers an installation of the alternatives on zypper openSUSE?

I installed openSUSE 13.1 and I want to install Oracle jdk. What I intended was to first uninstall open_jdk/ice tea stuff as I won't be needing them anyway but it seems I cannot uninstall them without ...
1
vote
0answers
16 views

Running unsigned javaws code

For a KVM remote console I need to be able to run a jnlp file. When I run it I get: net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could not initialize application. at ...
0
votes
0answers
13 views

Java: Parsing the JSON file [migrated]

I have a Json file like this {"Name":"Saaa","AppIcon":"ddd.jpg","Wallpaper.jpg","ddd.jpg"]} I need to extract the AppIcon values. I'm using json simple lib to parse the json. The code snippet to ...
2
votes
1answer
45 views

Make sense of this strace output

Can anyone make sense of this strace output? [pid 25302] read(34, "}B\311\204\n\250\347$\220\266kRb\304a^^\2504\303k\235\227T\223\16\231\306\277\254\256\306", 32) = 32 It's from a Linux system ...
1
vote
2answers
46 views

get CPU usage of a VM (linux) using java

Is there an API for Java in getting the CPU usage of a VM in KVM? I want to know how I could get the CPU usage of a guest (from the host's perspective) using Java. Also, does anybody know where I ...
1
vote
0answers
19 views

Solaris JRE Mozilla

In an thin client setup where Solaris 10 is being used on client and server side. Java based web apps are opened in Mozilla web browser 1.7. JRE version 1.4.2.6 is installed for Mozilla. On a few ...
0
votes
1answer
41 views

sun.jdbc.odbc.JdbcOdbcDriver not found

I'm configuring a Business Intelligence tool Yellowfin BI on my Debian Linux server and I get this error: Error Message: java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver I cannot ...
0
votes
0answers
38 views

Mail Delivery too slow with sendmail

We are using javamail to deliver mail for our applications. The mail function runs in a loop to deliver around 100 to 200 mails depending on the range we use. However, it taking more than an hour to ...
3
votes
3answers
105 views

Messed up bash.bashrc file, commands not working anymore

Trying installing Java, I tried to add it to the executable path with the line: export PATH=/usr/lib/jvm/jdk1.7.0_60/bin:$PATH in the system-wide /etc/bash.bashrc file. For some reason this ...
0
votes
0answers
63 views

org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed] while running spoon.sh in ubuntu

When I am running spoon.sh file in Ubuntu I am getting the following error: [santosh@sbx data-integration]$ ./spoon.sh /home/decathlon/Pentaho-5.0.1/data-integration org.eclipse.swt.SWTError: No more ...
1
vote
1answer
57 views

Programmatically creating .desktop file to autostart application

Using a Java program, I added a .desktop file in /etc/xdg/autostart to run a script when a user logs in. The script didn't run at user login, and when I checked the start up applications dialog ...
1
vote
1answer
133 views

Why All the text is invisible in Intellij? [duplicate]

I have installed manjaro and intellij. For a couple of month now I had no problems at all and I was fine with that. Since yesterday I experience a strange bug. The whole text is gone. What I tried ...
2
votes
1answer
29 views

Using pkg add with a NanoBSD image

I'm running into a problem on a NanoBSD installation where I cannot install openjdk7 via pkg add because it first saves to either tmp or var (not sure which) and on a NanoBSD installation, there is ...
3
votes
2answers
418 views

Java doesn't show menu text

I startet netbeans/intelliJ/squirrelSQL after I didn't use it for a few days/weeks and now the menu doesn't show text. There are just the underlineds. My system: ArchLinux (everything up to date, ...
0
votes
0answers
27 views

Use FindBugs in Eclipse from terminal on Ubuntu

Is there any way I could use Findbugs from terminal to get all the bugs in my Java code and print it out to a text file? I want to write a script that goes through 100 java files ( this is already ...
1
vote
2answers
727 views

Java code to copy files from one linux machine to another linux machine

I'm looking for java code to copy files to a remote linux system. I have tried Runtime.getRuntime().exec() function by passing an scp command, but each time I run the program it is asking for the ...
0
votes
0answers
40 views

Specific Jar file doesn't run on startup

I want to run a jar at startup, so I asked a question here. I was given a few suggestions, so I started from trying to create a script file and desktop file. I created a script file and desktop file ...
2
votes
0answers
69 views

Java plugin not working with FireFox 24.3.0 on Red Hat Enterprise Linux 5.10

In the about:plugin tab, there is not Java plugin. I have created the symbolic link as suggested. The output of the 'ls -al' command is: lrwxrwxrwx 1 shehab shehab 58 Jun 4 11:21 libnpjp2.so -> ...
2
votes
3answers
106 views

grep on a Java Method

Lets say I have a java class called DirectAction some of the methods in the class have the word "action" or "Action" What is the grep command to get the names of all the methods who have "Action" or ...
1
vote
2answers
112 views

Run jar on startup in all *nix based systems

I have a jar file which I need to run at startup in all distros of Linux. My previous question here, gave me an idea a rough idea on X-servers. Since I wasn't able to perform startup, I moved on to ...
0
votes
2answers
90 views

Porting jvm into the kernel space?

Currently I am playing with the idea of a jvm running in the kernel space, as a (maybe linux) kernel module. I see a lot of advantage of the idea. Of course the biggest advantage of a such system ...
1
vote
2answers
819 views

How to Install Oracle Java7 in Ubuntu13.04

I am trying to install Java 7 in Ubuntu 13.04 using this tutorial. Preparing your system First you need to remove openjdk for this run the following command from your terminal sudo apt-get ...
0
votes
0answers
30 views

How to configure Java Security Manager on JBOSS?

I’m trying to configure JBoss EAP 6 with java security manager. The official guide says you should edit the standalone.conf file, but I can’t find it. Can I circumvent this issue and define the java ...
0
votes
1answer
164 views

davmail and JAVA INSTALLED MANUALLY

I'm trying to install davmail, I've already install JAVA manually (tar.gz file). After trying with the ppa:webupd8team repo and not having good results. Had to clean a lot of files packages and so ...
2
votes
1answer
28 views

Update Oracle JDK

I know, there are several ways of installing ORACLE jdk7 on Debian. One way is to use the ppa from the web8updteam but i've read that installing software from ppa is not recommended on Debian. (is ...
4
votes
2answers
107 views

Lots of processes killed by SIGTRAP

Since yesterday, my Linux (Fedora 20) randomly kills processes for no reason at all (at least from my point of view), and the bugs reports say that all these processes are "killed by SIGTRAP". It ...
2
votes
1answer
95 views

A file exists but executing it doesn't work

I downloaded a Java tarball, extracted the archive and copied over scp to a remote machine. Using the ls command, the java executable exists: ubuntu@Ubuntu:~$ ls -la /home/ubuntu/jre1.7.0_55/bin/ ...
0
votes
1answer
58 views

How to run jgrasp on ubuntu?

I have problems with jgrasp. I get the following error message when I run it. ----jGRASP exec: javac -g R.java ----jGRASP wedge: could not execute javac ---- error number 2. ---- ---- ...
1
vote
0answers
68 views

Measuring context switches of a LWP gives incorrect results. Why?

I have a Java thread pinned at my cpu core. It is busy spinning and I see through top that it is running fine: %Cpu0 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st %Cpu1 : ...
0
votes
1answer
80 views

I`ve installed sqlite. Now where should i find it? How to make connection from java? [closed]

I have Linaro 12.07 (Ubuntu 3) I`ve made sudo apt-get install sqlite3 libsqlite3-dev libxml2-dev g++ ncurses-dev and Linaro says: libncurses5-dev is already the newest version. libxml2-dev is ...
0
votes
0answers
61 views

Setting up apache axis client on centos

I have below codes. import java.util.*; import java.io.*; import java.net.URLConnection; import java.net.MalformedURLException; import org.apache.axis.client.Call; import ...
5
votes
2answers
7k views

java plugin does not work in chromium-browser (all possible attempts exhausted)

I was using google chrome browser on Ubuntu 12.04 machine, recently I needed to switch to chromium-browser. I am using the version that is available on the Ubuntu software centre. The problem is that ...
0
votes
3answers
658 views

How to write a Java Program / Shell Script combination such that you can call the Java program as a remote command and yet supply a local file?

This is related to How to execute a remote command on a local file? I wrote a simple Java program that prints the first line of a file - import java.io.BufferedReader; import ...
4
votes
1answer
586 views

What is the difference between JAVA_HOME and update-alternatives?

I have been trying to figure out the best way to run OpenJDK Java Runtime as default Java for my Fedora box and use Oracle JDK 6 for Android development namely for running Android SDK Manager, Android ...
0
votes
2answers
53 views

UDP sending two strings in a datagram

I'm wondering if its possible to send two strings within one datagram in a UDP packet. Assume I had string 1 with text: unix and string 2 with text: linux. I don't want to merge the strings but keep ...
0
votes
0answers
38 views

Moving Java sinks in PulseAudio

I want to record some gameplay on Minecraft. I created several sinks (and learned PulseAudio through trial and error). How can you tell Java/OpenAL to allow sink moving? I already edited ~/.alsoftrc ...
-2
votes
1answer
373 views

ADT bundle not installed in ubuntu 12.04

I downloaded ADT bundle from android developer site. Bundle name is :- adt-bundle-linux-x86_64-2014031.zip It contains eclipse, and sdk folder. In eclipse folder, there is one eclipse executable ...
0
votes
0answers
40 views

Java runtime.exec gives readlink:missing operand

I try to run the following with cmd = "mvn dependency:list" and workingDirectory a valid mvn project folder: Process process = getRuntime().exec(cmd, EMPTY_ENVIRONMENT_VARS, workingDirectory); ...
3
votes
1answer
37 views

program executing for 2 days

I have a java program which implements the Hungarian algorithm. I made changes to the existing code in such a way that the input is read from file. I have a pretty huge input around 32,000 rows for ...
0
votes
0answers
40 views

Shell script time output over java enviroment

I am running a script from java program using sshxcute API. Script contains: #!/bin/sh data=`stat -c%y filename` echo $data Script running on bash gives output: 2014-03-08 13:26:29.335545828 -0800 ...
3
votes
0answers
43 views

Flipping Control/Command in GNOME breaks Alt key in JVM

I want to switch Control and Command modifier keys in GNOME / Debian Jessie, because I use a Macintosh laptop. I have managed to get these changed via the TweakTool -> Typing panel, like this: Ctrl ...
0
votes
1answer
206 views

Run Java in a chrooted jail

I'm on a CentOS 6.5 machine with Plesk Panel which I used to create a chrooted environment for a user who can access it via ssh. I'm not a big expert but somehow I managed to let him use some basic ...