I’m working on XUbuntu 13.04 and developing swing applications. As I just wanted to try that application I ran into java.lang.NoClassDefFoundError: Could not initialize class java.awt.Toolkit on startup. I’ve found several questions about server/client vms and noticed that I have a server VM and that for Linux 64 there is no client VM anymore. But nevertheless IMHO this problem shouldn’t
Tag: linux
How to build OpenCV with Java under Linux using command line?(Gonna use it in MapReduce)
Recently I’m trying OpenCV out for my graduation project. I’ve had some success under Windows enviroment. And because with Windows package of OpenCV it comes with pre-built libraries, so I don’t have to worry about how to build them. But since the project is suppose to run on a cluster with CentOS as host OS for each node, I have
Java Process cannot get the InputStream through Runtime.getRunTime().exec()
The Code has issues with getting the InputStream from the Process, because if I run the Shell script from my Terminal it runs completely fine, but if I Run the Script like this,the str is always null, I am using this code to get the output of the Shell Script directly into Java instead writing the Script Output in the
Launching Processing.org App on Linux with Java Xmx
I have an application created with Processing.org and am trying to run it on Linux. Shortly into the app I get a Heap Size error. I am trying to run the app from the command shell with the line java -Xmx512m myAppNameHere but when I do this, I get a message that says “Exception in thread “main” java.lang.NoClassDefFoundError: myAppNameHere/exec” Then
Background process in linux
I have developed a Java socket server connection which is working fine. When started from a terminal, it starts from listening from client. But when I close the terminal it stops listening. I need to continue even though the terminal closed by user from where jar file was started. How can I run Java server socket application in Linux as
java executing bash script, error=26 Text file busy
I’ve got a java code that is writing a Linux bash script out, then doing a chmod to add execute permission, then trying to execute it. I’m getting an IOException during the start of the process saying error=26, Text file busy. I’ve verified that the file is finished being written and the stream was closed. The chmod works fine, but
Running shell_exec(‘which java’) in PHP return nothing
If I run from the command line I get the proper input (/usr/java/…/bin/java). However if I run it in a php script: nothing gets printed out for which java but I get the proper results for which ls… Answer Two things were needed: the full path to the JVM (it wasn’t set in the environment) ” 2>&1″ at the end
Eclipse release heap back to system
I’m using Eclipse 3.6 with latest Sun Java 6 on Linux (64 bit) with a larger number of large projects. In some special circumstances (SVN updates for example) Eclipse needs up to 1 GB heap. But most of the time it only needs 350 MB. When I enable the heap status panel then I see this most of the time:
Where to store application data (non-user specific) on Linux
In my OSGi-based Java application I am developing a bundle to provide the rest of the system with access to the file system. In addition to providing access to the user home directory, I also wish to provide access to a non-user specific area. Exactly what this area will be used for is as yet undetermined, but it will not
What are the main benefits of using Mono over Java? [closed]
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 10 years ago.