java

Any Open Source NTFS, FAT32, HFS or EXT implementations in Java?

I do work in computer forensics and am trying to move my codebase from C++ to Java. I need a good open source implementation of all the various filesystems in Java to help this effort. Does anyone know of such an implementation? ...

Is there any WCF equivalent in any platform other than .NET?

In other platforms can I develop a service without worrying about addresses and bindings? What is the name of equivalent technologies for Java, Python and other environments? Edit: For those who are unfamiliar with WCF, this is a part of the .NET 3.x framework whose main feature is to enable developing services that can answer multiple ...

api documentation for java web application?

after i created a java web application in netbeans i encounter class like javax.servlet.http.HttpServletRequest. I cant find this class in the usual SE API documentation online. is there another API documentation for web application classes in java? ...

Tired of Java IDEs, Need simple and basic alternative.

Hello friends, I am really happy that I got my work in Java programming, and I am doing it since last 3 yrs. And I am netbeans user, and worked on eclipse for sometime (4 months).. Now I am tired on IDE's and its issues.. few issues are: Doesn't work on slow computers - sometimes i have to work on slow computer.. You can't work ...

help with understanding interface-declaration of an object

could someone please explain this java code for me. i find it really hard to understand. protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String firstName = request.getParameter("firstName").toString(); processRequest(request, response); } so request is an o...

how to get parameter names of a method/operation from a wsdl file

I'm trying to develop a form generator from a given wsdl file in java. Here is a post about the project: http://stackoverflow.com/questions/1972110/java-form-generator-from-a-given-wsdl-file I could read operation names from wsdl file, and their bindings, but I need to get the parameters or arguments of a given operation from the wsdl ...

my Java class addUserToTheList() doesn't work

I have the following two classes: import java.io.*; import java.util.*; public class User { public static String nickname; public static String ipAddress; public static ArrayList<String> listOfFiles; public static File sharedFolder; public static String fileLocation; public User(String nickname, String ipAddre...

How to quote/escape identifiers such as column names with JDBC?

Different database servers use different ways to quote and escape identifiers. E.g. "foo bar" vs `foo bar` vs [foo bar], or "10""" vs "10\"", or identifiers such as FooBar or array need to be quoted for some databases but not for others. Is there any API method that performs the quoting/escaping correctly for a given database connectio...

Usable frame size and Windows Manager frame size

Hi, I'm setting a JFrame size with myFrame.setSize(Xsize,Ysize), but it gives me a problem : this doesn't define the usable space in the frame but the whole frame's size (it include the Windows Manager frame size, which isn't always the same). Is there any way to define the JFrame size by defining the usable space size ? ...

Java-Mac OS X integration without breaking platform independence

I want my application to integrate Mac OS X better. I've read Mac OS X Integration for Java and I've learned I have to import com.apple.eawt.* and write some extra code. But, if I do this, my application is not going to work on Windows because of missing reference. I could do this with preprocessor command if I write in C but this is Jav...

String Tokenizer

Can anybody help me understand how this string tokenizer works by adding some comments into the code? I would very much appreciate any help thanks! public String[] split(String toSplit, char delim, boolean ignoreEmpty) { StringBuffer buffer = new StringBuffer(); Stack stringStack = new Stack(); for (int i = 0; i < toSplit....

google maps export driving directions to kml file - java geogoogle

Hi Sorry at first for my poor grammar. I am writing a program in Java using geogoogle (Google Geocoder Java API) http://geo-google.sourceforge.net/ I need from two specific points to get the walking directions between these points and also these info to be exported in a KML file. Do you know how can I do it from Java? Is there an API...

Access scanner from Java or Python (or something else if it's technically motivated) in Linux (but Windows would be nice)

Hi, I want to write a system for handling important documents in my home. This is the user story for getting a new document: I "Add new document" and am prompted to scan it using my combined printer/scanner. I view the scanned copy to see it's of good enough quality. Which it has. The system tells me to mark it with number N, which I ...

Sending keystrokes from a C# application to a Java application - strange behaviour?

Hi. I'm trying to send keystrokes from my C# program to a Java application The code for sendig keys is: private void SendKeysToWindow(string WindowName, string KeysToSend) { IntPtr hWnd = FindWindow(null, WindowName); ShowWindowAsync(hWnd, SW_SHOWNORMAL); SetForegroundWindow(hWnd); SendKeys.Send(Key...

How to use java.util.Observable from Javascript?

I'm building a Drupal module that integrates the "FileCatalyst" Java FTP applet with a standard Drupal form. I'm implementing a hook to submit the form when a file transfer completes. Currently I'm polling the applet with a setTimeout() call, but this method can miss changes of state if they happen too fast. However, the FileCatalyst ob...

Adding Google App Engine support and keeping standalone support.

I have a java web application built on Stuts2/Google Guice/JPA. It uses hibernate as the JPA vendor. I would like to add support so it can be used on Google's App Engine. Of course I'm running into issues with the queries and mappings. Such as Many-to-Many and joins not being supported. I'm trying to come up with the best solution f...

Java JRE 64-bit download for Windows?

I'm working on a web site project with a Java component and am currently testing for cross-browser compatibility. Most is fine but the Java part won't load on 64-bit browsers. Looks like I need a 64-bit JRE to test. Where does one download the (off-line) 64-bit Java runtime installer for Windows? The official download page is here: http...

Ids not available from proxy object

I have the follow object: @Entity @Table(name="slideshow") @Searchable public class SlideShow implements Serializable { @Id @GeneratedValue(generator="slideShowSeq") @SequenceGenerator(name="slideShowSeq", sequenceName="slideshow_seq") @SearchableId int slideShowId @SearchableProperty String name @Man...

rapidly create webpage front end

Exposition: I'm familiar with C/C++/Scheme & OpenGL. I have this client/server program written in Clojure that serves as a todo-list/wiki/forum. The server is written in Clojure. The client is written in Clojure and uses SWT. Question: I want to rapidly create a web client version of this. What is the best way to do this? (I Don't use...

Get absolute path and filename from VideoView object

Just started writing java / android and I am trying to use android.widget.VideoView. I set the video by using the setVideoPath('/path/filename') method, but can't seem to figure out how to get the path on an existing object? I'm using methods such as 'getDuration()', and 'getCurrentPosition()' and they work great.. but where is a getPa...