25/12/2018 12:08
I can make a simple application execute correctly insidea JAR file. But when I try it with an app that usesJDBC, it chokes. If I double-click the JAR file inWindows, it just brings up a confirm dialog titled JavaVirtual Machine Launcher with the message Could not findthe main class. Program will exit. When I try it fromthe command prompt with: java -jar CourseExplorer.jarI get: C:Java>java -jar CourseExplorer.jar Exception in thread main java.lang.NoClassDefFoundError: larry/course.... read more

1 answersclick here to view

24/12/2018 12:08
Hi, when I use a debugger and step line by line I get a nullppointer in the recursive call: diff(child1, child2, types, prefix, diff); Exception is caught in I get detailMessage= Failed to compare documents: java.lang.NullPointerException I have checked : child1 is not nullchild2 is not nulltypes is not nullprefix is not nulldiff is not null I am open to all advice.
cheers, //Mikael

2 answersclick here to view

23/12/2018 12:08
Hi,I have a text box, a commandLink, and an IFRAME on the page. When Iput something in the text box and click submit link I want a jsf pageto display something from database inside IFRAME. The question is howdo i do it? Here is my jsf page: <?xml version=1.0 encoding=ISO-8859-1 ?><%@ page language=java contentType=text/html; charset=ISO-8859-1pageEncoding=ISO-8859-1%><%@ taglib uri=http://java.sun.com/jsf/html prefix=h%><%@ taglib uri=http://java.sun.com/jsf/core prefix=f%.... read more

3 answersclick here to view

21/12/2018 12:08
Hi,Below is a bit of code that I intend to use to perform a http Postrequest to an another application - which is still under development.
I would like to verify the implemention of this method ie it willperform a http POST request with the xml content to the specified URL.
I want to avoid mocking the HttpClient class. I would like toeffectively see this method perform the a actions and and some stubapplication receive the request ( get I presume). Any help, withexample code pls, would be very m.... read more

7 answersclick here to view

19/12/2018 12:08
I thought JavaFX was a simplified version of Swing. How can it replace a REST interface? -Thufir

4 answersclick here to view

18/12/2018 12:08
I have a stock market charting applet that needs a redraw button to be clicked before it will update. Does anyone know of a script that would do that automatically? I am not writing the software, just would like to not have to click the button every minute or so.
Thanks,Clark

4 answersclick here to view

17/12/2018 12:08
Hi,I have some *.jar files that need to be loaded by ant and currentlythese files need to be manually moved to ant's lib/ directory.
Is there any way to tell ant to load some jars from a folder other thanthe $ANT_HOME/lib location? Thanks in advance,Joshua

2 answersclick here to view

16/12/2018 12:08
I am new to programming and my first language i am using is Java. Anyways I have a source code here and it compiles fine but the program doesn't do what it is suppose to do. I know that the source code needs to be in the same directory as the program files. However, I don't know where the program files are. I have installed Jbuilder 6 personal edition (which i believe installs java virtual machine), Java 2 SDK 1.3 (which i believe is the compiler), and textPad (which is the editor- to wr.... read more

7 answersclick here to view

15/12/2018 12:08
I'm asking this because I don't mind spending hours or days on it if it ispossible, but I'd like to know if it's something workable before I spend along time digging into it.
I have people I'm working with who are behind firewalls. With some people,we've used different versions of VNC. Even though they're running theserver so I can help them on their computers, their connection is outbound,so most firewalls don't block it.
However, in some cases, I'm worki.... read more

2 answersclick here to view

14/12/2018 12:08
Hi, I think about solution of my exercise. Here it is: There is product which contains three components: a, b and c. There are3 processes (A, B and C) - each of them product one part (e.g. A createone part a) and put it into store-room. There is also process M, whichtakes one of each components and create product.
I have to do this using semaphores, but i wish to use least of them.
Maybe some of you have solution of this? I will be thankfull for anyhelp.

3 answersclick here to view

12/12/2018 12:08
i need to make applet that communicates with servlet,in a way that servletreads and sends one information form database every second to applet...
i don-t know what is the best way to do that,just the concept...i have anapplet that connects to servlet through URLconnection and reads servletsoutput from database..
thank you

3 answersclick here to view

11/12/2018 12:08
I am getting compiler warnings when using Vectors now, so I want to get rid of them by adding generics to my Vectors. Online it says to use the following syntax: Vector <Integer> v = new Vector(); I have a Vector as a member variable in one of my classes declared as: private Vector mNewStates; but when I add the generics to it like: private Vector <State> mNewStates; I get a compiler error, <identifier> expected. State is a class of mine which is being stored in the Vec.... read more

3 answersclick here to view

10/12/2018 12:08
Hi, I am getting this error in a block of code and cant really determinethe cause of it.. i read what the error means but doesn't make too muchsense to me.. was wondering if someone is willing to look at the codeand try to help out.. much apprecitaed..
The error is thrown at the second line..
Exception in thread main java.util.ConcurrentModificationException atjava.util.AbstractList$Itr.checkForComodification(AbstractList.java:448) at java.util.AbstractList$Itr.next(Abstract.... read more

6 answersclick here to view

09/12/2018 12:08
Hi all, I am currently developing a java application that has two JTextAreas.
I want to be able to limit the number of characters that a user canenter to 50. How would I go about doing this.
Any help in this matter would be highly appreciated.
Thank you

1 answersclick here to view

08/12/2018 12:08
Hi, I need to have a Weighted Linear Fit package for my project. I know that Linear Fit is very popular and a lot of people wrote it. However, I failed to search for such a class on Google (maybe I'm bad at googling).
Does anyone have such a class/package? If so, could you please send me it? Thanks very much.
Khoa

7 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 informationWe 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