19/01/2018 12:08
Hi all, I am trying to build a serializable javabean.
What can I do with inputstream? Should I always read the whole stream andput that into a byte[] attribute? This doesn't seem a good solution.
What else could I do?Thanks.
m

1 answersclick here to view

17/01/2018 12:08
Just wondering why this won't work properly.....
HTML file: <HTML><applet code = Test.class width = 200 height = 200></applet></HTML> Java applet: import java.awt.*;import java.applet.Applet;import javax.swing.JOptionPane; public class Test extends Applet{ //data fields private String shapeChoice; public void init() { shapeChoice = JOptionPane.showInputDialog( Please enter C, S, or R: ); } public void paint(Graphics g) { if (shapeChoice == c) { g.setCo.... read more

1 answersclick here to view

16/01/2018 12:08
I'll try and keep this brief so in a nutshell: I have large distributed java system running on a Windows 2003 server(4cpu 8Gb memory).
Periodically the following exceptions occurs in the servers: java.net.SocketException: No buffer space available (maximumconnections reached?): recv failed I know for a fact we are not using too many TCPIP sockets or runningtoo many socket servers.
I have googled this error and found very little to help me.
What buffer space is this?What does recv failed.... read more

6 answersclick here to view

14/01/2018 12:08
I have a problem with this program, this is a mortgage calculator,there is no way I can make it work. No gui, this is a simple calculatorfor a java class. Please anybody can help. Thx public class MtgCalculator { public static void main(String[] args) { double monthlyPayment; double interest=3D5.75; double principleValue=3D200000.00; double montInterest; int years=3D30; int months; } //DecimalFormat result=3Dnew DecimalFormat($0.00) // Formulas used i.... read more

1 answersclick here to view

13/01/2018 12:08
Hello,I have a file in which i have points coordonnates, each line contains 3values , for instance: -0.9364249 -0.3042628 -0.7692308E-01 -0.7965705 -0.5787425 -0.7692308E-01 -0.5787425 -0.7965705 -0.7692308E-01 ...
I need to get every value, here is the code that i use, my variable motreturns the wole line instead of each value, i don't understand why, doessomeone knows?Thanks a lot, String chaine, mot; FileInputStream fichier = new FileInputStream(mon_fichi.... read more

7 answersclick here to view

12/01/2018 12:08
I am newbie to Java, am trying to get a program working, and I haveimported the java packages below along with many other imports : import javax.servlet.GenericServlet;....
xsltFile = new File(getServletContext().getRealPath(xslt/ +template)); if(!xsltFile.canRead()) { System.out.println(Error reading XSLT template file '+ xsltFile + '.); return 0; } I get the following error, can anyone tell me what the problem is? com etodutilMyClass.j.... read more

3 answersclick here to view

10/01/2018 12:08
Hi.
How to convert DOC, XLS files into PDF using Java API. Plz advice ifany already worked on this kind of. Thx.
BestRavi.

2 answersclick here to view

09/01/2018 12:08
Hello, Is there a way of accessing compile-time information such as Date and sourceline number as was available in many C and C++ compilers?I want a String that contains the compile time/date of a java class. Thiscan then be used in an Help/About to identify components of the Java app.
Maybe it is obvious but I can't find may references compile-timeinformation.
Any ideas? Nick Austen

1 answersclick here to view

08/01/2018 12:08
I am trying to read information from a mySQL database and display it ona jsp page and it is just not working. I've created the necessaryfolders and placed the necessary files in each. For example, I havethese files in the lib folder: jstl.jarmysql-connector-java-3.1.12-bin.jarstandard.jar Here is my code to try and read information in from the database: ****************************************************************<%@ taglib uri=http://java.sun.com/jsp/jstl/core prefix=c %><%@ t.... read more

1 answersclick here to view

07/01/2018 12:08
Is it possible to pass a simple but dynamic value from the intranet web-server to a Java Web Start application (jnlp) being hosted? I would like to be able to share/reuse a session token.
Thanks in advance,Casper

2 answersclick here to view

06/01/2018 12:08
I think I may have bitten off more than I can handle here but I thought it would be interesting to try to write a Java program to parse my firewall log and do traceroutes on all the IP addresses. I've done pretty well with it so far, but the command that I am using, while it runs fine from the dos prompt does not do what I expected it to when I run the code in my class.
Here is the method I have written to do the traceroutes. Basically, there's an input file containing IP addresses an.... read more

3 answersclick here to view

05/01/2018 12:08
why does tomcat sometimes give so little info on what is causing an error... how am I supposed to know what causes this error?? org.apache.jasper.JasperException: Unable to compile class for JSP: [ info missing here it seems...........] Stacktrace: org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java.... read more

6 answersclick here to view

04/01/2018 12:08
General Java Programming FAQshttp://freestudybookshere.blogspot.com/2008/07/general-java-programming-faqs.htmlGeneral Java Programming Tutorials freehttp://freestudybookshere.blogspot.com/2008/07/general-java-programming-tutorials-free.htmlIntroduction to Programming Using Java, Fifth Edit...
http://freestudybookshere.blogspot.com/2008/07/introduction-to-programming-using-java.htmlCommunication and Codes of Conducthttp://freestudybookshere.blogspot.com/2008/07/communication-and-codes-of-conduct..... read more

4 answersclick here to view

03/01/2018 12:08
How does one append to a JTextArea in such a way to tell it that you want this on a new line? Thanks.

5 answersclick here to view

01/01/2018 12:08
In the following code I am trying to assign a volunteer stored in 1 arraylist to a person sored in another array list. I need the method to checkif the volunteer is already assigned to a person and if so not allow themto be assigned to another person and also to check if the person alreadyhas a volunteer assigned to them and not to allow that either. Thefollowing code however does not seem to compile. any suggestions? public void assignVolunteer(String volunteersName, String personsName) { .... read more

1 answersclick here to view

eDiscover
Helpforce eDiscover provides technical articles updated each day
Click the logo to go back to the main page
Java

Helpforce eDiscover RSS feed contains the latest technical articles in RSSWe have a vast archive of technical informationJava is a programming language developed by Sun Microsystems (which has since merged into Oracle) and released in 1995 as a core component of the Java platform. With many innovative features, Java is currently one of the most popular programming languages in use, particularly for client-server web applications, with a reported 10 million users.

Search eDiscover
  
Categories

Click an icon to go to that category

Helpforce eDiscover contains articles about Microsoft Windows Helpforce eDiscover contains articles about Apple products and MacOS Helpforce eDiscover contains articles about Linux and POSIX operating systems Helpforce eDiscover contains articles about Helpforce Helpforce has a large variety of technical information and articles for you to read Helpforce eDiscover contains articles about databases, MYSQL, SQL Server Oracle Helpforce eDiscover contains articles about Java, JVM and the JRE Helpforce eDiscover contains articles about the QNX operating system Helpforce eDiscover contains articles about Oracle Solaris and Open Solaris Helpforce eDiscover contains articles about RISC OS, Acorn and the BBC Micro Helpforce eDiscover contains articles about Amiga and AmigaOS