Is there a Java library/API available to interact with Windows OS, like executing commands on the command prompt and returning the output back to the program?
Hey everyone,
So my setup for my web application is that I have a general header and footer and then I just include them in all my other pages so that all the common elements for all the pages are in a single page. The only problem I'm running into is when I want to redirect the user back to a login page if the "username" session has not already…
I'm looking for a Java web framework that requires the most minimal amount of configuration for a very small app. Spring & Struts are definitely overkill here. This is an app that could be written without any framework at all but I would prefer to use a minimal MVC framework if I can find one.
Is it possible to develop java me applications on linux? It appears that there is no linux version of the sdk. Otherwise what would you suggest as a good language to develop mobile applications?
Is there a good resource to get run times for standard API functions? It's somewhat confusing when trying to optimize your program. I know Java isn't made to be particularly speedy but I can't seem to find much info on this at all.
Example Problem:
If I am looking for a certain token in a file is it faster to scan each line using…
I'm looking to allow Jailed users to use JAVA (JRE) to execute their own Java files, similarly with Python to execute py scripts.
I've tried adding the JAVA binary (/usr/bin/java) to a jail using the following
jk_cp /path/to/jail /usr/bin/java
This seems to copy some of the libraries across, aswell as the Java binary itself,…
I am trying to install an application on a MAC 10.6.4, however i get an installation error that no java runtime environment.
However on the java website, the mac section indicates that MAC provides its own java and should use the software update software to get the latest java application. I have done this and gotten the latest…
I have a java application which I run using yasjw tool as a daemon. I need to monitor it in case it goes down I need some kind of alert or even restart it. Is there any tool can help me do this on centos environment?
The results of ps -ef | grep java
root 3109 1 0 Apr06 ? 00:04:35 /usr/java/jdk1.6.0_18/bin/java…
Hi can you help? I'm having great trouble launching Java applets using Windows 7 64 bit. I have the 32 bit version of Java installed (as recommended, for use with 32 bit browsers). When I click on an Java applet to open it the Java logo shows with a circular progress bar, but the process goes no further, just the progress bar…
I'm sort of a beginner with eclipse but I want to update the libraries or build path or whatever to java 1.7 from java 1.6 and I can't figure it out. I'm a computer science student at the university of washington and various TA's and students have tried to figure out this problem but it's stumped them all. I've installed java 1.7…
Hi,
I am trying to change the layout of my application from portrait to landscape and vice-versa.
But if i do it frequently or more than once then at times my application crashes.. Below is the error log. Please suggest what can be done?
< 01-06 09:52:27.787:
ERROR/dalvikvm-heap(17473):
1550532-byte external…
I'm trying to connect to a webservice over SSL using Apache Commons HttpClient 3.1, using this:
String url = "https://archprod.service.eogs.dk/cvronline/esb/LegalUnitGetSSLServicePort";
HttpClient client = new HttpClient();
PostMethod post = new PostMethod(url);
StringRequestEntity entity = new…
I am trying to use the Parse.com REST API in Java. I have gone through the 4 solutions given here https://parse.com/docs/api_libraries and have selected Parse4J. After importing the source into Netbeans, along with importing the following libraries:
org.slf4j:slf4j-api:jar:1.6.1…
I have problem with performance of Java UDR functions on Informix on Windows.
On this server I already have some functions in C and SPL.
I chose one function to write it in those 3 languages and I measured
performance of this function on test table.
Function calculates some kind…
Hi,
I am getting java.io.EOFException while reading a binary block from lucene index. I am storing java object as byte-array in lucene index field and reading it when hit occurs.
Here is stack trace :
Caused by: java.io.EOFException
at…
Hey,
I'm trying to write a SAX parser for an XHTML document that I download from the web. At first I was having a problem with the doctype declaration (I found out from here that it was because W3C have intentionally blocked access to the…
Hello I'm trying to access the keystore from my smartcard in Java. And I'm using the following code..
I'm using the Pkcs11 implementation of OpenSc http://www.opensc-project.org/opensc
File windows.cnf =
name=dnie…
I have problem with performance of Java UDR functions on Informix on Windows.
On this server I already have some functions in C and SPL.
I chose one function to write it in those 3 languages and I measured
performance…
Hello - I am using the IBM RAD IDE and building a dynamic web project. When I build the project and attempt to add it to the server by selecting 'add or remove projects' I get the response that there are no projects…
Hello Stackoverflow
my code is getting this error:
Skriv din alder herunder og tryk enter:
Exception in thread "main" java.util.NoSuchElementException
at java.util.Scanner.throwFor(Scanner.java:907)
at…
Hello.
I use library rome.dev.java.net to fetch RSS.
Code is
URL feedUrl = new URL("http://planet.rubyonrails.ru/xml/rss");
SyndFeedInput input = new SyndFeedInput();
SyndFeed feed = input.build(new…
Hello,
I am trying to run a java task from ant. I am trying to run the "org.apache.tools.ant.launch.Launcher" class. I keep on getting the "NoClassDefFoundError" without any class name being…
I wrote a remote service MyremoteImpl.java and used following command after compiled it.
rmic MyRemoteImpl
I learned that this method suppose to create stub class and a skeleton class but…
hey guys,
this is homework stuff, but the question is not much about coding. the task is to write a java applet to work on an m-grid server. i have the server running on apache. it has a…
I am currently working on an image processing demonstration in java (Applet).
I am running into the problem where my arrays are too large and I am getting the…