35,618 Topics
![]() | |
hello, Attempting to connect HSQL db by calling a config file from a java command line. However, receiving the following error message: Failed to retrieve connection info for database 'personal': Please set up authentication file 'C:\Documents and Settings\user\sqltool.rc' Here's a sample of the command: [CODE] java -jar \pathto\hsqldb.jar personal /pathto/Export_Data.sql … | |
I have a code that play's an animation on a JFrame.. On top of that, I have added a Jpanel with few buttons. my problem is, mybuttons are not visible on the animation screen until i hover a mouse on them?? what am i doing wrong.. | |
Hi guys! Can someone help me with my problem? I'm really not that good when it comes to coding. My problem is that how can display the number of new records received. Well heres my code The code below is the function to get the record count on Inbox <CODE> … | |
All: For some reason all my users are able to access this one web page for our On-Demand Host to start a TN3270 session in a Java environment, but I have one person who cannot do it. I've tried absolutely everything, from trying a different browser, to reinstalling XP SP2, … | |
i am trying to print an array list in a jsp page like this: [CODE]<body> <FORM METHOD="POST" ACTION="index.jsp"> <input type="text" name="text" value="" /> <input type="submit" value="add" /> </FORM> <jsp:useBean id="tomer" class="java.util.ArrayList" scope="session"/> <jsp:useBean id="r1" class="java.util.Iterator" scope="session"/> <% if (request.getParameter("text") !=null) {%> <% tomer.add(request.getParameter("text"));%> <%}%> <%r1 = tomer.iterator();%> <%while(r1.hasNext())%> <%{%> <%r1.next();%> … | |
[code]import java.util.*; import javax.mail.*; import javax.mail.internet.*; import javax.activation.*; // Send a simple, single part, text/plain e-mail public class TestEmail { public static void main(String[] args) { // SUBSTITUTE YOUR EMAIL ADDRESSES HERE!!! String to = "vipan@vipan.com"; String from = "vipan@vipan.com"; // SUBSTITUTE YOUR ISP'S MAIL SERVER HERE!!! String host = … | |
Does anyone know how to change the look of the java files that are listed when you expand the java folder in the tree structure of the database? i have these numbers infront of the class file, but have no clue what they are, they are not there in toad(i … | |
I am new to JSP. Please guide me which e-book or book should I read so that I can learn from basics to advance skills and develop a web site by own. Please help..! | |
Hi All Im working on an exercise from a book im learning java with. It is a console app, i have to make a menu 1-4 and then evaluate what number the user entered, carry out the command and then return to the menu. My problem is that i tried … | |
i wnt to integrate alfresco within liferay i.e running the alfresco as a portlet. . can anyone help me to solve it?? | |
Hi all, I have a folder structure like this. dir1 ---> conf ---> a.txt dir1 ----> dir2 ---> dir3 ---> Test.java How can I read a.txt file from my Test class ? How can I use relative path there? File newFile = new File ( "<how to specify the path>" … | |
I want to send an SMS from my server i.e from my webpage. I need to know do i need any device related to this or can it be done with programming. Is SMPP is a protocol like SMTP or SMPP is a hardware. please reply me quickly. | |
Hi I have a simple code snippet here that writes to a file called Student.txt : [CODE="java"] import java.io.*; import java.util.*; public class Streams { public static void main(String[] args) { String studentFirstName = "Bob "; String studentLastName = " Smith "; String finalGrade = "A"; try { PrintWriter out … | |
I am newbie to java implementation... can any one tel me the oops concepts with real time examples.... thanks in advance... | |
Hello. Currently i am creating a small application that works around packets. The packets are sent every 600ms. Now my quesition is this: Currently i have this (An example) [code="syntax"] public class Example { private int exampleInt = 0; public void setExample(int i) { exampleInt = i; } public void … | |
import javax.swing.*; import javax.swing.event.*; import java.util.*; import java.awt.*; import java.awt.event.*; import javax.swing.border.*; import java.awt.geom.*; class proj extends JFrame implements ChangeListener ,Runnable,ActionListener //main class { // Declarations public int bottom; public Thread t; int padding = 4; JFrame f; JTabbedPane jt ,jt1; JPanel jp,jp1,jp2,jp3,jp4; JButton j,j1,j2; JLabel lab,lab1; JComboBox jcb,jcb1; //public … | |
I am trying to create a program that generates random passwords using the characters A-Z and the numbers 0-9. It will also have an input of what you want the length of the password to be. What I don't know how to do is to create a method to choose … | |
HI I want to find the difference between two XML files in Java. The result should be in XML file only. I don't need a tool. Rather I am looking for any open-source jars (like XMLUnit). XMLUnit doesn't return the difference in XML format. Any help would be appreciated. Thanks … | |
i am new to java and i was trying to solve a program, a) i wanted to print marks scored by 3 students in 3 subjects. b) i wanted to get the total marks scored by each student and find out the highest total marks scored. c)I also want to … | |
i want create java mail application... but when i read sample programs there is smtp server String mailHost = "your.smtp.server"; or smtp.gmail.com how i get this server or how to create smtp server in java?? example code plz for smtp server ?? | |
Hi there! I am working on a project that requires a login screen (which I have done) and upon (hardcoded) authentication, would spawn another window which deposits the user into the game lobby. What is the best way to go about this? I have all my code finished for the … | |
how to convert jtextfield into appropriate form of string and store it in JDBC of oracle software I am trying to read string from JTextField and convert it into string and store it in oracle database | |
[url]http://www.visualbuilder.com/jsp/tutorial/pageorder/13/[/url] I got the code from this place, however, when I try to run it, it doesn't work. I am new to JSP, just trying to learn the basics , but I can't even get correct info from the website. A friend altered the code for me like this, although … | |
how can i execute through browser. plese tell me. | |
Hello any one tell me how do i create the program for upload to server. plz any give some idea abt that which commend is ur for uploading file to server in which way can i handle that | |
Hi; The below jsp page is compiling fine but executing it shows error as[B]javax.servlet.ServletException: java.sql.SQLException: Column 'Total' not found.[/B] [CODE] <%-- Document : evaluationeventtable Created on : Jul 24, 2008, 6:52:37 PM Author : user1 --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@ page language ="java" %> <%@ page import="java.sql.*, javax.sql.*, javax.naming.*,java.io.*,java.util.*" %> … | |
Hi all I m working on this project where i need to get user input and then see if the user input is correct or not. if it is correct then show the user input in the label but if the user input is wrong then show user a warning … | |
well guys i know you people are professional so can u plz recommand a best book of java which make me familier with java..thx | |
[code=java]package Ninja; import java.io.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.net.*; public class NinjaServer implements Runnable { public final static int NULL = 0; public final static int DISCONNECTED = 1; public final static int DISCONNECTING = 2; public final static int BEGIN_CONNECT = 3; public final static int … | |
I've doing my final thesis at my university I've found a place for source code related to my topic for reference: [[url]http://www.christopher-wolf.de/hfe/][/url]. But unfortunately, I cannot download any of its content listing in the page. If anyone knows how to have it, please help me. Thank you very much for … |
The End.