java

How do I decipher garbled/gibberish characters in my networking program

I am working on a client-server networking app in Java SE. I am using stings terminated by a newline from client to server and the server responds with a null terminated string. In the output window of Netbeans IDE I am finding some gibberish characters amongst the strings that I send and receive. I can't figure out what these characte...

Has anyone used Lua to build a web application?

I come from a Java and PHP background to build web applications. Has anyone used Lua before to build a web applications? Question: If so, what are the pro's & con's of using Lua versus PHP or Java for a web application? (e.g. web server support, performance, code maintenance, etc). ...

Generating javadoc for project involving scala modules

If I have a project which has some of its modules in scala (ie java modules, scala modules side by side) - how have people solved combining scaladoc generated HTML with javadoc generated to provide a single view of the documentation for the project? (this could be using maven, or ant, more a general question). Any thoughts and experi...

equals() method?

shouldn´t one pass an object to equal? String hej = pets.getBark(); if(hej.equals("woff")) why are you able to pass a string woff? ...

how do i remove redundant tuples in microarray data using java programming ?

In WEKA-a data mining software for the MICROARRAY DATA, how can i remove the redundant tuples from the existing data set? The code to remove the redundancy should be in JAVA. i.e, the data set contains data such as H,A,X,1,3,1,1,1,1,1,0,0,0 D,R,O,1,3,1,1,2,1,1,0,0,0 H,A,X,1,3,1,1,1,1,1,0,0,0 C,S,O,1,3,1,1,2,1,1,0,0,0 H,A,X,1,3,1,1,...

What is object graph in java?

Whenever I study Garbage Collector I hear the term object Graph. What does it mean exactly? ...

Change WebService endpoint address at run time

I used Netbeans to generate Web Sevice client code from WSDL url. But I can't change endpoint address at run time using code. Please help me to solve that problem! ...

how to query a particular user in data store of google apps

I have done the sample guestbook project at http://code.google.com/appengine/docs/java/gettingstarted/usingdatastore.html in this project instead of displaying all the comments to a user I want to display only the comments posted by the current user. for that I query the datastore with where condition for user. But an error is throwing...

sqlserver 2000: how to make aynchoronous call to procedures in database?

back end java 1.4 with EJB 3.2 data base sql server 2000 How to make asynchoronous call to a procedure from java code using jdbc? ...

Plot points with different color based on the value in Line graph using Jasper Reports

I have a line chart generated from a SQL, I need the data to be plotted in different colors based on the value. For example: Green color for positive values and Red color for negative values. I have added the jrxml content, <parameter name="conName" isForPrompting="true" class="java.lang.String"/> <paramet...

can import the classes present in the remote system?

i have a server machine where all the helper jars and classes present, which i want to use. is it possible to import those classes in my application? ...

print arraylist element?

how do i print the element "e" in arraylist "list" out? ArrayList<Dog> list = new ArrayList<Dog>(); Dog e = new Dog(); list.add(e); System.out.println(list); ...

requestDispatcher Interface Vs sendRedirect

Hi, Can I know the difference between the RequestDispatcher interface and sendRedirect(). Thanks Ravi ...

What is/are the Python equivalent(s) to the Java Collections Framework?

The Java Collections Framework is like the C++ Standard Template Library: "a unified architecture for representing and manipulating collections (objects that group multiple elements into a single unit)." http://java.sun.com/docs/books/tutorial/collections/intro/index.html ...

"Auto increment" alphabet in java?

"Auto increment" alphabet in java - is this possible? From A to Z without a 3rd party library? ...

I got error named no suitable driver?

I couldn't find out why it shows error. I have created table named books in Oracle priorly. create table books(num number); Then I wrote code in Java: Class.forName("oracle.jdbc.driver.OracleDriver"); con=DriverManager.getConnection( "jdbc:oracle:thin:@CF:1521:orcl", "scott", "tiger"); Statement s=con.createStatement(); s...

Change Directory in MATLAB from Terminal/JAVA

Hi all, I need to be able to change the working directory in MATLAB without interacting with the command window. I'm launching MATLAB from a Java application. Right now the only solution I've come up with is closing MATLAB, changing directory from JAVA and relaunching. Is there some streamlined way to send MATLAB the 'cd' command from J...

How debugging is much easier in eclipse for java programs?

Hi, Whenever I write a program in eclipse each line gets complied as go to next line.It shows compilation is done while writing he program only. Does it mean javac.exe file is run whenever you write a line of program? It debugging is much easier in Eclipse. ...

How can i get error page from a servlet?

i am using tomcat, i defined some error-page in web.xml and mapped 404 error to page /error/error.jsp, but i need a servlet to detect if the resource exist, i want to set the Response status to 404 if the resource is not available, but tomcat would not redirect to the page i defined, so my question is: is there any api to get the page l...

is anybody have experience of using J/XFS?

i have to use j/XFS implementations with my java application. and i dont have any idea of what j/xfs is? on google also i found only one small 15page document. so can anybody give me some links? ...