32,199 Topics
| |
Hi All, Below is the code I use in an Unix environment to connect to my organization's mail server(This is to read mails in my Inbox). [code=Java] import javax.mail.*; import java.sql.*; import javax.mail.internet.*; import java.util.*; public class readm { public static void main(String args[]) throws MessagingException { //Properties props = … | |
Hi! I am a student taking my first computer science course. The course uses Karel J the robot to teach object oriented programming. However, after acquiring the library I was not able to find the "methods" or "behaviours" for the robot. According to the lecture notes they are suppose to … | |
Hi, trying to understand this exception.. Happened after i removed and the jar files [code] 2008/09/10 02:08:41 org.slf4j.impl.JCLLoggerAdapter info INFO: Hibernate 3.3.0.SP1 2008/09/10 02:08:41 org.slf4j.impl.JCLLoggerAdapter info INFO: hibernate.properties not found 2008/09/10 02:08:41 org.slf4j.impl.JCLLoggerAdapter info INFO: Bytecode provider name : javassist 2008/09/10 02:08:41 org.slf4j.impl.JCLLoggerAdapter info INFO: using JDK 1.4 java.sql.Timestamp handling … | |
well, i started generating my code through Textpad, and when i run it, it runs smoothly, but if i am to create the jar file through Netbeans, it becomes a disaster and returns a null error. i cant even figure out where the error is... here is the part of … | |
i have a method that saves an object to file : [CODE=java]public void Save() { if (canSave) { JFileChooser fileChooser = new JFileChooser(); if (fileChooser.showSaveDialog (this) == JFileChooser.APPROVE_OPTION) { ObjectOutputStream out; try { out = new ObjectOutputStream (new FileOutputStream (fileChooser.getSelectedFile ())); out.writeObject(this.game); out.close (); } catch (IOException ex) { } … | |
hello guyz,,,i just want to ask if it's possible to put "my picture" in my code..at the JOptionPane?? ex: if i run my program,,the first that will appear is my picture before i start to input anything in the JOptionPane.. is it possible??? i hope you can help me guyz,, … | |
i have a clients.dat file with client info in it. i have gone through it to find the record i want to delete, used PushBackBuffer to unread the one i want top delete, skipped that bit and carried on reading the rest and writing it to clients.tmp. after i have … | |
Hi, learning hibernate but still experiencing some errors and exceptions ... [B]My User.hbm.xml[/B] [code] <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <hibernate-mapping> <class name="com.genuitec.hibernate.User" table="SNX_USERS" > <id name="userId" type="java.lang.Long" column="user_id" > <generator class="increment" /> </id> <property name="firstName" type="java.lang.String" column="first_name" length="20" /> <property name="lastName" type="java.lang.String" column="last_name" length="20" /> … | |
Hi I was wondering if somebody could help me i am completelty stuck I want to read in triangle measurements from the command line check if the tri is square then when the user is done print out the amount of squares. the user would signfy that s/he was done … | |
Hello. I have built a hibernate project and the dropdown list and the table load data to the web page but the drop down list is not poulated with the names (derived from the xml id) There is a lot of code to paste. Is there someone that could help … | |
Hi, I hav a problem at hand...plz help out. I am not allowd to compuet o(n)...i need to compute the algorithm in O(log n). Suppose there is some number N, and there are 7 elements in another array. Each element in the array is given another special number(one number per … | |
| hi, i need urgent help with my code. My program, which converts word strings to its number equivalent, only works with special cases. Example: "nine hundred ninety nine thousand nine hundred ninety nine" outputs 999999. (which is correct.) But try inputting "nine million nine hundred ninety nine thousand nine hundred … |
Hi guys, the thing is: suppose that there is an application (assumed that we are using Windows) waiting for some input data. This could be a password, path, search criteria (for example in the case of Google). I would like my Java application to 'enter' some text, and then to … | |
Hi, I would like to know more about deploying Java application on mac.... I am going to start preparing a Java application which will be used by normal non-technical persons on mac. So, is it possible to create a setup like thing for users on Mac for a Java application. … | |
I presume that by back button you are referring to a browser and you have implemented that with JSPs. In that case when the username and password are correct, save the username in the session before you redirect to the next page. Then when you go to the next page … | |
Hi, I really do need some help, and it seems, that this is the best place to get some. A while ago, i was looking for an alternative to stage 6 DivX hosting, when i came to a side which suddenly smashed a whole lot of spyware on my computer. … | |
Hello, I am trying to allow my program to accept multiple transaction records. I have created a file creator (CreateData) to populate two text files (oldmast.txt, trans.txt). CreateData will need to be run to create these two files. I have also created a file matching class (FileMatch) to process and … | |
this is confusing, I wrote this a while ago, and it didn't work right, I am almost sure that it is a simple small error somewhere that I am just missing. when i wrote it I didn't think that it would be good to post it here because of the … | |
In this I jave already stored the previous exam details of the student in the database.I just fetch the datatbase are create the full exam form report of the student. What can i do different in this?? Plz help me out.... After user logins to a page and then log … | |
I thought I understood how this worked, but maybe I do not. I intentionally left a field out of my compactdisk class (artist) so that I could create a sub class later, impliment it, and see how that whole thing worked. Sounded simple, I still think it is, I just … | |
how can i get an array to wrap around?? ex: array String[] whatever = new String[3]; if i ask for the whatever[2] +1 I want it to give me 0 not 3 and if i ask whatever[0] - 1 i want it give me 2 | |
I'm making a Servlet application using the a MVC-like implementation, however I'm slightly confused on how I should delegate concurrent modification of the state of the Model object? I intend to use a database to hold information from a given session for a particular individual (the data will be retrieved … | |
Hello all, I want to find the external edge of an object. I used Canny, but it finds me any edge (inside edges as well) When I play with the thresholds somtimes it pass skip the external edge but finds an internal one. Solution anyone? Thanks | |
Hi, I've got a method that returns 'null' for a linked list [CODE] public LinkedList<names> Relate(names Student) { return null; [/CODE] How can i get it to return an empty List, so that I dont get a null pointer exception? Thanks in advance, | |
I(under graduate ) need an idea for my final year project. I hope to do an agent sytem.Can anyone give me an idea about a project? | |
can someone help me understand what i'm doing wrong here. attempted to run, program builds but no output is generated and the compiler does'nt generate an error message. thank you all. [ICODE]import java.util.Scanner; import java.io.*; import java.util.ArrayList; public class arrayManipulator { public static void main(String[] args) throws IOException { ArrayList<Integer> … | |
I am undergoing a java based project now a days.Can anyone please tell me how to insert sounds in it at different events. | |
Hi there i have some problem in this question . anyone help me on thaT? i don't know how to do the loop part. Thx. user has to enter 3 value and draws corresponding bar graphs using an ASCII character. For example, if the user entered 18,4,5, that program will … | |
Hi I have this application idea for a java program as my final year project and was wondering if it was feasible. It invloves generating id tags for audio tracks. However instead of the data being based on existing data and filling in the missing info, The application will analayse … | |
why do we need interfaces in java?,if the functions are to be defined in implementing class only then why declare these in an interface first????????? |
The End.