32,199 Topics

Member Avatar for
Member Avatar for rapperhuj

Hello everyone, I just need help on this code. I can't debug it, I'm just new in Java and this is just my fifth assignment so I'm really having a hard time. Here's my code: [code]import java.io.*; public class input { public static InputStreamReader Reader=new InputStreamReader (System.in); public static BufferedReader …

Member Avatar for saifjob40
0
212
Member Avatar for quadiator

hi, i am just wondering if java/java applet can be used to "post" and "get" information from a website? i want my program post info to a site and get the output info back and display it . for example if i give it the input : <url snipped> it …

Member Avatar for quadiator
0
119
Member Avatar for iCez

Hi everyone, I hope you guys can help me. [U]Output[/U] Enter your department number: You belong to: 1-3 = Mr.X 4-7 = Mr.Y 8-9 = Mr.Z ------ [I]Error: When I input numbers from 1-9, the output that is displayed is always "You belong to: Mr. Z" Here's my code:[/I] [CODE]import …

Member Avatar for iCez
0
131
Member Avatar for KimJack

Hello All, I am trying to figure the best route to take for this problem. I am trying to read from a text file. The text file is setup at follows: John 90 98 9009 Smith 90 87 87987 Eric 76 66 23443... I am trying the figure how to …

Member Avatar for peter_budo
0
103
Member Avatar for Renzokouken_22

Guys... Can You Give Me Some Sources/Links/e-Books On How Can I Use mySQL in my Java Application... Because We Will Have A Project In Our Object Oriented Programming Subject... Please Help Me... I Really Want To Pass In This Subject...

Member Avatar for peter_budo
0
94
Member Avatar for thenava

Hi, I'm trying to write a graphing application, that takes an equation and graphs it, and thats no problem. However, I want to add a cursor, which moves along with the mouse. I managed to add one, however, the cursor causes everything else to refresh too. Is there anyway to …

Member Avatar for thenava
0
113
Member Avatar for MattEvans

As title; unless there's already a way: [code="HTML"] <html> <head> <script type="text/javascript"> function myfunction( ) { alert( "Hello, World!"); } </script> </head> <body> <p>Some HTML code</p> <img onclick="myfunction( );" src="some_image.gif"/> </body> </html> [/code] [code="Javascript"] <html> <head> <script type="text/javascript"> function myfunction( ) { alert( "Hello, World!"); } </script> </head> <body> <p>Some …

Member Avatar for MidiMagic
0
183
Member Avatar for omoz4real

Hi please I not a new user in java programming language , i have been programming in java for up to 2 years but i have developed an interest in graphics. can any one please tell me where i can get tutorials from any website or refer me to any …

Member Avatar for Ezzaral
0
109
Member Avatar for saifjob40

i am new learner in java and i wan to learn how to do java database connectivity with MySql i wrote the code still i face problem , will any ony plase let me know the wexxat coding for that . plase help me i am in a greate need

Member Avatar for peter_budo
0
117
Member Avatar for Dio1080

ok I have a program that is suppose to use dialogs boxes to obtain input and display output and also use console input an output. But here is the thing, I believe my code is a little right but don't understand the errors, can somebody help me please, here is …

Member Avatar for Paul.Esson
0
82
Member Avatar for Megha_Patni

Hi All, I have to do a validation on date in my form. I get a string of the format "dd/mm/yyyy" in my form. now i have to check that this date should be of the past including the present week(for eg. if I add the entry on 04/09/2007 then …

Member Avatar for ~s.o.s~
0
70
Member Avatar for pmhayden

I have a ComboBox defined as follows: [B][COLOR=#7f0055]private[/B][/COLOR][COLOR=#000000] String[] [/COLOR][COLOR=#0000c0]months[/COLOR][COLOR=#000000] = {[/COLOR][COLOR=#2a00ff]"Month"[/COLOR][COLOR=#000000], [/COLOR][COLOR=#2a00ff]"01"[/COLOR][COLOR=#000000], [/COLOR][COLOR=#2a00ff]"02"[/COLOR][COLOR=#000000], [/COLOR][COLOR=#2a00ff]"03"[/COLOR][COLOR=#000000], [/COLOR][COLOR=#2a00ff]"04"[/COLOR][COLOR=#000000], [/COLOR][COLOR=#2a00ff]"05"[/COLOR][COLOR=#000000], [/COLOR][COLOR=#2a00ff]"06"[/COLOR][COLOR=#000000], [/COLOR][COLOR=#2a00ff]"07"[/COLOR][COLOR=#000000], [/COLOR][COLOR=#2a00ff]"08"[/COLOR][COLOR=#000000], [/COLOR] [COLOR=#2a00ff]"09"[/COLOR], [COLOR=#2a00ff]"10"[/COLOR], [COLOR=#2a00ff]"11"[/COLOR], [COLOR=#2a00ff]"12"[/COLOR]}; [B][COLOR=#7f0055]private[/B][/COLOR] JComboBox [COLOR=#0000c0]jComboBoxMonth[/COLOR] = [B][COLOR=#7f0055]null[/B][/COLOR]; and down further I have: [COLOR=#0000c0]jComboBoxMonth[/COLOR][COLOR=#000000] = [/COLOR][B][COLOR=#7f0055]new[/B][/COLOR][COLOR=#000000] JComboBox([/COLOR][COLOR=#0000c0]months[/COLOR][COLOR=#000000]);[/COLOR] [COLOR=#000000][/COLOR] [COLOR=#000000]Now i am trying to do run an if statement …

Member Avatar for peter_budo
0
85
Member Avatar for ceyesuma

Hello I am at a work computer (firewall) I need to add to the CLASSPATH and the PATH to use apache tomcat. Though I know this addition won't disrupt anything I do not have a administrative password. Is there a way to add to these enviornmental system variables? DOS maybe?

Member Avatar for Paul.Esson
0
104
Member Avatar for paleciop

Hi, im having trouble with a code, it doesnt do what its supposed, theres something wrong with it but i cant find what, maybe you could help me find the problem and fix it. heres the code: public static byte[] runlengthencoding(byte[] m) { byte[] copia = new byte[m.length+9999999]; for(int w …

Member Avatar for Ezzaral
0
139
Member Avatar for ceyesuma

[code] <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <context-param> <param-name>webmaster</param-name> <param-value>webmaster@myeducationonline.com</param-value> </context-param> <context-param> <param-name>jdbcDriver</param-name> <param-value>sun.jdbc.odbc.JdbcOdbcDriver</param-value> </context-param> <context-param> <param-name>dbURL</param-name> <param-value>jdbc.odbc.clientDB</param-value> </context-param> <session-config> <session-timeout>30</session-timeout> </session-config> <welcome-file-list> <welcome-file>index.html</welcome-file> </welcome-file-list> </web-app> [/code] so this file as to be put in my "workspace" where my projects are ?

Member Avatar for Ezzaral
0
145
Member Avatar for ceyesuma

You really do not have to open the netbeans project. However you can. Does anyone know why when I comple the jsp's can not find the bean because the class file is in the build/classes file and not the src file. Does it not need to be there? Or I …

Member Avatar for Ezzaral
0
97
Member Avatar for Pyare007

How to solve stack over flow? In my application no recursive function call. It is a [B]J2EE application (web)[/B] In the application one Applet is calling. This applet having many pages and many records, and the records arranged in different pages. While going to next page it taking too much …

Member Avatar for masijade
0
78
Member Avatar for bigbluesky

I can only get 2 of the buttons to work - what am I doing wrong? I have been working on this for 5 days. I also cannot get my icon to work - do I need more of an address? [CODE] import java.util.ArrayList; //For ArrayList public class Product implements …

Member Avatar for plasmafire
0
131
Member Avatar for apontutul

hi guys......i want to view a piechart extracting items from a mysql database. i've created a button on a jsp page(view.jsp) which is calling another jsp page(viewrst.jsp) when i click that. the code for (viewrst.jsp) is given below: [code] <%@ page language=[COLOR=red]"java"[/COLOR]%> <%@page import=[COLOR=red]"org.jfree.chart.*;"[/COLOR]%> <%@page import=[COLOR=red]"java.sql.DriverManager;"[/COLOR]%> <%@page import=[COLOR=red]"java.sql.*;"[/COLOR]%> <%@page import=[COLOR=red]"org.jfree.data.jdbc.*;"[/COLOR]%> …

Member Avatar for peter_budo
0
205
Member Avatar for ceyesuma

I am using a example in a book to build my own program (java server pages) I can not even get the example to run. Is there someone to take a look at the program? (netbeans package)? [EMAIL="ceyesuma@hotmail.com"][/EMAIL]

Member Avatar for ceyesuma
0
136
Member Avatar for ceyesuma

org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated. error: Invalid class file format in C:\Program Files\Java\jdk1.6.0_02\jre\lib\rt.jar(java/lang/Object.class). The major.minor version '49.0' is too recent for this tool to understand. I'm not sure what to do to fix this error tomcat 4.0; any help?

Member Avatar for peter_budo
0
139
Member Avatar for staneja

Hi All I want to implement "FIX protocol" The Financial Information eXchange (FIX) protocol using java technology can any of you please guide me what are the things i need to know in java to implement this. and any further help from where i can get to know more about …

Member Avatar for sergeant
0
131
Member Avatar for w32.sysfile

i want to do a compiler but, now i am stuck in the compilation part, suppose that i want to compile "cool.java" that is located in the bin directory, what shold i do?? help please

Member Avatar for w32.sysfile
0
142
Member Avatar for volscolts16

Hi All, Thanks to everyone who helped work out my probs last semester. Ended up with a B in Computer Science class. Even though I thought I was going to fail. Anyway, New semester another new problem. I have done the assignment and keep running it. I keep getting an …

Member Avatar for peter_budo
0
93
Member Avatar for markku

Hello, Well guys, I consider myself a beginner in Java generally and in JMF in particular, and actually I am student at the University and doing my project which creating Multi-video-Players (kindly check out my code in the bottom), so I have 6 different players and each one plays different …

0
62
Member Avatar for ttamilvanan81

Dear all, I was stored the gif/jpg image into the MySQL Database as a buffered image. But when i was retrive the image from database and display in jsp page, it will not working well. The image is not displaying. The content get from the database, but it's type is …

Member Avatar for ttamilvanan81
0
469
Member Avatar for ticlar

Could not upload the files. Please make sure they have a correct extension. File Status : EuroMan Easter.jar Was Not Uploaded! Name: EuroMan Easter.jar Type: application/x-zip Size: 88653 Tmp: EuroMan Easter.jar When i uplaod games on Rannat, i will get following error , it's ince 7 days i got this …

0
43
Member Avatar for arkaprava

I want to install JForum on sun apserver However during installation I found the following problem [B][U]Please give write access for the user who is running the webserver to the file 'index.htm' and for the directory 'WEB-INF/config' and its subdirectories before continuing. [/U][/B] Tell me how can I troubleshoot this …

0
73
Member Avatar for taconator

I need some help. I have to translate a c app into java. Which would be no problem if I knew c. Is there a good uber begginers level tutorial somewhere, that i might be able to figure out what this c code is doing? I mean, i am seeing …

Member Avatar for taconator
0
113
Member Avatar for tech291083

Hi, [COLOR=#000000]I have this Java code not running properly with showing the following error at command prompt on Linux os.[/COLOR] [COLOR=#000000] [/COLOR] [CODE] [root@localhost PracJava]# javac clicker.java [root@localhost PracJava]# java clicker Exception in thread "main" java.lang.NoSuchMethodError: main [/CODE] [COLOR=#000000] [/COLOR] [COLOR=#000000]Can any one help please? Thanks..... [/COLOR] [CODE] import java.applet.Applet; …

Member Avatar for lookof2day
0
135

The End.