32,199 Topics
| |
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 … | |
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 … | |
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 … | |
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 … | |
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... | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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? | |
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 … | |
[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 ? | |
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 … | |
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 … | |
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 … | |
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]%> … | |
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] | |
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? | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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; … |
The End.