35,617 Topics
![]() | |
Hi, We are using AD 2003 server x64. Created new certificate, exported it into a file and using a simple LDAP Browser or a java code when we try to bind through SSL it fails and we are getting an error called SSL handshake failed: Simple bind failed. Please help … | |
I am not sure whether I am placing a Q in the correct section or not. let me give the scenaria I have the xml tag infos [CODE]<credentials> <userId>raj</userid> <password>raj</password> </credentials>[/CODE] i wanted to give this info to logger,(ie) [CODE]log.append(taginfo);//taginfo will be having this credentials[/CODE] Now i want to remove … | |
Hi, i have eclipse indigo 3.7.1 and running xampp 1.7.4 with the tomcat plugin. I followed the tutorial at [URL="http://www.vogella.de/articles/EclipseWTP/article.html"]http://www.vogella.de/articles/EclipseWTP/article.html[/URL] and all went well till i reached the jsp/servlet tutorial where i keep getting a HTTP 404 error saying "[B]de.vogella.wtp.jsp.controller[/B]" is unavailable, preventing me from navigating amongst the pages. Thanks. | |
i'm trying to write a game that show a background and a player on screen simultaneously using 2 different classes. here are the relevant parts of the program, or at least i think [code]public WorkingTitle2(){ super("Working Title"); setSize(550,429); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); loadPictures(); loadSounds(); pp = new PaintP(); pb = new PaintB(); add(pb); … | |
Okay here is my question, I have an text file file which looks like this BASKETBALL John Jacob 58% 15points FOOTBALL Jason Smith 24% 1touchdown BASKETBALL Mark Ramos 23% 25points BASEBALL Isaac David 10% 2 homeruns FOOTBALL David Sarlo 10% 0 touchdowns I am attempting to take a list like … | |
| |
I have an array of cards. It looks like this [CODE] String cards[][] = {{"Spade", "Heart", "Club", "Diamond"}, {"1","2","3","4","5","6","7","8","9","10","J","Q","K"}}; [/CODE] how would I get the suit and the "rank" of the card. I have tried [CODE] System.out.println (cards[1][5] + " of " + cards [1]); [/CODE] but that gave me … | |
[CODE]import java.io.*; import java.net.MalformedURLException; import java.net.URL; import java.util.logging.Level; import java.util.logging.Logger; public class WebHelper { public static String getWebContents(String url) { BufferedReader br = null; String result = null; try { URL toFetch = new URL(url); br = new BufferedReader(new InputStreamReader(toFetch.openStream())); StringBuilder ret = new StringBuilder(); String line = br.readLine(); while … | |
I cant see to figure out what im diong wrong here... many errors [CODE]public class Card { private String suit; private int face; public static void main(String[] args) { Card allSuit[] = new Card[4]; for (int i = 0; i<allSuit.length; i++) { allSuit[i] = new Card(); } allSuit[0] = new … | |
I am trying to create waypoints from a given file waypoints.txt I first created the waypoint class [CODE] import java.io.*; import java.util.*; import java.util.HashMap; import java.util.Iterator; public class waypoint { int x; int y; int height; int cost; int gold; int mapX; int mapY; public waypoint(int myX,int myY,int myHeight,int myCost,int … | |
Hey there, I built the following app; A frame that with three sections inside it. Each section is actually a panel. The first panel is a form I use for saving soccer matches on my database; The second holds only one button that reads textfields from the form above and … | |
i get no GUI when i run! import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Calculator { private JTextField resultTF; private JButton calculateB, numbersB[] = new JButton[11]; public void driver() { //Create Window JFrame calc = new JFrame("Calculator version 1.0"); calc.setSize(500, 500); calc.setDefaultCloseOperation(calc.EXIT_ON_CLOSE); //Get the content pane (object of type … | |
To play audio clips in an Applet either in browser or viewer, needed set any env var, or plugin to install? | |
How to insert jsp testbox values in sql database in button click plz help | |
I want to know that wheather php is good or java for web apllication development? | |
![]() | The Class has no error, but the test program has a constructor error on line 21. [CODE] /** * DataSet Class * * @version 10/3/11 */ public class DataSet { private int Sum; private double Average; private int Largest; private int Smallest; public DataSet(int Sum,int Largest,int Smallest, double Average) { … |
I have to make a bank GUI and I have a Jlist that populates with the customer objects (viewable by name) and I can view their individual info... but when I select the customer, I also want to be able to pull their account info and put it in a … | |
Hi all, I am trying to compile a servlet, and am getting the following error. [code] C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\flatironswp1\WEB-INF\classes>javac export\ExportUtil.java export\ExportUtil.java:5: package javax.servlet.http does not exist import javax.servlet.http.*; ^ [/code] and here's my code: [code] package export; import java.io.*; import javax.servlet.http.*; import javax.servlet.*; public class ExportUtil extends HttpServlet … | |
I am going to make a project. My professor told us to make any java program. I am planning to create a grading system. That outputs: Name: Student Number: Course: Class Standing: Seatworks Grade: 5% Homeworks Grade: 5% Quizes Grade: 15% Preliminary Exam: 35% Final Exam: 40% Total: 100% and … | |
Hello everybody. I am new to java and to this forum so please excuse my mistakes. i wanted to knew what happens internally when we do typecasting of any reference variable to its super type/sub type.Does there is any change in its reference? | |
Hello, I recently started learning java, and I am trying to make a program and I am running into some trouble. Basically what I want is for the user to input the number of people attending a movie, and then the user could input all of the ages of the … | |
I really need help with my assignment for java. Please give me a little push start with this assignment. I am really bad with getting the concept of the arrays. Please give me the starting part for a couple of classes and the driver class. Once i get started i … | |
I am creating methods that will extract info out of a text file. The program is for a real estate office manager who needs to run reports on property listings. The text file will contain property number, property type, price, and agent id as follows. [CODE]110001 commercial 500000.00 101 110223 … | |
Hai Fiends, I need to add \r\n(if \n is present or not) at end of every line of a huge file. how can i do this in java, with high performance. please help me in this problem. | |
Hey there everyone. I wondered if anyone could help me out with writing a simple program that checks through blocks of HTML code replacing specific sections of code within each block of 3 <div>'s. It is basically to make my life easier when I have to edit a website, otherwise … | |
Hi everyone, I am doing a Java course at uni at the moment and it kinda doesn't make you become a real programmer with the confidence that a programmer should have. I really want to program in Java and any language(not python though because it is not a user-friendly programming … | |
Hi, The whole idea of this program is allow teachers to input marks results for 6 students. Once all marks have been entered, It must to display the marks and grade for each student. For some reason it can't display the grade properly. It just display "Fail" on each mark. … | |
I dont know how to add a next button that will continue to a next page. The next page will have: Prelim Exam Grade Midterm Exam Grade Final Exam Grade Compute Button Exit Button Here is the code i have done. HELP ME PLEASE. THANKS. [CODE]import javax.swing.*; import javax.swing.event.*; import … | |
The err variable contains a message. The format will be the same but the value -1 will change accordingly. [CODE]String err = "Result:-1|Error|sSide: Value Must Be Either b|s."[/CODE] Therefore I attempted to retrieve -1 value from err variable using the code below: [CODE]String[] temp2 = err.trim().split(":"); StringTokenizer st = new … | |
Hello guys, I need help with one task. I've to make a program which generates random numbers and stores them in an array. How many numbers to be extracted depends on the arrays length, which are parameters in the class constructor. The array needs to contain only one instence of … |
The End.