14/01/2019 12:08
I develop a small web application with NetBeans and Visual web pack. I need to add some dynamic 2D elements on my page. Which tehnology is the most suitable for that platform ?

8 answersclick here to view

13/01/2019 12:08
How can I display which type an object has, for debugging.

4 answersclick here to view

12/01/2019 12:08
I'm getting the following two errors: C:Documents and SettingsRichardSemesterStudent.java:17: cannot findsymbolsymbol : constructor CollegeCourse()location: class CollegeCourse courses[x] = new CollegeCourse(); ^C:Documents and SettingsRichardSemesterStudent.java:32: cannot findsymbolsymbol : variable courseslocation: class Student System.out.println(courses[1].getcourseID()); ^ Here are my two java classes: //CollegeCou.... read more

1 answersclick here to view

11/01/2019 12:08
Currently I defined manually the ejb-jar.xml for a EJB SessionBean.
Is there a tool which does this automatically for me?In other words I pass the java source (or binary class) to it and the toolfetches all necessary information from it and generates the suitable ejb-jar.xml.
By the way: is the definition of ejb-jar.xml Application Server independent?Can I use the same ejb-jar.xml for deployment on JBoss or TomCat or Jetty or WebSphere? Ray

2 answersclick here to view

08/01/2019 12:08
HiI have a problem in a program design. I want to implement anapplication that transfer files between two folders. Folders can be inthe same or remote computer and can have differents types (ftp or filecopy, for example). For example, I want to transfer a file from ashared folder in a remote computer to a remote ftp site. I have madethis design: public class Site { String folder;}public class RemoteSite extends Site { String host; int port;} public abstract class TransferType { public abstr.... read more

1 answersclick here to view

07/01/2019 12:08
I seem to be having some trouble with a list of lists. Here's thecode: //build a list of lists ArrayList<ArrayList> listOfLists = new ArrayList<ArrayList>(); //build a list of DataPoints ArrayList<DataPoint> listOfPoints = new ArrayList<DataPoint>(); //put a few DataPoints in the listOfPoints DataPoint point = new DataPoint(Howdy, 1); listOfPoints.add(point); point = new DataPoint(Dude, 2); listOfPoints.add(point); //put the listOfPoints in the listOfLists listO.... read more

4 answersclick here to view

06/01/2019 12:08
I want to know why the variable 'i' is not recognized within the 'try' function? The code is below: for(int i =1; i<stock.length;i++) { System.out.print(Input the price: ); System.out.flush(); try { if ((line = stndin.readLine()) != null) stock[1].price = Double.valueOf(line).intValue(); } catch (IOException e) { } System.out.print(Input the quantity: ); System.out.flush(); try { if ((line = stndin.readLine()) != null) stock[i].qua.... read more

2 answersclick here to view

05/01/2019 12:08
I'm trying to do some proof-of-concept trials to determine whether wecan use Java as a way forward for our on-going thin-client development,and I've hit a language problem.
I hope I'm not breaking any rules by posting my source code here, but Ijust can't see what's going wrong. I suspect it's a scope error.
To keep it more simple, I've removed all the Netbeans IDE stuff out.
The tableTraveller.newRow(ttr) line fails with 'cannot resolve symbol'.
It looks fi.... read more

4 answersclick here to view

03/01/2019 12:08
I appreciate the feedback. I have struggled with this problem. And I have already done it the long and tedious way, but I am almost there. I just have to figure out all possible moves. I guess which ones are valid, invalid, and winning. Once I do that I just use a switch statement to display the results. And then I am done, hopefully.

3 answersclick here to view

02/01/2019 12:08
Hi all, I'm really struggling trying to figure out how best to approach aproblem I have.
My project is a simple web application that requires userauthentication. To accomplish this, the first page is a login JSPthat forwards a user's credentials to a loginCheck servlet. Uponapproval, it forwards to the main JSP of the app.
If a user has already logged in (User bean object created and in theSession), I want it to redirect all requests to the main JSP ratherthen the login JSP.
I creat.... read more

3 answersclick here to view

01/01/2019 12:08
For some reason Im having a problem passing the value of n out of thegetEasterSundayDay() method.
If I do a return n in the getEasterSundayDay() method I get the month valuecorrectly. But when use n in the switch statement it comes back a 0everytime and returning emonth comes back as Error3..any ideas?..thanks Ive been told this is the reason but I dont understand: The problem is occurring because you are setting the day instance value whenyou call the getEasterSundayDay() method. However, yo.... read more

1 answersclick here to view

31/12/2018 12:08
I have recently earned Sun certification for Java. How do I next upgrade myJava skills for the 'real world' challenges? Should I learn Swing andBeans (which were not part of the certification)? Are these usedextensively in the real world. And what about Java development platforms(IDEs)...is there any freely downloadable IDE which closely simulates theIDEs that are actually used for developing Enerprise Java applications.
I understand that this is kind of a very generic question but I am.... read more

3 answersclick here to view

28/12/2018 12:08
Hello,I have downloaded a web page with its applet extension and put into mypersonal PC. Although I address my personal drive and a temp html folder, Iam unable to start this applet and view it in IE. Please help how to run ajava applets while offline in a non-network environment. What did I do wrong? (No parameters are driven by this applet!) See below html code which runs applet.
<!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN><HTML><HEAD><META http-equiv=Cont.... read more

3 answersclick here to view

27/12/2018 12:08
Hi.
i have created a numer of LinkedLists LinkedList [] myLinkedList;myLinkedList = new LinkedList [100]; new i would add an Integer object to any of the LinkedList Integer someValue = new Integer(23);myLinkedList[0].addLast(someValue); this compiles fine, but when it runs i getException in thread main java.lang.NullPointerException at Program.main(Program.java:53) the line that has the problem is the line with: myLinkedList[0].addLast(someValue); why does this happen?there seems to be n.... read more

4 answersclick here to view

26/12/2018 12:08
Hi in the past i was using the followng code below to check if aserver was up and if it was to call a jsp...
However the jsp now resides to my server so there is no point reallyof chekcing if it is up to call it ..
So how can i check that the specific page e.g http://server.com:8100my.jsp is up?? (resouces / snip of codeplease) try { InetAddress address =InetAddress.getByName(servername.com); System.out.println(Name: + address.getHostName()); System.out.pri.... read more

2 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