Questions tagged [java]
Widely-used object-oriented programming language, emphasizing portability. Questions about programming with Java are off topic and should be asked on stackoverflow.com.
2,375
questions
0
votes
1
answer
41k
views
"ps -ef | grep java" using java program [closed]
I'm attempting to execute ps -ef | grep java through java program. Here is my code-
// String sudoScript = "sh -c \"ps -ef | grep java\"";
String sudoScript = "ps -ef | grep java";
try {
...
0
votes
1
answer
2k
views
sbt - java.io.FileNotFoundException
I installed sbt following this instructions Getting Started - setup, on Ubuntu 12.04.
When I run sbt I see next output:
nazar_art@nazar-desctop:~$ sbt
java.io.FileNotFoundException: /home/nazar_art/...
0
votes
1
answer
112
views
.deb package for Ubuntu: detect preferred Java version
See also my related question.
Our Java application runs with Java 1.6 and higher, but we prefer 1.7 (because of certain additional features). When launching it how can I detect whether JRE 1.7 is ...
0
votes
1
answer
1k
views
What is the difference between an application server and php/java plus webserver?
Im having a hard time getting this terminology straight.
What exactly does one mean by application server? To me it seems like a webserver with added scripting capabilities like a AMP-server or ...
0
votes
2
answers
1k
views
Start java process with different names?
I have 2 eclipse and 2 servers running
If i make a ps -C java i see something like:
2460 pts/1 00:03:08 java
2908 pts/3 00:00:05 java
3045 pts/4 00:00:17 java
3284 pts/3 00:01:40 java
...
0
votes
1
answer
304
views
Fail to build openjdk 7 update 6
I downloaded the archive of openjdk 7 update 6 from this page:
https://jdk7.java.net/source.html
I tried to build it by following the README-builds.html but failed with lots of errors like "...
0
votes
1
answer
954
views
why update-alternatives --config java shows nothing?
I install oracle java JDK.rmp.bin on fedora. And installing by ". /jdk.rmp.bin", JDK is installed under /usr/java/jdk folder.
I could compile java files using command "javac" and "java". I could also ...
0
votes
2
answers
1k
views
Enabling Java browser plug-in on OS X 10.7.5
I have JDK 1.6.0_43 installed. My browser (Firefox 20.0) has Java applet plug-in 14.6.1 installed and enabled (which, according to Firefox's plugin check, is up-to-date). But applets do not work.
For ...
0
votes
1
answer
168
views
Installing Jenkins
I could not install the jenkins, below is the step by step that realized:
1) Downloaded the jenkins.war file that is in the folder C:\Users\Rafael\Downloads
2) Entered at the command prompt, and ...
0
votes
1
answer
308
views
Can't install JRE on Win8 VM
I'm running a Windows 8 x86 VM in Oracle Virtualbox, on a Windows 8 x64 host (don't ask why, I don't know either), and I need to install the Java Runtime Environment on it, but I'm having problems ...
0
votes
1
answer
1k
views
Despite being able to run "javac" through the command line, "where javac" doesn't match anything. Why?
Here are both input/outputs:
Running javac:
D:\>javac
Usage: javac <options> <source files>
Running where on javac:
D:\>where javac
INFO: Could not find files for the given ...
0
votes
1
answer
837
views
Install ant libraries on an Oracle Java 7 installation on Ubuntu
I was getting started on LibreOffice development and this link said to do sudo apt-get build-dep libreoffice and then do a git clone. Now, build-dep installs openJDK and I already have Oracle Java ...
0
votes
1
answer
2k
views
Can't connect to X11 window server using ': 2.0' as the value of the DISPLAY variable
I have connected Linux server (centos 64bit)using VNC viewer. Then I have tried to run java swing application using this command (java -jar app.jar).
I am getting this error "Can't connect to X11 ...
0
votes
2
answers
2k
views
Ubuntu-Java not working in chrome or firefox
I installed JDK-7 on to my Ubuntu 12.10 and JDK is not running in any of my browsers but I can right click a .jar file and it will give me the option to open with OpenJDK Java 7 Runtime. I can also ...
0
votes
3
answers
2k
views
Ubuntu 10.10 -bash: java: command not found
I just bought fresh VPS with Ubuntu 10.10.
I following this guide http://l2jserver.com/wiki/Setup_Server_-_Ubuntu for creating Lineage2 server, but this doesn't matter.
I try to use command java -...
0
votes
1
answer
715
views
Unable to install Java in Firefox
After installing Java (v.1.7.0_17) via the i386 RPM from Oracle and moving the libnpjp2.so file into the .mozilla/plugins directory, Firefox does not detect the plugin. From what I have read this ...
0
votes
1
answer
279
views
Issues getting Java installed in Chrome in Fedora 17 x64
I am having trouble getting Java to work in Google Chrome on Fedora 17 x64. I have installed the 64-bit RPM from Oracle's site and run yum install java, but it doesn't show up in Chrome. Is there ...
0
votes
2
answers
594
views
How do I get the accent-key feature to work with Java based applications?
I'm using Fedora 18 with Gnome 3.6, my keyboard layout settings is English (US).
When I need to write accented characters, I use the compose key (right-alt) plus the accent key (`) followed by the ...
0
votes
2
answers
3k
views
port forwading to make a server on my computer
I tried to make a chat program with java. i succeed when i use the ip of 127.0.0.1 to connect.
Socket socket = new Socket("127.0.0.1",5005);
it all worked great on my computer and the program even ...
0
votes
1
answer
2k
views
How can I install Java on a Samsung 3 Chromebook (ChromeOS)?
There don't appear to be any Apps for this, and from what I've seen Google and Oracle don't look like they're going to be getting along any time soon.
0
votes
1
answer
1k
views
java_home command missing on OS X [closed]
Mac OS X 10.8 does not include java_home(1). The Apple docs stop at 10.7.4, so I'm not sure what I should be using to set JAVA_HOME in a login script.
What are we supposed to use to set JAVA_HOME?
0
votes
2
answers
6k
views
Multiple instances of java.exe and javaw.exe
I'm running 64 bit Windows 7 on a quad core machine. When I run java -version in a command window, I get
java version "1.7.0_10"
Java(TM) SE Runtime Environment (build 1.7.0_10-b18)
Java HotSpot(TM)...
0
votes
1
answer
322
views
Oracle Java Ubuntu Installation - Javac not functioning
I have been trying to install Oracle Java 7 on Ubuntu 11.04. I was following the instructions given here
Once I followed all the steps ( to the letter ), I tried running
java -version
which gave ...
0
votes
2
answers
100
views
How to determine the exact java executable that a running app is using?
Suppose I click on a java app's icon, and the app starts normally. How can I find out the path to the java executable that is running the app?
Better yet, is there a way to find the exact command-...
0
votes
2
answers
2k
views
Cannot execute java command on Ubuntu
I am using Ubuntu 12.04, installed JDK and interestingly have the following error. Why do I have this error though java file exist in there?
appuser@securexmlgw-db:~/Downloads/jdk1.7.0_04/bin$ ls
...
0
votes
2
answers
529
views
Jdk 1.6.37 installation and setting up in fedora 17
I have installed jdk 1.6.37 in fedora 17 which already has java 1.7 openjdk i want to set java 1.6 as my default java how can i do this...
When i check the following command in terminal
...
0
votes
1
answer
196
views
Java weirdest behaviour ever?
Overnight, Java seems to have been corrupted on my computer. I had Java JDK and regular Java installed. The first thing that was happening when I tried to execute a .jar file was a message asking how ...
0
votes
1
answer
747
views
how to switch to another java version? [duplicate]
Possible Duplicate:
how to set default java plug-in version
I have Java 1.7.0_06 on windows 7. How can I get it to switch to use 1.6.0.23 without uninstalling the newer version?
I have an applet ...
0
votes
1
answer
254
views
Java Update Files
Win7 64-bit
I've noticed in the control panel > Programs and features
i have 3 Java Update installations
namely...
Java(TM) 6 update 30
Java(TM) 6 update 30 (64-bit)
Java(TM) 7 update 5
i usually ...
0
votes
3
answers
4k
views
Tomcat server is not starting with Liferay
I have Liferay version 6.1 and 6.0, when I start tomcat server its not starting , window close automatically.
Please provide any hints or solutions for this issue.
0
votes
1
answer
542
views
Why does it take so long for Eclipse to connect to a JUnitRunner process when IPv6 is enabled?
When IPv6 is enabled on my computer, half a minute passed between starting a new JUnit process and the test tree appearing in the JUnit view.
When I disable IPv6, the tests appear immediately.
What ...
0
votes
1
answer
1k
views
Issue with chained root certificate in Java on Windows Vista
I am trying to access a VPN server with an address like https://vpn.example.com using Firefox on Vista with the Sun Java plugin (SE 6 U24).
I'm using a server certificate issued by RapidSSL - signed ...
0
votes
3
answers
1k
views
How is it possible to install JRE on Ubuntu 11.04?
I have searched widely for an answer to this, but I couldn't find anything that would work. I currently have JRE version 1.6.0_26 (which I suspect is 6u26) however I want to upgrade it to the latest ...
0
votes
1
answer
6k
views
how to uninstall the jdk 1.7.0 in the ubuntu
i encounter a very strange problem,and here is the detail:
i'm going to uninstall the jdk 1.7.0.but when i use the rpm to check the appropriate name of the package,it prompt nothing.Anyway,when i use ...
0
votes
1
answer
3k
views
Windows 7 64bit + JDK/JRE = Slow System
Each time I install JDK/JRE I feel that my system has a bit more overhead to it and it feels a bit "heavier" than before. Are there any services that startup with JDK or Java related that get ...
0
votes
2
answers
934
views
How can I install Java SDK on Windows 7 without messing up the system?
I've installed Java SE Development Kit 1.6.0_31 32bit on Windows 7 64bit system, but this installation messed up my system, e.g. when I start Google Chrome I get error
Your preferences can not be ...
0
votes
2
answers
295
views
How can I do let the jar programme run more like a native programme? [closed]
Here is the problems, I have a jar programme, which help me to do something amazing...
I run it on terminal like this:
jar /application/amazing.jar
It runs, but it seems that take my terminal to ...
0
votes
1
answer
697
views
How can I make the watchpoints in eclipse show the values of my variables? [closed]
I am unable to see the values of strings and other variables when debugging Java in Eclipse.
How can I view the values of strings and other variables in my Java program?
I'm using Eclipse's ...
0
votes
1
answer
2k
views
Optimal way to export JDK_HOME setting in openSUSE for use with PhpStorm?
I'm trying out PHPStorm on openSUSE, and it requires the Sun Java JDK which doesn't come by default. I installed the Sun JDK based on directions here.
I can run PHPStorm file as root user after that ...
0
votes
1
answer
478
views
run program packed in sh file
I downloaded jgit packed in sh file and ran it in mingw. I watched in process list that java process was started just with main class and parameters
"c:\Program Files\Java\jdk1.6.0_26\bin\java.exe" ...
0
votes
1
answer
98
views
Configuring ethernet network in order to test client-server app written in Java
I have connected the two computers using an Ethernet crossover cable. But I just can't seem to make them work.
I know it certainly isn't some physical-connection-related issue, I mean it's just ...
0
votes
1
answer
2k
views
Https connection in java
I have successfully generated a keystore using
keytool -genkeypair -alias SomeAlias -keyalg RSA -validity 365 -keystore NAME.keystore -storetype JKS
placed it in tomcat config dir and updated ...
0
votes
1
answer
2k
views
How to install java on linux without using RPM?
I'm running java under a Red Hat Linux 3.4.6 and I have java version 1.4.2 installed somewhere.
I've downloaded and installed the tar.gz file for java jdk7. I've gunzipped the file and also added the ...
0
votes
1
answer
454
views
Java-based Programs on My Computer can't Download Anything
Ok this problem literally makes no sense to me, but here goes:
Java based programs that I use, eg. Minecraft, Eclipse, etc... are not able to update. The instant they start downloading an update, they ...
0
votes
1
answer
6k
views
java: command not found after installation
I have installed Jre in my CentOS by following instruction here
Installation
But the problem is each directory or file contains the "*" (asterisk) at the end of
file name or directory even though ...
0
votes
1
answer
453
views
MacBook Air Keyboard Mappings via VPN Java Client
I'm not sure if this is limited to only the MacBook Air's keyboard, but my company has implemented a cross-platform Java client for connecting to our remote Windows machines for VPN access.
The only ...
0
votes
2
answers
384
views
Problem Installing jre in Linux debian
I am trying to install JRE in Debian Linux.I tried this command and it got installed successfully,
apt-get install sun-java6-jre
after that the /usr/lib/jvm got deleted from me unintentionally.Now ...
0
votes
1
answer
422
views
How to use the latest Java from NetBeans 7.0 on TextMate?
Several months ago I downloaded NetBeans 7.0 with All Supported technologies from this page.
I find myself on TextMate more often instead of NB when experimenting Java codes, I open NB maybe once in ...
0
votes
1
answer
4k
views
Can I simply copy jre folder to another location?
I downloaded the bin file, and installed it but I haven't realized that I made the folder in the current directory. I would like to install in /usr/java.
Can I now just copy paste it there.
Or I ...
0
votes
1
answer
898
views
SELinux allow http requests on Fedora 14
I have a Fedora 14 instance on Amazon EC2 and I want to make an http request from that instance to another one in the same amazon security group. When I use wget to make the request it works fine. ...