35,618 Topics
![]() | |
I am working on my java code using combo box.............I compiled it and it says process complete....BUT.....I cannot view it in applet viewer.....whenever I click the play button, it displays "java.lang.NoSuchMethoderror:main" "Exception in thread "main"............. what do these mean???? How can I make it be displayed in the applet viewer?? … | |
i came to know tomcat is primarily used as JSP/SERVLET container where u can run java codes on that web server .. my doubt is why cant apache http server itself serve as JSP/servlet container with some modules attached ??? and one more thing --> can apache http server used … | |
I was writing a program that involves the console inputting integers and strings. For my project i prompt the user to enter the number of strings he would like. Then i prompt the user to enter the strings so i could order them alphabetically. I am supposed to use any … | |
How to create installation setup in java? Thanks in advance. | |
Hello. This java app I'm developing on NetBeans 7. When i run the project, line 4 below: [code=java]FileReader input = new FileReader("projects");[/code] is not executed and apparently stops execution. Only when debuggin the file or running step by step are the next lines executed. No execution past line 4, except … | |
Hello, Are we allowed to assign different values to just one variable? For example, gender = [Female, female, fEmale] so if one a user enters any of the specified ones then he/she will be taken to the next step/level. I'm just doing a tute at the moment and coming up … | |
i have added a picture panel in jscroll pane [code] scrollpane.add(pic1); [/code] now i want that on run time when user click on another pic panel it will be shown at pic1 scroll pane, so i simply use this code [code] scrollpane.add(pic2); [/code] but it doesnt work , so i … | |
As we can tell from the last coding experince I am clearly not the best at this coding thing. I know now what I need help with and how to ask so this project is "Writing a Java class definition and instantiating the class in a program" Write the definition … | |
[B]Can anyone help me. I have been bangin my head on this one for two days. variable number may not have been initialized. code to enter single digit number and return largest of ten. code is as follows.[/B] [code] // Java packages import javax.swing.JOptionPane; public class Counter { // main … | |
How Comparable is marker interface when it is having int compareTo(Object o) method... we can say it as just interface...?? | |
I have to read an Excel file and transfer the contents to the database using Java swing.The excel file contains questions for the surveys with options for answers or responses.The database should have a table say Question with columns "Question No., Question, Option 1, Option 2 and so on".I have … | |
[CODE] if (fileScan.hasNext(posPattern)) { posCB = fileScan.nextInt() + 1; for (int i = posCB; i > 0; i--) { String writeByte = fileScan.next(); BufferedWriter out = new BufferedWriter(new FileWriter("E:\\dataReadable.txt")); out.write(writeByte); out.close(); }//for } [/CODE] Using a for loop, how would I write to the file without clearing the contents, so … | |
I am outputting the contents of a product from a product object(containing catalog no, product name, vendor, price, quantity(a textbox) and a checkbox(to select the product)) as a tabular display. When a user checks a checkbox(indicating the product checked), I get the values into a servlet. However, when I have … | |
[CODE]class Test{ static String str[]; public static void main(String args[]){ System.out.println("args "+args); System.out.println("str "+str); } }[/CODE] [U]Output[/U] args [Ljava.lang.String;@3e25a5 str null My doubt is ... How some object address is printing for args when it has not initialise. In case it has got initilised ,without array size specifiction how its … | |
Can you fix the numberformatexception [code]import javax.swing.*; import java.awt.*; import java.awt.event.*; public class Main extends JFrame implements ActionListener { int inputtedxend,inputtedyend,inputtedSAngle,inputtedarcAngle; int inputtedxpoint,inputtedypoint,inputtedx,inputtedy,inputtedwidth,inputtedheight; JLabel title=new JLabel("Choose a Grapic Method: "); String select []={"","DrawLine","DrawOval","DrawRect","DrawArc","DrawString","DrawRoundRect","fillRect","fillOval", "fillArc"}; JLabel xend=new JLabel("Enter X end point:"); JTextField inputxend=new JTextField("",5); JLabel yend=new JLabel("Enter Y end point:"); JTextField … | |
HOw can i store image in ms access database...plz suggest | |
Process p = Runtime.getRuntime().exec("C:\\tc\\bin\\" + prog_name , null); BufferedReader stdError = new BufferedReader(new InputStreamReader(p.getInputStream())); System.out.println("Here is the standard op :\n"); s1=stdError.readLine(); i have this code can anyone tell me how to run c program using java thanks ! | |
How to create report in core java | |
Hey everyone, Just curious why my little program doesn't go through the if-statement I specified in it. [code] public static void main (String args[]){ Scanner sc = new Scanner(System.in); System.out.println("Enter a value for girls:"); int GIRLS = sc.nextInt(); System.out.println("Enter a value for boys:"); int BOYS = sc.nextInt(); if (BOYS == … | |
Hi, I am now stuck on problem is that in our application used thread and that start in jsp page. so here problem is once thread started and after completion of run method it goes to dead. we can not restart dead thread. so whenever goes that jsp page trying … | |
Hi guys, any1 here know about servlet mapping? I m having problem at here...it keeps saying error 404 not found... [CODE] <servlet-name>myProject</servlet-name> <servlet-class>myProject.MyProjectServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>myProject</servlet-name> <url-pattern>/myProject</url-pattern> </servlet-mapping>[/CODE] | |
how todesign automatic grading system online using java i want to create one web application which creates online grading system for the students. which displays their grades,marks and ranking ... | |
discuss how java programming languagues differs from procedurals programming such as pascal and c. 1.classes 2.objects 3.attributes 4.methods 5.pirvate,protected,public 6.encapsulation 7.interface 8.inheritance 9.polymorphism | |
This simple code is showing the following error. [CODE]import java.io.IOException; import java.net.*; public class Server { public static void main(String[] args) throws IOException { DatagramSocket ds = new DatagramSocket(999, InetAddress.getByName("192.168.1.102")); ds.send(new DatagramPacket(new byte[10], 10)); } }[/CODE] Error: [CODE]Exception in thread "main" java.net.BindException: Cannot assign requested address: Cannot bind at java.net.PlainDatagramSocketImpl.bind0(Native … | |
What would be a regex pattern for the following ' and ® in Java. I have tried the following but have not been successful 1.&#[0-1][0-1][0-1] 2.&#\d\d | |
Hi all , pls suggest me some good tutorials to learn complete j2ee .. Thanks in advance | |
DEFINITION OF DATA REQUIREMENTS Produce an itemised consigment note for each customer including -dimension,weight and price per parcel. -total weight and price consigment -number of parcels RESIDENT DATA -up to 2kg-£7.50 -up to 4kg-£8.00 -up to 10kg-£8.55 -up to 12kg-£9.10 -up to 14kg-£9.70 -up to 16kg-£10.35 -for each extra 2kg,up … | |
Can anyone please help me! Very stuck on an assignment i need to code a java applet so that it counts the lengths of words for example i am a man would produce the output 2 - one letter words 1 - two letter word and 1 - three letter … |
The End.