I am looking for a easy to use library in java that can convert a video into arrays(corresponding to frames). Arrays will be used for frame processing with standard algos like GMM
I'm trying to install the Java Enterprise Edition 6 on my workstation. I downloaded the installer from the Sun website. Whenever I get to the option in the installer "JDK Selection" I'm told to manually select a JDK. I gave it my path (C:\IBM\rad7\jdk\), and was told it is invalid. What do I need to do to successfully install JEE6?
Is there way to use more than 1 layout manager in Java. Right now I'm using a gridLayout to implement a chess board but beneath it I would like to put some other stuff but not in a gridLayout. Maybe a FlowLayout or some other layout. How would I go about doing this?
Thanks!
Hi,
On my Windows machine, my main hard drive has the letter C: and the name "Local disk".
To list the drive letters in Java on Windows, the File object has the static listRoots() method. But I can't find a way to acquire the drive names (as opposed to the drive letters) on Windows.
Has anyone tried this before?
Thanks,
Mattijs
Hi,
Sorry, I'm quite new to Java.
I've stumbled across HttpGet and HttpPost which seem to be perfect for my needs, but a little long winded. I have written a rather bad wrapper class, but does anyone know of where to get a better one?
Ideally, I'd be able to do
String response = fetchContent("http://url/", postdata);
where postdata is optional.
Thanks!
I want to read a text file containing a space sepearted vlaues.Values are integers.
How can i read it and put it in a array list??
eg of contents of texx file
1 62 4 55 5 6 77
now i want a arraylist as [1, 62,4,55,5,6,77].
How do i do it in java?
I have Java Applet(J2EE), I want to make it accessible only to a certain set of users,by authenticating them using username and password.What is the the best way of doing this?
I need to provide a report of which APIs are used by our code. For a Windows DLL, I would use "dumpbin /imports" - is there an equivalent for a Java .class file?
javap seems to be the obvious place to look, but I can't find any options that seem to do what I'm after.
Thanks!
Currently there exists a need to create an application that will serve 5 different customers each requiring their own specific URL and content repository. My question is when designing this application what should my considerations be for protecting the content of the individual customers while meeting the requirements of the unique URL. The system will be sitting on Windows with a postgres database and java as the implementation language.
Is there any equivalent of Reactive Extensions (.NET) for Java?
About Rx (Reactive Extensions)
Rx is a library for composing asynchronous and event-based programs using observable collections.
I am aware of rule engines such as Drools from JBOSS, but is there some other way that is closer to the Microsoft .NET approach?
I need a nautilus-style file picker in java, where the files are shown "gallery-style" with a customisable thumbnail for each file. Is it possible to make the standard open file dialog do this? If not, does anyone know of an open-sourced widget that I can use?
I am writing a program that reads the input from a file and then prints it to the screen. When I run it without taking the input from the file, it works perfectly fine. However, every time I try to run it from the file it gives me an "Exception in thread "main" java.util.NoSuchElementException: No line found at" error that occurs every place the input is suppose to be read. I have no idea what is going on.
Clojure is said to be a language that makes multi-thread programming easier.
From the Clojure.org website:
Clojure simplifies multi-threaded
programming in several ways.
Now I'm looking for a non-trivial problem solved in Java and in Clojure so I can compare/contrast their simplicity. Anyone?
Is there any way I can get system info, like processor/ram etc (preferably cross platform, in browser)?
I am looking to implement this in a website, so I need it in either flash or a java applet.
public static void main(String[] args)
{
int [][]shatner = new int[1][1];
int []rat = new int[4];
shatner[0] = rat;
System.out.println(shatner[0][3]);
}
surprised, The answer is 0, Java doesn't check this kind of indexOutOfBound error?
Sorry if this sounds like a dumb question but how do you time the execution of a java program? I'm not sure what class I should use to do this.
I'm kinda looking for something like:
//Some timer starts here
for (int i = 0; i < length; i++) {
// Do something
}
//End timer here
System.out.println("Total execution time: " + totalExecutionTime);
Thanks
I have a program that needs a lot of memory and want to set the maximum heap space at 6024MB.
Java gives me the error:
Invalid maximum heap size: -Xmx6024m
The specified size exceeds the maximum representable size.
Is there a workaround?
I have started making some small Java games that run in a browser and have found a couple of game portals where I can host then (GameJolt.com, JavaGameTomb.com and Games4j.com). Most of the other portals I find either only allow Flash or offer the games for download.
Apart from those above, what other portals exist that allow hosting applets?
I have written a java application which is a RMI server. I need to start rmiregistry to run this application and i also want my apllication to start automatically when the system starts.
I have converted my application into a windows servise. When i try to start my service it shows this error
Error 1067: The process terminated unexpectedly
Is it because my program throws an exception when my application is started before the rmiregistry is started.
Can anyone tell me how to stream my desktop through sockets in Java? I tried using screen captures and sending them 1 at a time but it's no good. Too slow! I think to redirect the video stream would be better.
Hi everyone,
I have a double number like 223.45654543434 and I need to show it like 0.223x10E-3
for example,
how can I do it in java????????
URGENT!!!!!!!!!!!
thanks!
What would be the best way to wait for a return key press from the user using the Java Scanner Class?
In a command line tool I would like the user to confirm before carrying out an action.
Please correct me if there a more standard way of doing this in a command line tool.
Hello all,
Is there a java equivalent to python's bisect library? With python's bisect you can do array bisection with directions. For instance bisect.bisect_left does:
Locate the proper insertion point for item in list to maintain sorted order. The parameters lo and hi may be used to specify a subset of the list which should be considered; by default the entire list is used.
Can any one let me where the memory leaks can happen when we are developing Java based application.
I am aware of Database but apart from that, is there any other possible ways .
Please list the scenarios