36,051 Topics

Member Avatar for
Member Avatar for Gerbilkit

Well I just started a university class in Java, I am used to PHP so this has been a confusing shift in many ways. Right now I'm struggling a bit with my first homework assignment, although more in a general understanding of java than nitty gritty details. The code is …

Member Avatar for VernonDozier
0
154
Member Avatar for Aahzmandius

Hi, I was wondering if anyoune could give me some code example for this situation: I have XML parser, which accepts java.io.file data structure. I need to upload XML file and made it into file structure so i can parse it by written method or upload file into MySQL database. …

0
43
Member Avatar for bops

Hey all, very simple question here.. How in Java can I get a Rectangle object that represents the Desktop coordinates? In fact just the width and height of the Desktop will do.. I'm just looking for something similar to the following C code [CODE=C] HWND hDesktop; hDesktop = GetDesktopWindow(); if …

Member Avatar for bops
0
126
Member Avatar for Gaspacho

Hi there, I'm currently making application for my school project. I have managed to get everything working but there is still one thing left on my list. The application should be capable of listening on a specific port for a specific type of packet (the protocol is SCTP). I tried …

Member Avatar for peter_budo
0
104
Member Avatar for nehagupta0809

hi i have two flat file having content like this file1.txt raghu,23,1000 ragiv,66,1800 file2.txt ramya,45,2455 ragiv,66,1800 i need to compare the two file and print the content in the other file which are different among the two file i.e raghu,23,1000 ramya,45,2455 plz help thanx in advance

Member Avatar for stephen84s
0
225
Member Avatar for kanika.khattar

while buildin a j2me aplication using java wireless toolkit dere was a warning.. warning: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier (use -source 1.4 or higher to use 'assert' as a keyword) assert false; ^ can nebody help in solvin d …

Member Avatar for stephen84s
0
90
Member Avatar for redflame777

In the code below I am getting a complier error that looks like this: ';' expected }while (employee_equals("")) ^ I am not sure why I am getting this error or how to fix it. [code] //get employee name { System.out.println( "Enter employee name: " ); employeeName = input.nextLine(); do { …

Member Avatar for redflame777
0
124
Member Avatar for kiboko

I admit I am a Java infant, an unable to hold my head up on my own infant. I greatly appreciate any help or advice you may offer! Here is the problem. I have one class that describes attributes of a city. I have another class that creates an object …

Member Avatar for Easter Bunny
0
77
Member Avatar for mrjoli021

I am new to programing. i know how to return a date [code] public Date yesterday() { if(this.day == 1) { if(this.Check("Mar", this.month)) { if (this.checkLeapYear(this.year)) { this.day = 29; this.weekDay = this.week[this.flipBack(this.week, this.weekDay)]; this.month = this.monthOfYear[this.flipBack(this.monthOfYear, this.month)]; } else { this.day = 28; this.weekDay = this.week[this.flipBack(this.week, this.weekDay)]; this.month = …

Member Avatar for masijade
0
222
Member Avatar for SyLk

Im attemtping to return the next value in this suequence recursively 1, 4, 11, 34, 101 this is what i've done thus far, im not sure how to pass this list to the function to compute the next value which i believe to be 304. can some explain how i …

Member Avatar for VernonDozier
0
112
Member Avatar for Muaz AL-Jarhi

Dear, All Hello, Im a student studying Computer Science and Engineering at the German University in Cairo (GUC). I take a course were I should Implement a game called "Attaxx" using java programing. I should submit a java engine for the game by next week or so... its quite similar …

Member Avatar for naniesc
0
187
Member Avatar for debargha

HII ALL can you help me with some project ideas on J2EE platform.I am doing B-TECH in CSE final year Our college is not accepting application based projects(my e-banking project has been disapproved)So I am all messed up.Please help me with few topics not application based like I am thinking …

Member Avatar for Alex Edwards
0
92
Member Avatar for Blackeagle

Hello, i have two questions concerning programming in Java. [U]1st Q:[/U] i have more than frame opened for the same program and when i want to close one of them, all the program closes as well. basically i write this code for closing the frame when clicking on a button: …

Member Avatar for Blackeagle
0
217
Member Avatar for iamus

Hi, I'm trying to install the php/java bridge on ubuntu hardy heron. I've installed it from the source downloaded from sourceForge. I've managed to get it run from the php command line as php test.php but when i run it from apache i get an error from the code below …

Member Avatar for Atli
0
89
Member Avatar for ceyesuma

SELECT b.book_num,b.book_start_date,b.book_start_time,book_end_time,b.stu_num,i.instr_lname FROM instructor AS i,booking AS b WHERE i.instr_num=i.instr_num AND i.instr_num=b.instr_num; Can someone help me get these xmls to produce this SQL(HQL)? This is how I represented the Instructor.class Instructor.hbm.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <hibernate-mapping> <class dynamic-insert="false" dynamic-update="false" mutable="true" name="lesson.Instructor" optimistic-lock="version" polymorphism="implicit" …

0
57
Member Avatar for AllenB

Hello, I am relatively new to Java. I would like to know how to add additional threads to this applet. Particularly adding additional balls that bounce at the same time. I think the problem lies in my mousePressed event. The program will start a new ball, but make the existing …

Member Avatar for AllenB
0
2K
Member Avatar for redflame777

I have worked on this class all last night and I am having trouble finding the problem. When I compile this file I am recieving errors and I do not understand what is the problem. Here is the program code: [code] public class Employee { private String employeeName; //name of …

Member Avatar for redflame777
0
70
Member Avatar for senthil12345

hi all, i had developed an applet. This applet having one frame class. This applet is called inside a jsp page.The Process of this page is copying files from one folder to another folder in server. Actually this process is working fine in first time. but the problem is i …

0
64
Member Avatar for naf87

please I want to recover the windows's process with java how can I do thank

Member Avatar for Easter Bunny
0
90
Member Avatar for arpita_jain

Hi, I am trying to run my SendMail.java program which is correct logicaly but its giving one error again and again. Error is: DEBUG: java.io.FileNotFoundException: C:\Program Files\Java\jre1.5.0_04\lib\javamail.providers (The system cannot find the file specified) I have created javamail.providers file in jdk_home/lib and in eclipse too.

Member Avatar for darkmikey
-1
44
Member Avatar for Lordstr

I am using Eclipse to right there It is coming up with an error within the switch statement saying that the Clock.* has not been initialized. it says Description "The local variable Clock may not have been initialized" but doesn't that happen when i do "Stopwatch Clock;" I am still …

Member Avatar for Ezzaral
0
240
Member Avatar for technicalganesh

I am having two servers viz., Windows and Linux. A service is running in Linux to produce a text file of around 8 MB per minute. If I would like to replicate (or copy) this text file to windows server which supports .Net as soon as the file is produced. …

Member Avatar for jwenting
0
119
Member Avatar for somachaganti

Hi all, My name is Soma Chaganti. I have been a developer for the past 25 years. I am working on a new project that uses Java, JSP, EJB etc.. Since I am not very experienced in this area, I signed up here in order to get some help from …

Member Avatar for sittas87
0
15
Member Avatar for Shagufta29

how to generate xml document from data in database..please explain with an example?

0
47
Member Avatar for TofiLuk

the frame is okay but the text2, textfield has occupy the whole frame. what's wrong with my code? image: [URL="http://img68.imageshack.us/my.php?image=73815503ku1.png"]http://img68.imageshack.us/my.php?image=73815503ku1.png[/URL] here's the code: [code=java] import javax.swing.*; import java.awt.*; import java.awt.event.*; public class JFrameTest extends JFrame implements ActionListener { JButton button; JLabel label1, label2, label3; JTextField text1, text2; Container con = …

Member Avatar for masijade
0
119
Member Avatar for PrAsTiWaRi

Hello All, I am trying to compile the C++ program. But I am getting weired compilation error. ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1>------ Build started: Project: HelloPras, Configuration: Debug Win32 ------ 1>Compiling... 1>HelloPras.cpp 1>c:\documents and settings\prash\my documents\visual studio 2008\projects\hellopras\hellopras\hellopras.cpp(15) : error C2819: type 'JavaVM_' does not have an overloaded member 'operator ->' 1> c:\program …

Member Avatar for jencas
0
498
Member Avatar for muusa

hi , i am a new bee to linux and require help in compiling and running java programs in fedora8. have i to install the jdk and the compile or run the program or . i require help

Member Avatar for sureronald
0
119
Member Avatar for Dancealot

Hi all. Hope you can help me out with this problem. I am trying to get a bluetooth finder to stop, and start again. What I can see is that the first time it stops and then start again, it work. the next time I do it, nothing happens. When …

Member Avatar for Dancealot
0
115
Member Avatar for codered152

Hi can u call an Instance method from the constructor in java. thanks for your help.

Member Avatar for codered152
0
94
Member Avatar for andr3a

Hey Guys Can anyone help me with JavaBeans The error says my Bean cannot be resolved to type. Any solutions? Thanks in advance

Member Avatar for jwenting
0
60
Member Avatar for dmanw100

Is there any way to clear the screen in a console app? I noticed that System does not even appear to have a system call similar to the system("COMMAND"); of C++. Any ideas?

Member Avatar for jwenting
0
100
Member Avatar for creativehacker

150 html files are in a folder on a windows machine.Among them,content of some files (not the file names)contain the sentence "Hello World??". How to count no of such files using java program

Member Avatar for jwenting
0
105
Member Avatar for dhanshree

I am doing an examination form generating system. Here all the students can login to the page and see their exam form. I want to automatically e-mail to the student about the details of the last date of exam form, etc. How can i do this? If possible please give …

Member Avatar for stephen84s
0
64
Member Avatar for maunikdesai

How to pass String object as an argument? Whenever I try to pass any String as an argument error msg occur as - ')' expected

Member Avatar for Ezzaral
0
201
Member Avatar for dmddinesh

i want to know how to convert pdu mode sms to text usivg java. pls anyone help me. thnks.

Member Avatar for stephen84s
0
619
Member Avatar for kookies

Hi, essential kindly helped in getting a javascript imageflow menu to display pictures inside an inline frame. Problem i have is that everything is displaying wrong on the page. Here's what i have currently code wise, i most likely have things in the wrong places i.e divs ? [code] <!DOCTYPE …

Member Avatar for kookies
0
111
Member Avatar for dav555

The DefaultListSelectionModel provides the method setSelectionInterval(int start, int end) to select an interval. But how can I select multiple intervals?

Member Avatar for stephen84s
0
183
Member Avatar for letlet_pogs

public class Calculator { public static void main(String[] args) { String s; // string that holds the expression s = JOptionPane.showInputDialog("Enter a simple infix expression: "); } } public static String infixToPrefix(String result){ JOptionPane.showMessageDialog(null,"Invalid character in expression: " + c); } hello guyz,,actually this is not my whole code,,i just …

Member Avatar for masijade
0
109
Member Avatar for jspbeginner

hi guys need some help im doing a website with database support. ive already created the html page with css styling ...with the normal layout wit div tags and rollovers and stuff... I need to make it a jsp page but when i copied the html as it is to …

Member Avatar for stephen84s
0
582
Member Avatar for pajeko
Member Avatar for J-KeRcA

Hi, I'm new in Java, and I'm supposed to make a program that ask the user for her/his date of birth..... I know that the months have a specific values and that the first month of the year is January which value is 0 ... so when the user enter …

Member Avatar for masijade
0
83
Member Avatar for senthil12345

hi, i have a problem while reloading the apllet with SwingWorker. it works fine in first time, if i reload with the same browser means the Applet window is opened but if i clicking the Download Button means it shows an Exception like "illegalThreadStateException" and it wont perform the copying …

0
60
Member Avatar for ceyesuma

is this true? hql use xml to create results that hibernate can use. Simialar to the SQL? here is what I need in a table [code] SELECT i.instr_lname,b.book_num,s.stu_lname,b.book_start_date,b.book_start_time,b.book_end_time FROM instructor AS i,booking AS b,student AS s where i.instr_num=b.instr_num AND b.stu_num=s.stu_num; [/code] here is the mapping classes to the (obj)entity classes. …

0
56
Member Avatar for Tootlol

Basically, I am trying to solve a problem a textbook. The book requires me to use karel J robot to develop programming principles. So the problem is correctly the following code so that the robot will do this: attached This is the code I am suppose to fix. Currently the …

Member Avatar for dmanw100
0
126
Member Avatar for nojtb

My Code has a problem, either if my first void is static or not i get a error that i cant seem to fix. This is the error i get if the void is static [CODE]Java Compiler By Noj All underpreciated java will soon apear All errors within java files …

Member Avatar for nojtb
0
138
Member Avatar for dsnj202

I compiled this at school and swear it ran like a week ago. That was on a PC using Textpad, now I am on a mac using TextMate and I keep getting this error: class Checkerboard is public, should be declared in a file named Checkerboard.java public class Checkerboard extends …

Member Avatar for jwenting
0
141
Member Avatar for webdani

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 = …

Member Avatar for regent_royal
0
481
Member Avatar for Tootlol

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 …

Member Avatar for jack239
0
112
Member Avatar for SonxQ7

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 …

-1
70
Member Avatar for dc_24l

Hi, i want to get a the value from a dropdown list i.e my dropdown list values are a b c i want to get b and put it in a textbox. anyone have an idea? thanks.

Member Avatar for stephen84s
0
73

The End.